/* ==========================================================================
   THE NUCLEAR OPTION: FORCE ALL MOBILE NAV MENUS TO #171616
   ========================================================================== */
@media (max-width: 768px) {
    body > div[class*="fixed"],
    body > div[class*="absolute"],
    div[class*="drawer"],
    div[class*="menu"],
    div[class*="modal"],
    div[class*="dialog"],
    div[class*="sidebar"],
    [id*="menu"],
    [id*="drawer"],
    [id*="modal"],
    [id*="dialog"],
    [data-state] {
        background-color: #171616 !important;
    }

    body > div[class*="fixed"] div,
    body > div[class*="absolute"] div,
    div[role="dialog"] div,
    #mobile-drawer-dialog div {
        background-color: #171616 !important;
    }
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
#footer {
    background-color: #171616 !important;
    color: white !important;
}

#footer,
#footer p,
#footer h1,
#footer h2,
#footer h3,
#footer h4,
#footer h5,
#footer h6,
#footer span,
#footer a,
#footer li,
#footer div {
    color: #ffffff !important;
}

/* ==========================================================================
   HEADER & STICKY NAVIGATION
   ========================================================================== */
body > div.sticky.top-0.z-50 > header,
body > div.sticky.top-0.z-50 > header > nav > ul > li:nth-child(4) > a > svg,
body > div.sticky.top-0.z-50 > header > nav > ul > li:nth-child(1) > button > svg,
body > div.sticky.top-0.z-50 > header > nav > ul > li:nth-child(5) > a > svg,
#mobile-drawer-dialog > button {
    background-color: #171616 !important;
    color: white !important;
}

/* ==========================================================================
   GLOBAL MOBILE MENU & DRAWER OVERRIDES
   ========================================================================== */
#mobile-drawer-dialog,
div[role="dialog"],
div[role="dialog"] > div,
.fixed.inset-0.z-50, 
[data-state="open"],
.mobile-menu-container,
.drawer-content {
    background-color: #171616 !important;
}

div[role="dialog"] a,
div[role="dialog"] li,
div[role="dialog"] span,
div[role="dialog"] p,
div[role="dialog"] button,
#mobile-drawer-dialog a,
#mobile-drawer-dialog li,
#mobile-drawer-dialog span,
#mobile-drawer-dialog button,
[class*="menu"] a,
[class*="menu"] li,
[class*="drawer"] a,
[class*="drawer"] li {
    color: #ffffff !important;
}

div[role="dialog"] svg,
div[role="dialog"] svg path,
#mobile-drawer-dialog svg,
#mobile-drawer-dialog svg path,
[class*="menu"] svg,
[class*="menu"] svg path {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* ==========================================================================
   PRODUCT CARD COMPONENT (SHADOWS REMOVED)
   ========================================================================== */
[data-product-card] {
    background: #fff;
    border-radius: 24px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: none !important;
    transition: all .4s ease;
    overflow: hidden;
    position: relative;
}

[data-product-card]:hover {
    transform: translateY(-8px);
    box-shadow: none !important;
}

[data-product-card]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f8e08e, #d4af37);
    opacity: 0;
    transition: .4s;
}

[data-product-card]:hover::before {
    opacity: 1;
}

[data-product-card] img {
    border-radius: 18px;
    transition: all .6s ease;
}

[data-product-card]:hover img {
    transform: scale(1.08);
}

[data-product-card] h3 {
    min-height: 52px;
}

[data-product-card] h3 a {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    color: #171616;
    transition: .3s;
}

[data-product-card]:hover h3 a {
    color: #111827 !important;
}

[data-product-card] p.text-foreground {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #e6a817 !important;
    margin-top: 4px;
}

[data-product-card] p.text-muted {
    color: #6b7280;
    line-height: 1.8;
}

[data-product-card] a.aspect-\[3\/4\] {
    position: relative;
}

[data-product-card] a.aspect-\[3\/4\]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.15), transparent 50%);
    opacity: 0;
    transition: .4s;
}

[data-product-card]:hover a.aspect-\[3\/4\]::after {
    opacity: 1;
}

/* ==========================================================================
   BUTTONS (BASE STATE & OVERLAPS)
   ========================================================================== */
