/*!
Theme Name: Artima
Theme URI: https://wp.rrdevs.net/artima
Author: RRdevs
Author URI: https://themeforest.net/user/rrdevs
Description: Artima – Modern Architecture & Interior WordPress Theme
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: artima
Tested up to: 6.6
Requires PHP: 7.4
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/  


.header__top-menu svg path {
  stroke: #fff !important;
}

/* === Header Cart Styling === */
.header-cart {
  position: relative;
  display: inline-block;
  margin-right: 30px;
}

.header-cart .cart-contents {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-cart .cart-contents i {
  font-size: 22px;
  color: #282D88;
  transition: color 0.3s ease;
}

.header-cart .cart-contents:hover i {
  color: #0BB288; /* hover color */
}

.header-cart .cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ff4747 !important;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 4px rgba(0,0,0,0.15);
}

/* For smaller headers */
@media (max-width: 768px) {
  .header-cart .cart-contents i {
    font-size: 20px;
  }
  .header-cart .cart-count {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
}



.discount-badge {
    background: #ff0000;
    color: #fff;
    font-weight: bold;
    padding: 5px 10px;
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 5px;
    z-index: 10;
}


.product_cat-promotions a .price {
    display: none!important;
}

/* Style discount badge */
.product_cat-promotions .discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff0000;
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 10;
}











/* Modern Pagination Styling start*/
.woocommerce nav.woocommerce-pagination ul.page-numbers {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li {
    list-style: none;
}

/* Base style */
.woocommerce a.page-numbers,
.woocommerce span.page-numbers {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #2A317F;
    background: #F4F6FF;
    border: 1px solid rgba(42,49,127,0.15);
    transition: all 0.25s ease;
}

/* Hover */
.woocommerce a.page-numbers:hover {
    background: #2A317F;
    color: #fff;
    border-color: #2A317F;
}

/* Active */
.woocommerce .page-numbers.current {
    background: #2A317F;
    color: #fff;
    border-color: #2A317F;
}

/* Dots */
.woocommerce .page-numbers.dots {
    background: transparent;
    border: none;
    color: #999;
}

/* Next / Prev */
.woocommerce .page-numbers.next,
.woocommerce .page-numbers.prev {
    font-size: 18px;
    padding: 10px 14px;
}

/* FORCE REMOVE old pagination borders completely */
body .woocommerce nav.woocommerce-pagination ul.page-numbers,
body .woocommerce nav.woocommerce-pagination ul.page-numbers li {
    border: none !important;
    border-right: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/*end mordan pagination*/







/* -------------------------------
   Modern Package Cards (Lotus Azure Style)
   ------------------------------- */

/* Remove old borders & hover from cpf-product-item */
#cpf_category_grid .cpf-product-item {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    transform: none !important;
    margin-bottom: 20px; /* spacing */
}

#cpf_category_grid .cpf-product-item:hover {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Real card design */
#cpf_category_grid .cpf-product-item .card {
    border: 1px solid #E6E9F5 !important;
    border-radius: 16px !important;
    padding: 6px;
    transition: all 0.25s ease;
    background: #fff;
}

/* Hover effect on real card */
#cpf_category_grid .cpf-product-item .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(42, 49, 127, 0.10);
    border-color: #2A317F !important;
}

/* Card body spacing */
#cpf_category_grid .cpf-product-item .card-body {
    padding: 14px 16px !important;
}

/* Title styling */
#cpf_category_grid .cpf-product-title {
    font-size: 17px;
    font-weight: 700;
    color: #2A317F;
    line-height: 1.3;
}

/* Description text */
#cpf_category_grid .cpf-product-item p {
    font-size: 14px;
    color: #6A6F85;
    line-height: 1.45;
    max-height: 65px;
    overflow: hidden;
}

/* Checkbox label */
#cpf_category_grid .cpf-product-item .form-check-label {
    font-size: 14px;
    color: #2A317F;
    font-weight: 600;
}

/* Checkbox styling */
#cpf_category_grid .cpf-product-item .form-check-input {
    transform: scale(1.2);
    border: 2px solid #2A317F;
    cursor: pointer;
}

#cpf_category_grid .cpf-product-item .form-check-input:checked {
    background-color: #2A317F;
    border-color: #2A317F;
}

/* Image cleanup */
#cpf_category_grid .cpf-product-item img {
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.08);
}


