/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
#footer {
    background-color: #1f1f1f !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,
#mobile-drawer-dialog > button {
    background-color: #1f1f1f !important;
    color: white !important;
}

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

[data-product-card]:hover {
    transform: translateY(-8px);
    box-shadow:
        0 10px 25px rgba(0,0,0,.08),
        0 25px 60px rgba(0,0,0,.12);
}

/* Luxury Top Glow Effect */
[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;
}

/* Images & Hover Scale */
[data-product-card] img {
    border-radius: 18px;
    transition: all .6s ease;
}

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

/* Product Content Elements */
[data-product-card] h3 {
    min-height: 52px;
}

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

[data-product-card]:hover h3 a {
    color: #0f766e;
}

/* Price Styling (Gold Theme) */
[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;
}

/* Image Aspect Overlay */
[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: #1e1e1e !important;
    border-color: #1e1e1e !important;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: .3px;
    border-radius: 14px !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(15,118,110,.25);
    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
   ========================================================================== */
/* Updated Hover Color to Match Premium Gold (#e6a817) */
[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: #e6a817 !important;
    border-color: #e6a817 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(230, 168, 23, 0.35) !important;
}

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

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

/* Individual Benefit Card Base Styles */
.section-benefits .grid > div {
    background: #fff;
    border-radius: 24px;
    padding: 32px 24px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow:
        0 10px 25px rgba(0,0,0,.04),
        0 20px 50px rgba(0,0,0,.05);
    transition: all .4s ease;
    position: relative;
    overflow: hidden;
}

/* Luxury Card Top Border Line */
.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:
        0 20px 40px rgba(0,0,0,.08),
        0 30px 60px rgba(0,0,0,.10);
}

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

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

/* --- DESKTOP LAYOUT OVERRIDES (min-width: 769px) --- */
@media (min-width: 769px) {
    /* Fixed centering bug by applying alignment directly to wrapper section */
    #main > section.section-benefits {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* Converts native Tailwind grid container to centered Flex layout */
    .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;
    }

    /* Keeps cards sized proportionately instead of crushing or stretching */
    .section-benefits .grid > div {
        flex: 0 1 350px !important;
        min-width: 300px !important;
    }
}

/* --- MOBILE LAYOUT OVERRIDES (max-width: 768px) --- */
@media(max-width: 768px) {
    /* Product card structural updates for small viewports */
    [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;
    }

    /* Fixed mobile view alignment: forces benefits section to stack vertically */
    #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(4) {
        padding: 0 !important;
        min-height: 145px !important;
    }

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

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

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

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

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