/* ========================================
   1. VARIABLES & GLOBAL STYLES
   ======================================== */
:root {
    /* Colors */
    --primary-color: #091F5B;
    --option-color: #E0F2FF;
    --text-gray: #666;
    --bg-light: #f5f5f5;
    --bg-lighter: #f8f9fa;
    --bg-gray: #e9ecef;
    --border-color: #ddd;
    --border-color-light: #e0e0e0;
    --border-color-dark: #e3e3e3;

    /* Border radius */
    --border-radius-button: 30px;
    --border-radius-standard: 8px;
    --border-radius-circle: 50%;
    --border-radius-full: 9999px;

    /* Box shadows */
    --box-shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --box-shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --box-shadow-heavy: 0 4px 20px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-standard: all 0.3s ease;
}

body {
    line-height: 1.5rem;
    font-weight: 300;
}

h2 {
    font-weight: 700;
    color: #333;
    font-size: 1.6rem;
    line-height: 2rem!important;
}

.topbartext {
    color: white;
    font-weight: bold;
}

/* ========================================
   2. HEADER & NAVIGATION
   ======================================== */
.header-top .form-search-control {
    border-radius: var(--border-radius-button) !important;
}

.col-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

#search_widget {
    flex: 1;
    max-width: 350px;
}

.elementor-displayHeaderLeft {
    flex: 0 0 auto;
    max-width: 50%;
}

#language_selector {
    visibility: hidden!important;
}

.elementor-displayHeaderLeft .elementor-button .elementor-button-text {
    font-weight: bold;
}

.elementor-displayHeaderLeft .elementor-button.elementor-size-small {
    padding: 10px 15px;
    line-height: 23px;
}

.elementor-testimonial-content p {
    font-size: 0.9rem;
    font-style: italic;
}

.col-header-right {
    display: flex;
    font-size: 13px;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

#ps-shoppingcart-wrapper {
    order: 2;
}

.header-top .header-cart-default a.cart-toogle {
    padding-bottom: 0;
}

#user_info {
    order: 1;
}

.blochautdroite {
    margin-top: .6rem;
    order: 0;
}

.blochautdroite a,
#user_info .account,
#ps-shoppingcart .cart-toogle {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.blochautdroite a,
#user_info .account {
    padding: 0.6428571429rem 0.6428571429rem;
}

.blochautdroite i,
.blochautdroite img,
#user_info .account i,
#ps-shoppingcart .cart-toogle > i {
    margin-right: 5px;
    font-size: 2.8rem;
}

.blochautdroite div,
#user_info .account div,
#ps-shoppingcart .info-wrapper {
    text-align: left;
}

/* Align cart icon with others */
#ps-shoppingcart .cart-toogle > i {
    position: relative;
}

#ps-shoppingcart .cart-products-count-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius-circle);
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobile-cart-products-count {
    background: var(--primary-color);
}

#desktop_logo img {
    max-width: 250px;
}

/* Header flex optimization */
.header-top .row.align-items-center {
    display: flex;
    align-items: center;
}

.header-top .col-header-center {
    flex: 0 0 auto;
    max-width: 350px;
}

#header .header-nav a {
    font-weight: bold;
}

/* ========================================
   3. CART & SHOPPING
   ======================================== */
.iqitfreedeliverycount p {
    display: inline;
}

.delivery-option img {
    max-width: 150px;
    margin: 0!important;
}

.iqitfreedeliverycount {
    margin-bottom: 10px;
}

.cart-products-count {
    display: none;
}

/* Product page buttons layout */
.product-add-to-cart .add {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
}

.product-add-to-cart .add > button {
    flex: 1;
    min-width: 0;
}

.product-add-to-cart .add > #aior_product_button {
    flex: 1;
    display: flex !important;
}

.product-add-to-cart .add > #aior_product_button #aior_add_to_cart {
    width: 100%;
    margin: 0;
}

.product-add-to-cart .add #aior_add_to_cart_price,
.product-add-to-cart .add #aior_add_to_cart_available_after {
    display: none;
}