/* Modern Sticky Request Bar */
#cpf_request_bar {
    position: sticky;
    bottom: 20px;
    z-index: 999;
    
    background: #F7F9FF !important; /* light medical blue background */
    border: 1px solid #E0E4F4;
    border-radius: 14px;
    
    box-shadow: 0 8px 24px rgba(42, 49, 127, 0.12);
    backdrop-filter: blur(6px); /* optional modern blur effect */
    
    padding: 14px 20px !important;
}

/* Selected item text */
#cpf_selected_count {
    font-size: 15px;
    font-weight: 600;
    color: #2A317F !important;
}

/* Clear button */
#cpf_clear_selected {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
}

/* Submit button */
#cpf_request_expert {
    background: #2A317F !important;
    border-color: #2A317F !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
}

#cpf_request_expert:hover {
    background: #1f255f !important;
}









/* -------------------------------
   Modern Header Section Styling
   ------------------------------- */

/* Select the REAL header wrapper */
.container.my-5 > .d-flex.align-items-center.justify-content-between.mb-4 {
    align-items: center;
    margin-bottom: 32px;
}

/* Title — override theme heading variable */
.container.my-5 > .d-flex.align-items-center.justify-content-between.mb-4 h2.mb-0 {
    font-size: 32px;
    font-weight: 800;
    color: #2A317F !important; /* Primary brand color */
    margin-bottom: 6px;
}

/* Subtitle */
.container.my-5 > .d-flex.align-items-center.justify-content-between.mb-4 p.text-muted.small {
    font-size: 15px;
    color: #6A6F85 !important;
    margin-bottom: 0;
}

/* Search wrapper */
#cpf_search_wrapper {
    max-width: 420px;
    width: 100%;
}

/* Search input modern style */
#cpf_product_search {
    height: 52px;
    border-radius: 12px !important;
    padding-left: 18px;
    font-size: 15px;

    border: 1px solid #D7DBE8;
    background: #FAFBFF;
    transition: all 0.25s ease;
    box-shadow: none;
}

/* Search input focus */
#cpf_product_search:focus {
    border-color: #2A317F;
    box-shadow: 0 0 0 4px rgba(42, 49, 127, 0.10);
}

/* Mobile layout fix */
@media (max-width: 768px) {
    .container.my-5 > .d-flex.align-items-center.justify-content-between.mb-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }

    #cpf_search_wrapper {
        max-width: 100%;
    }
}











/* -------------------------------
   Universal Header Section: Title + Subtitle + Search
   For Packages & Tests pages
   ------------------------------- */

/* Title (h2) override */
.d-flex.align-items-center.justify-content-between.mb-4 h2.mb-0 {
    font-size: 32px;
    font-weight: 800;
    color: #2A317F !important;
    margin-bottom: 6px;
}

/* Subtitle */
.d-flex.align-items-center.justify-content-between.mb-4 p.text-muted.small {
    font-size: 15px !important;
    color: #6A6F85 !important;
    margin-bottom: 0 !important;
}

/* Search wrapper */
#cpf_search_wrapper {
    max-width: 420px !important;
    width: 100% !important;
}

/* Search input for both pages */
#cpf_product_search,
#cpf_ajax_search {
    height: 52px !important;
    border-radius: 12px !important;
    padding-left: 18px !important;
    font-size: 15px !important;

    border: 1px solid #D7DBE8 !important;
    background: #FAFBFF !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
}

/* Focus effect */
#cpf_product_search:focus,
#cpf_ajax_search:focus {
    border-color: #2A317F !important;
    box-shadow: 0 0 0 4px rgba(42,49,127,0.1) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .d-flex.align-items-center.justify-content-between.mb-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px !important;
    }
    
    #cpf_search_wrapper {
        max-width: 100% !important;
    }
}















/* ------------------------------------------
   Unified Card Styling for Packages & Tests
   Works for:
   - #cpf_category_grid (initial load)
   - #cpf_ajax_results (search results)
------------------------------------------- */

#cpf_category_grid .cpf-product-item .card,
#cpf_ajax_results .cpf-product-item .card {
    border: 1px solid #E6E9F5 !important;
    border-radius: 16px !important;
    padding: 6px;
    transition: all 0.25s ease;
    background: #fff;
}

/* Hover */
#cpf_category_grid .cpf-product-item .card:hover,
#cpf_ajax_results .cpf-product-item .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(42,49,127,0.10);
    border-color: #2A317F !important;
}