.btn-filled {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #ffffff;
}

[data-add-to-cart],
[data-open-quick-view],
[data-notify-me-trigger],
.product-card button:not([data-wishlist-btn]),
[data-product-card] button:not([data-wishlist-btn]) {
    background-color: #171616 !important;
    border-color: #171616 !important;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: .3px;
    border-radius: 14px !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

[data-wishlist-btn] {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    color: #111 !important;
    border: none !important;
    transition: all 0.3s ease;
}

/* ==========================================================================
   BUTTON HOVER EFFECTS
   ========================================================================== */
[data-add-to-cart]:hover,
[data-open-quick-view]:hover,
[data-notify-me-trigger]:hover,
.product-card button:not([data-wishlist-btn]):hover,
[data-product-card] button:not([data-wishlist-btn]):hover {
    background-color: #ffd500 !important;
    border-color: #ffd500 !important;
    color: #171616 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 213, 0, 0.35) !important;
}

[data-wishlist-btn]:hover {
    transform: scale(1.08);
}

/* ==========================================================================
   STORE BENEFITS SECTION
   ========================================================================== */
.section-benefits {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
    padding-top: 70px !important;
    padding-bottom: 70px !important;
}

.section-benefits .grid > div {
    background: #171616 !important;
    border-radius: 24px;
    padding: 32px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    transition: all .4s ease;
    position: relative;
    overflow: hidden;
}

.section-benefits .grid > div,
.section-benefits .grid > div h1,
.section-benefits .grid > div h2,
.section-benefits .grid > div h3,
.section-benefits .grid > div h4,
.section-benefits .grid > div p,
.section-benefits .grid > div span,
.section-benefits .grid > div svg,
.section-benefits .grid > div svg path {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.section-benefits .grid > div::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #F7E08A, #D4AF37);
    opacity: 0;
    transition: .4s;
}

.section-benefits .grid > div:hover {
    transform: translateY(-8px);
    box-shadow: none !important;
}

.section-benefits .grid > div:hover::before {
    opacity: 1;
}

/* ==========================================================================
   TESTIMONIALS SECTION OVERRIDES (BACKGROUND #ffe666 & BLACK FONT)
   ========================================================================== */
/* Force the background on every container block AND elements using Tailwind background classes inside testimonials */
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 .grid > div,
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 [class*="card"],
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 li,
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 figure,
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 [class*="bg-"] {
    background-color: #ffe666 !important;
    background: #ffe666 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
}

/* Comprehensive text catch-all targeting inside testimonial components */
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 h1,
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 h2,
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 h3,
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 h4,
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 h5,
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 p,
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 span,
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 blockquote,
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 div {
    color: #000000 !important;
}

/* Keep visual rating system stars and quote marks looking clean */
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 svg,
#main > section.section-testimonials.px-4.py-6.md\:px-16.md\:py-16 svg path {
    fill: #000000 !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN LAWS (DESKTOP vs MOBILE)
   ========================================================================== */

/* --- DESKTOP LAYOUT OVERRIDES (min-width: 769px) --- */
@media (min-width: 769px) {
    #main > section.section-benefits {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    .section-benefits .grid {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 24px !important;
        max-width: 1280px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .section-benefits .grid > div {
        flex: 0 1 350px !important;
        min-width: 300px !important;
    }
}

/* --- MOBILE LAYOUT OVERRIDES (max-width: 768px) --- */
@media(max-width: 768px) {
    [data-product-card] {
        padding: 12px;
        border-radius: 18px;
    }

    [data-product-card] h3 a {
        font-size: 14px;
    }

    [data-product-card] p.text-foreground {
        font-size: 20px !important;
    }

    [data-add-to-cart] {
        min-height: 46px;
    }

    #main > section.section-benefits.bg-secondary.px-4.py-6.md\:p-16 {
        display: flex !important;
        flex-direction: column !important;
    }

    .section-benefits .grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
}