/* OR separator styling */
.product-add-to-cart .add .or-separator {
    flex: 0 0 auto;
    color: var(--text-gray);
    font-weight: normal;
    padding: 0 5px;
}

.product-add-to-cart #loyalty {
    width: 100%;
    margin-top: 15px;
}

.product-miniature-grid .product-availability {
    display: none!important;
}

/* Force product-details to stay hidden */
#product-details {
    display: none !important;
    visibility: hidden !important;
}

#module-gc_myreco-registration .practitioner-registration-form .custom-checkbox input[type=checkbox] {
    opacity: 1;
}

#module-gc_myreco-registration .practitioner-registration-form .custom-checkbox label {
    padding-left: 20px;
}



/* ========================================
   4. PRODUCT PAGE STYLES
   ======================================== */
#product h1 {
    font-weight: bold !important;
    margin-bottom: 0 !important;
}

#product .elementor-widget-heading .elementor-heading-title {
    margin-bottom: 0px;
    color: white;
    font-size: 15px;
    font-weight: bold;
}

.elementor-displayFooterBefore {
    margin-bottom: 20px;
}

.elementor-displayFooterBefore {
    display: none;
}

#product .elementor-displayFooterBefore {
    display: block;
}

#product #main-product-wrapper .elementor-widget-heading {
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--primary-color);
    margin-top: -20px;
}

/* Annule le margin-top uniquement pour le premier widget heading
   même si d'autres widgets (ex: menu-anchor) le précèdent */
#product #main-product-wrapper .elementor .elementor-section:nth-of-type(2) .elementor-widget-heading {
    margin-top: 0 !important;
}

#product .product-information {
    color: var(--primary-color);
}

#product .product-reference {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-subtitle {
    margin-bottom: 0;
}

.product-subtitle .product-mpn {
    color: var(--primary-color);
}

#product .add-to-cart {
    border-radius: var(--border-radius-button);
    padding-left: 40px;
    font-weight: bold;
    padding-right: 40px;
}

#product-availability {
    display: none;
}

#product .product-cover .expander {
    display: none;
}

.product_header_container {
    padding-bottom: 0;
}

.product_header_container .product-price,
.product_p_price_container .product-price,
.product-prices .current-price {
    font-size: 1.7rem;
    line-height: 28px;
}

.product-description li,
footer .block-content li {
    margin-bottom: 0.5rem;
}

.product-flag.online-only {
    display: none;
}

.product-additional-info {
    border-top: none;
}

.product_header_container,
.card-header-tabs {
    border-bottom: none;
}

/* Product meta keywords */
.product-meta-keywords {
    margin-bottom: 0.75rem;
    max-height: 32px;
    overflow: hidden;
}

.product-meta-keywords .badge {
    background-color: var(--primary-color);
    color: #FFF;
    font-size: 0.875rem;
    font-weight: normal;
    padding: 0.375rem 1.25rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
    display: inline-block;
    border-radius: var(--border-radius-button);
}

/* Product icons row */
#product .product-icons-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin: 20px 0 0;
    padding: 0;
    flex-wrap: nowrap;
}

#product .product-icon {
    flex: 1;
    text-align: center;
    min-width: 0;
}

#product .product-feature-icon {
    width: 100%;
    max-width: 100%;
    height: auto;
    transition: transform var(--transition-standard);
}

/* ========================================
   5. QUANTITY DISCOUNT STYLES
   ======================================== */
.quantity-discount-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #FFF;
}

.quantity-options-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.quantity-option {
    position: relative;
}

.quantity-option .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.quantity-option .qty-option-block {
    display: block;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-standard);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    position: relative;
    background: var(--primary-color);
    padding: 18px 1rem 1rem;
}

.quantity-option input:checked + .qty-option-block {
    border-color: var(--option-color);
    box-shadow: 0 0 0 3px rgba(76, 141, 43, 0.1);
}

.quantity-option .qty-option-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
}