/* Card body */
#cpf_category_grid .cpf-product-item .card-body,
#cpf_ajax_results .cpf-product-item .card-body {
    padding: 14px 16px !important;
}

/* Title */
#cpf_category_grid .cpf-product-title,
#cpf_ajax_results .cpf-product-title {
    font-size: 17px;
    font-weight: 700;
    color: #2A317F;
    line-height: 1.3;
}

/* Description (only exists on packages page) */
#cpf_category_grid .cpf-product-item p {
    font-size: 14px;
    color: #6A6F85;
    line-height: 1.45;
    max-height: 65px;
    overflow: hidden;
}

/* Checkbox */
#cpf_category_grid .form-check-input,
#cpf_ajax_results .form-check-input {
    transform: scale(1.2);
    border: 2px solid #2A317F;
    cursor: pointer;
}

#cpf_category_grid .form-check-input:checked,
#cpf_ajax_results .form-check-input:checked {
    background-color: #2A317F;
    border-color: #2A317F;
}

/* Checkbox label */
#cpf_category_grid .form-check-label,
#cpf_ajax_results .form-check-label {
    font-size: 14px;
    color: #2A317F !important;
    font-weight: 600;
}

/* Image */
#cpf_category_grid .cpf-product-item img,
#cpf_ajax_results .cpf-product-item img {
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.08);
}













#tte_product_name {
    display: block;
    background: #F7F9FF;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    color: #2A317F;
    line-height: 1.6;
    border: 1px solid #E0E4F4;
    font-size: 14px;
}

/* Make commas softer visually */
#tte_product_name {
    letter-spacing: 0.5px;
}

#tte_product_name::after {
    content: "";
}








/* -------------------------------
   AJAX Pagination Styling
   Matches WooCommerce pagination
-------------------------------- */

/* Pagination container */
#cpf_ajax_results .mt-4 {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

/* Base style for pagination items */
#cpf_ajax_results .page-numbers {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #2A317F;
    background: #F4F6FF;
    border: 1px solid rgba(42, 49, 127, 0.15);
    transition: all 0.25s ease;
    text-decoration: none;
}

/* Hover */
#cpf_ajax_results .page-numbers:hover {
    background: #2A317F;
    color: #fff;
    border-color: #2A317F;
}

/* Active (current) page */
#cpf_ajax_results .page-numbers.current {
    background: #2A317F !important;
    color: #fff !important;
    border-color: #2A317F !important;
}

/* Dots */
#cpf_ajax_results .page-numbers.dots {
    background: transparent;
    border: none;
    color: #888;
    padding: 10px;
}

/* Next / Prev buttons */
#cpf_ajax_results .page-numbers.next {
    padding: 10px 18px;
    font-size: 15px;
}






/* Highlight current menu item in mobile menu */
#mobile-menu .current-menu-item > a,
#mobile-menu .current_page_item > a,
#mobile-menu .active > a {
    background: #2A317F !important;   /* your brand color */
    color: #fff !important;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
}

/* Optional: subtle hover for non-active items */
#mobile-menu .nav-item > a:hover {
    background: #eef1ff;
    color: #2A317F;
    border-radius: 8px;
    padding: 10px 14px;
}







/* Fix close button visibility */
.offcanvas-close-icon .offcanvas-m-line {
    background-color: #fff !important;
}

/* Offcanvas background */
.offcanvas__area,
.offcanvas__wrapper,
.offcanvas__content {
    background-color: #0F0F12 !important;
}

/* Make sure menu list becomes visible inside offcanvas */
.offcanvas__area .mean-nav ul {
    display: block !important;
}

/* Mobile menu links */
.offcanvas__area .mean-nav ul li a {
    color: #ffffff !important;
    font-size: 18px;
    padding: 12px 0 !important;
    display: block;
    font-weight: 500;
}

/* Hover effect */
.offcanvas__area .mean-nav ul li a:hover {
    color: #8ea0ff !important;
}

/* Active link highlight */
.offcanvas__area .mean-nav ul li.current-menu-item > a,
.offcanvas__area .mean-nav ul li.current_page_item > a,
.offcanvas__area .mean-nav ul li.active > a {
    color: #2A317F !important;
    font-weight: 700 !important;
}






/* Force show close button "X" lines */
.offcanvas-close-icon .offcanvas-m-lines .offcanvas-m-line {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background-color: #ffffff !important;
    margin: 5px 0;
    opacity: 1 !important;
    visibility: visible !important;
}