/* hero banners */
@media (max-width: 768px) {
    #main > section:nth-child(1) {
        padding: 0 !important;
        min-height: 180px !important;
    }

    #main > section:nth-child(1) .section-hero img {
        object-fit: cover !important;
        height: 180px !important;
    }

    #main > section:nth-child(3) {
        padding: 0 !important;
        min-height: 145px !important;
    }

    #main > section:nth-child(3) .section-hero img {
        object-fit: cover !important;
        max-height: 300px !important;
        height: auto !important;
    }

    #main > section:nth-child(5) {
        padding: 0 !important;
        min-height: 145px !important;
    }

    #main > section:nth-child(5) .section-hero img {
        object-fit: cover !important;
        max-height: 300px !important;
        height: auto !important;
    }

    #main > section:nth-child(7) {
        padding: 0 !important;
        min-height: 145px !important;
    }

    #main > section:nth-child(7) .section-hero img {
        object-fit: cover !important;
        max-height: 300px !important;
        height: auto !important;
    }

    #main > section:nth-child(9) {
        padding: 0 !important;
        min-height: 145px !important;
    }

    #main > section:nth-child(9) .section-hero img {
        object-fit: cover !important;
        max-height: 300px !important;
        height: auto !important;
    }

    #main > section:nth-child(11) {
        padding: 0 !important;
        min-height: 145px !important;
    }

    #main > section:nth-child(11) .section-hero img {
        object-fit: cover !important;
        max-height: 300px !important;
        height: auto !important;
    }
}

/* ==========================================================================
   EXCLUSIVE HEADER & FOOTER ONLY OVERRIDE
   ========================================================================== */
body > div.sticky.top-0.z-50 header a,
body > div.sticky.top-0.z-50 header li,
body > div.sticky.top-0.z-50 header span,
body > div.sticky.top-0.z-50 header button,
body > div.sticky.top-0.z-50 header div {
    color: #ffffff !important;
}

body > div.sticky.top-0.z-50 header svg path,
body > div.sticky.top-0.z-50 header svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}


body > div.sticky.top-0.z-50 > header{
    border:0;
}



/* ==========================================================================
   MOBILE IMAGE CAROUSEL FIXED RESETS (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {
    /* 1. Force the parent section container to scale to 220px, breaking the 180px trap */
    #main > section.section-carousel,
    [section-id="43226714-1c6f-480f-bc71-e5dff36d5759"] {
        min-height: 220px !important;
        height: 220px !important;
        padding: 0 !important;
    }

    /* 2. Keep the viewport clean (no flex wrappers here, matching testimonials style) */
    #main > section.section-carousel .embla__viewport,
    [section-id="43226714-1c6f-480f-bc71-e5dff36d5759"] .embla__viewport {
        height: 100% !important;
        overflow: hidden !important;
    }

    /* 3. Let the track container stretch horizontally */
    #main > section.section-carousel .embla__container,
    [section-id="43226714-1c6f-480f-bc71-e5dff36d5759"] .embla__container {
        display: flex !important;
        height: 100% !important;
        gap: 0px !important; /* Change to 16px if you want spacing between image slides */
    }

    /* 4. Clean slide rules matching your successful testimonial structural behavior */
    #main > section.section-carousel .embla__slide,
    #main > section.section-carousel .embla__container > div,
    [section-id="43226714-1c6f-480f-bc71-e5dff36d5759"] .embla__slide,
    [section-id="43226714-1c6f-480f-bc71-e5dff36d5759"] .embla__container > div {
        flex: 0 0 100% !important;
        min-width: 0 !important;
        height: 100% !important;
    }

    /* 5. Clear out any utility aspect ratios that mess with the container constraints */
    #main > section.section-carousel [class*="aspect-"],
    [section-id="43226714-1c6f-480f-bc71-e5dff36d5759"] [class*="aspect-"] {
        aspect-ratio: auto !important;
        height: 100% !important;
        width: 100% !important;
    }

    /* 6. Fix the image container so object-fit actually can do its job */
    #main > section.section-carousel img,
    [section-id="43226714-1c6f-480f-bc71-e5dff36d5759"] img,
    #main > section.section-carousel .section-hero img,
    [section-id="43226714-1c6f-480f-bc71-e5dff36d5759"] .section-hero img {
        width: 100% !important;
        height: 100% !important;
        max-height: 220px !important;
        object-fit: cover !important;
        display: block !important;
    }
}