.quantity-option .qty-option-label {
    display: block;
    font-weight: 600;
    color: #FFF;
    margin-bottom: 0.5rem;
}

#product h3.section-title {
    text-align: center;
    border: none;
    font-weight: 700;
    color: #333;
    font-size: 1.6rem;
    line-height: 2rem!important;
}

h2.h3.product-title {
    line-height: 1.5rem!important;
    text-transform: uppercase;
}

#product .category-products {
    margin-top: 20px;
}

.product-discounts {
    width: 90%;
    margin-top: 20px;
}

.col-add-btn .add {
    width: 90%;
    margin-bottom: 10px;
}

.col-add-btn {
    margin-top: 10px;
}

.quantity-option .qty-option-price-container {
    margin-bottom: 0;
}

.quantity-option .qty-option-compare-price {
    font-size: 0.875rem;
    color: var(--option-color);
    text-decoration: line-through;
    margin-right: 0;
    font-style: italic;
}

.quantity-option .qty-option-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--option-color);
}

.quantity-option .qty-option-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    background-color: #E0E0E0;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1;
    border: 1px solid var(--primary-color);
}

/* Product discount box images */
.qty-option-image {
    max-height: 40px;
    width: auto;
    margin-bottom: 0.5rem;
}

.product-add-to-cart .col-add-qty {
    display: none !important;
}

.product-add-to-cart .col-add-qty.show-qty-selector {
    display: block !important;
}

/* Hide add to cart button text initially when quantity discount selector exists */
body:has(.quantity-discount-selector) .product-add-to-cart .add-to-cart:not(.price-loaded) .btn-text {
    opacity: 0 !important;
}

/* Alternative for browsers that don't support :has() */
.has-quantity-options .product-add-to-cart .add-to-cart:not(.price-loaded) .btn-text {
    opacity: 0 !important;
}

/* Smooth transition when price is loaded */
.product-add-to-cart .add-to-cart .btn-text {
    transition: opacity 0.2s ease;
}

/* ========================================
   6. PRODUCT TABS
   ======================================== */
/* Product tabs styling */
.tabs.product-tabs {
    margin-top: 2rem;
}

.tabs.product-tabs .nav-tabs {
    border: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 1px;
}

.tabs.product-tabs .nav-tabs .nav-item {
    flex: 1;
    text-align: center;
}

.tabs.product-tabs .nav-tabs .nav-link {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 0;
    color: var(--primary-color);
    font-weight: 400;
    padding: 1rem 1.5rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    transition: var(--transition-standard);
}

.tabs.product-tabs .nav-tabs .nav-link:hover {
    background-color: var(--bg-gray);
    color: var(--primary-color);
}

.tabs.product-tabs .nav-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: #FFF;
    border-color: var(--primary-color);
    font-weight: 600;
}

.tabs.product-tabs .tab-content {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    padding: 2rem;
}

/* ========================================
   7. PRODUCT SECTIONS
   ======================================== */
.product-sections-wrapper {
    overflow: visible;
}

.sticky-top {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 99 !important;
}

.product-sections-nav {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

/* When sticky is active, add shadow for better visibility */
.product-sections-nav.sticky-top {
    box-shadow: var(--box-shadow-light);
}

/* Ensure Elementor containers don't break sticky */
.elementor-section,
.elementor-container,
.elementor-widget-wrap {
    overflow: visible !important;
}

/* Anchor targets for better positioning */
.elementor-menu-anchor {
    scroll-margin-top: 100px;
}

.product-sections-nav .nav-sections {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.product-sections-nav .nav-item {
    flex: 1;
    min-width: max-content;
}

.product-sections-nav .nav-link {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-bottom: none;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition-standard);
}

.product-sections-nav .nav-link:hover {
    background-color: var(--bg-gray);
    color: var(--primary-color);
}

.product-sections-nav .nav-link.active {
    background-color: var(--primary-color);
    color: #FFF;
    font-weight: 600;
}

/* Product sections content */
.product-sections-content {
    padding-top: 2rem;
}

.product-section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.product-accessories {
    display: none !important;
}

.product-section:last-child {
    border-bottom: none;
}

.product-section .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

#aior_add_to_cart {
    border-radius: var(--border-radius-button);
    font-weight: bold;
    padding: 1rem 30px;
}

.product-additional-info {
    padding-top: 0;
}

.reward_alert_message {
    border: none;
    padding: 0;
    color: #31708f;
    background-color: transparent;
    text-align: left;
    margin-top: 0 !important;
    margin-bottom: 0;
}

.product-minimal-quantity {
    display: none;
}

/* ========================================
   8. BLOG STYLES
   ======================================== */
#module-ph_simpleblog-single .simpleblog__post img {
    display: block;
    margin: 0 auto;
}

#module-ph_simpleblog-single .rte-content img {
    display: none !important;
}

.simpleblog__listing__post__wrapper__content__headline {
    border-bottom: none;
    text-transform: uppercase;
    line-height: unset;
}

.simpleblog__listing__post__wrapper__footer {
    display: none;
}

.leblog img {
    border-radius: 10px;
}

/* ========================================
   9. FOOTER STYLES
   ======================================== */
footer .elementor-displayFooter .rte-content ul {
    list-style-type: none;
    padding-left: 0;
}

footer .derniercolonne .elementor-widget-heading {
    padding-bottom: .6rem;
}

/* ========================================
   10. BREADCRUMB
   ======================================== */
#wrapper .breadcrumb a,
#wrapper .breadcrumb span,
#wrapper .breadcrumb,
#wrapper .breadcrumb li:after {
    color: #aaa;
}

/* ========================================
   11. SEARCH & AUTOCOMPLETE
   ======================================== */
.autocomplete-suggestion .col-shop {
    display: none;
}

.autocomplete-suggestion img {
    margin-right: 0;
}

.autocomplete-suggestions .row > * {
    padding-right: calc(var(--bs-gutter-x) * .2);
    padding-left: calc(var(--bs-gutter-x) * .2);
    font-size: .9rem;
}

/* ========================================
   12. ELEMENTOR SPECIFIC
   ======================================== */
.elementor-element.elementor-element-vb1zoja .elementor-newsletter-input {
    border-radius: var(--border-radius-button);
}

.elementor-element.elementor-element-vb1zoja .elementor-newsletter-btn {
    margin-left: 20px;
    border-radius: var(--border-radius-button);
}

.elementor-testimonial-carousel .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 0;
    padding-top: 0px;
    padding-bottom: 40px;
}

.elementor-testimonial-carousel .swiper-slide {
    display: flex;
    height: 100%;
}

.elementor-testimonial-carousel .elementor-testimonial-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border-radius: 0 0 var(--border-radius-standard) var(--border-radius-standard);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    border-top: 4px solid var(--primary-color);
}

.elementor-testimonial-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.elementor-testimonial-content {
    flex-grow: 1;
    margin-bottom: 25px;
    position: relative;
    padding-top: 20px;
}

.elementor-testimonial-content p {
    margin: 0;
}

.elementor-testimonial-content:hover p {
    transition: color 0.3s ease;
}

.elementor-testimonial-meta {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.elementor-testimonial-details {
    text-align: center;
}

.copyright {
    font-size: 12px;
}

.elementor-testimonial-job {
    color: #888;
    font-weight: 400;
}

/* ========================================
   13. MISC & UTILITIES
   ======================================== */
#index .lesboites img {
    max-height: 100px;
    width: auto;
}

.serviceclient a {
    color: var(--primary-color) !important;
}

#index .newsletter-form {
    margin-top: 10px;
}

.ps-shoppingcart.dropdown #blockcart-content {
    z-index: 1000;
}

#cart .product-line-info a {
    font-weight: bold;
}

/* ========================================
   14. STICKY FOOTER
   ======================================== */
/* Simple sticky footer with min-height */
html {
    height: 100%;
}

body {
    min-height: 100%;
    position: relative;
}

#main-page-content {
    min-height: 100vh;
}

#wrapper {
    min-height: calc(100vh - 645px);
    padding-bottom: 50px;
}

/* ========================================
   15. COOKIE NOTIFICATION
   ======================================== */
/* Cookie notification overlay */
.cookie-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1040;
    display: none; /* Hidden by default */
}

body.show-cookie-banner .cookie-notification-overlay {
    display: block;
}

.cookie-notification-overlay[style*="display: none"] {
    display: none !important;
}

#st_notification_1.noti_location_9 {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 600px !important;
    width: 90% !important;
    z-index: 1050 !important;
    display: none; /* Hidden by default */
}

body.show-cookie-banner #st_notification_1.noti_location_9 {
    display: block;
}

#st_notification_1 .flex_container {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius-standard);
    box-shadow: var(--box-shadow-heavy);
}

#st_notification_1 .notification_content {
    margin-bottom: 20px;
}

#st_notification_1 .notification_buttons .notification_accept {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-button);
}

#st_notification_1 .notification_buttons .notification_accept:hover {
    background-color: #FFF;
    color: var(--primary-color);
}

/* ========================================
   16. CATEGORY
   ======================================== */

#js-product-list-top {
    display: none !important;
}

.product-miniature-grid .product-title {
    height: 4.4rem;
}

.facet-type-checkbox a:link:not(.nav-link):not(.btn),
.facet-type-checkbox a:visited:not(.nav-link):not(.btn),
.facet-type-checkbox a:hover:not(.nav-link):not(.btn) {
    color: unset !important;
    padding: 0;
}

.facet-type-checkbox .facet-label,
.block-categories ul > li a {
    display: block;
    line-height: 20px;
    border-bottom: unset;
    font-size: 15px !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    padding: 5px 10px !important;
    border-radius: var(--border-radius-button);
    margin-bottom: 0;
}

.facet-type-checkbox .facet-label a {
    font-size: 15px !important;
}

.active_filters .active-filter-title {
    display: none !important;
}

.active_filters .filter-block a {
    border-radius: var(--border-radius-button);
}

.facet-type-checkbox .facet-label:hover,
.block-categories ul > li:hover a,
.block-categories ul > li a.selected {
    color: #FFF !important;
    background-color: var(--primary-color) !important;
}

.block-categories ul > li,
.facet-type-checkbox > li {
    margin-bottom: 10px;
    margin-right: 10px;
    display: inline-block;
}

.block-links ul > li a:before {
    content: "";
    display: none !important;
}

#wrapper .block-categories h5 {
    font-size: 22px;
    font-style: normal;
    font-weight: normal;
    text-transform: none;
    border-bottom: solid 1px var(--border-color-dark);
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
}

/* Original CMS table styles - preserved */
#cms table.microequilibre {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: var(--box-shadow-light);
}

#cms table.microequilibre tbody {
    display: table-row-group;
}

#cms table.microequilibre tr {
    border-bottom: 1px solid var(--border-color-light);
    transition: background-color var(--transition-fast);
}

#cms table.microequilibre tr:first-child {
    background-color: var(--bg-lighter);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
}

#cms table.microequilibre tr:hover:not(:first-child) {
    background-color: var(--bg-light);
}

#cms table.microequilibre td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
}

#cms table.microequilibre td:first-child {
    font-weight: 500;
    color: var(--primary-color);
    width: 40%;
}

#cms table.microequilibre td:nth-child(2),
#cms table.microequilibre td:nth-child(3) {
    text-align: center;
    width: 30%;
}

#cms table.microequilibre tr:first-child td {
    padding: 15px;
    color: #1a1a1a;
    font-size: 14px;
}

#cms table.microequilibre td p {
    margin: 0;
    line-height: 1.4;
}

#cms table.microequilibre sup {
    font-size: 0.75em;
    vertical-align: super;
    color: var(--primary-color);
}

/* Table microequilibre styles - for Elementor in product pages only */
body#product .elementor table.microequilibre {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: var(--box-shadow-light);
    border-radius: var(--border-radius-standard);
    overflow: hidden;
}

body#product .elementor table.microequilibre tbody {
    display: table-row-group;
}

body#product .elementor table.microequilibre tr {
    border-bottom: 1px solid var(--border-color-light);
    transition: background-color var(--transition-fast);
}

body#product .elementor table.microequilibre tr:first-child,
body#product .elementor table.microequilibre thead tr {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
    border-bottom: 3px solid var(--primary-color);
}

body#product .elementor table.microequilibre tr:hover:not(:first-child):not(thead tr) {
    background-color: var(--bg-light);
}

body#product .elementor table.microequilibre th,
body#product .elementor table.microequilibre td {
    padding: 15px 20px;
    text-align: left;
    vertical-align: middle;
}

body#product .elementor table.microequilibre th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

body#product .elementor table.microequilibre th:nth-child(2),
body#product .elementor table.microequilibre th:nth-child(3) {
    text-align: center;
}

body#product .elementor table.microequilibre td:first-child {
    font-weight: 500;
    color: var(--primary-color);
    width: 40%;
}

body#product .elementor table.microequilibre td:nth-child(2),
body#product .elementor table.microequilibre td:nth-child(3) {
    text-align: center;
    width: 30%;
    font-weight: 600;
}

body#product .elementor table.microequilibre tr:first-child td,
body#product .elementor table.microequilibre thead td {
    padding: 15px 20px;
    color: #fff;
    font-size: 14px;
}

body#product .elementor table.microequilibre td p,
body#product .elementor table.microequilibre th p {
    margin: 0;
    line-height: 1.4;
}

body#product .elementor table.microequilibre h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: inherit;
}

body#product .elementor table.microequilibre sup {
    font-size: 0.75em;
    vertical-align: super;
    color: var(--option-color);
}

body#product .elementor table.microequilibre em {
    font-style: italic;
    color: #666;
}

/* Mobile responsiveness for Elementor tables in product pages */
@media (max-width: 768px) {
    body#product .elementor table.microequilibre {
        font-size: 14px;
    }
    
    body#product .elementor table.microequilibre th,
    body#product .elementor table.microequilibre td {
        padding: 10px;
    }
    
    body#product .elementor table.microequilibre th {
        font-size: 12px;
    }
}

#cms #wrapper {
    padding-bottom: 0 !important;
}

#cms.cms-id-9 #wrapper {
    padding-bottom: 50px !important;
}

#cms #main .page-content {
    margin-bottom: 0 !important;
}

#wrapper .block-categories h5 a {
    color: var(--primary-color) !important;
}

#cms .breadcrumb {
    visibility: hidden !important;
}

#search_filters .facet:nth-child(n+3) {
    padding-top: 0 !important;
    display: inline-block;
}

#search_filters .facet:nth-child(n+3) > ul {
    padding-bottom: 0 !important;
}

#search_filters .faceted-slider p {
    text-align: center;
}

#search_filters .facet:nth-child(2) {
    margin-bottom: 50px;
}

/* ========================================
   17. MEDIA QUERIES
   ======================================== */
/* Desktop responsiveness */
@media (max-width: 1200px) {
    .header-top .col-header-center {
        max-width: 250px;
    }

    #desktop_logo img {
        max-width: 200px;
    }
}

/* Tablet responsiveness */
@media (max-width: 1024px) {
    .elementor-testimonial-carousel .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #product .product-icons-row {
        gap: 15px;
    }

    .col-add-btn .add {
        width: 100%;
    }

    #category h1 {
        font-weight: bold !important;
        margin-bottom: 0 !important;
        color: var(--primary-color);
        font-size: 22px !important;
        text-transform: uppercase !important;
    }

    /* Fix button layout on mobile */
    .product-add-to-cart .add {
        gap: 8px;
    }

    /* When only add to cart button is present */
    .product-add-to-cart .add:not(:has(.or-separator)) > button {
        width: 100%;
        flex: 1 1 100%;
    }

    /* When both buttons are present */
    .product-add-to-cart .add:has(.or-separator) > button,
    .product-add-to-cart .add:has(.or-separator) > #aior_product_button {
        flex: 1 1 45%;
        min-width: 0;
    }

    .product-add-to-cart .add:has(.or-separator) .or-separator {
        flex: 0 0 auto;
        padding: 0 2px;
        font-size: 0.75rem;
    }

    /* Reduce button padding on mobile */
    .product-add-to-cart .add button.add-to-cart {
        padding: 13px 30px;
        padding-left: unset !important;
        padding-right: unset !important;
    }

    #aior_add_to_cart {
        white-space: normal;
    }

    .product-discounts {
        width: 100%;
    }

    .quantity-options-wrapper {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 0.5rem !important;
    }

    .quantity-option {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .quantity-option .qty-option-block {
        padding: 10px !important;
        padding-top: 16px !important;
    }

    .quantity-option .qty-option-image {
        max-height: 30px !important;
    }

    .quantity-option .qty-option-badge {
        padding: 2px 6px !important;
        top: -10px !important;
    }

    #blockcart-modal .modal-dialog {
        max-width: 90%;
        width: 90%;
        margin: 0 auto;
    }

    #js-product-list-top {
        display: block !important;
    }

    .products-selection {
        border: none;
    }

    #js-product-list-top .products-sort-nb-dropdown {
        display: none;
    !important;
    }

    .product-meta-keywords {
        max-height: 30px;
    }

    .col-mobile-logo img {
        max-width: 150px;
    }

    .elementor-animation-float:active, .elementor-animation-float:focus, .elementor-animation-float:hover, .elementor-iqit-banner:hover .elementor-animation-float {
        transform: none;
    }

    #product .section-title {
        color: #333;
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
        font-size: 20px;
        line-height: 25px !important;
        text-align: center;
    }

    .elementor-heading-title {
        font-size: 20px;
        line-height: 25px !important;
        text-align: center;
    }

    footer .lelogoblanc img {
        max-width: 200px !important;
    }

    #footer .lessocials i {
        font-size: 30px !important;
    }

    .header-nav .right-nav {
        display: none;
    }

    #index .simpleblog__listing__post__wrapper {
        padding: 0 20px;
        text-align: center;
    }

    #index .cardblog .card-block {
        text-align: justify;
    }

    #index .blocbleu {
        padding: 20px;
    }

    #index .blocnewsletter {
        padding: 20px;
    }

    .lesexperts .swiper-slide {
        padding-bottom: 10px;
    }

    .lesexperts .elementor-testimonial-carousel {
        touch-action: pan-y pinch-zoom;
    }

    .lesexperts .elementor-testimonial-carousel .swiper-wrapper {
        transform: translate3d(0, 0, 0) !important;
        transition: none !important;
    }

    .lesexperts .elementor-testimonial-carousel.swiper-container {
        overflow: visible !important;
    }

    #index .simpleblog__listing__post__wrapper__content__headline {
        text-align: center;
    }

    .bloczen {
        padding: 20px !important;
        text-align: center !important;
        background-image: none !important;
    }

    .product-sections-nav .nav-sections {
        display: flex;
        flex-wrap: wrap;
        gap: 2px;
        padding: 0;
    }

    .product-sections-nav {
        border-bottom: 0!important;
    }

    .product-sections-nav .nav-item {
        flex: 0 0 calc(20% - 2px);
        min-width: 0;
    }

    .product-sections-nav .nav-link {
        padding: .6rem .2rem;
        font-size: 0.7rem;
        white-space: normal;
        line-height: 1.2;
        word-break: break-word;
        text-align: center;
        border: 1px solid var(--border-color);
    }

    .product-section .section-title {
        font-size: 1.25rem;
    }

    .elementor-testimonial-carousel .swiper-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Small mobile responsiveness */
@media (max-width: 576px) {
    .product-add-to-cart .col-add-qty.show-qty-selector {
        display: flex !important;
    }

    #product .product-icons-row {
        gap: 28px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    #product .product-icons-row {
        display: none;
    }
}
