/* ====================================================================
   NANMAYIL PREMIUM HOME STYLES
   "Ultra-Modern Emerald" Aesthetic - 10/10 Luxury Monochrome
   ==================================================================== */

/* LUXURY TYPOGRAPHY FONTS */
/* Fonts loaded via HTML <link> — do not @import here (blocks rendering) */

/* --- PREMIUM TEAL-EMERALD PALETTE --- */
:root {
    --emerald-deep: #0B7070;
    /* Primary Buttons/Text */
    --emerald-light: #0D9488;
    /* Gradients/Highlights */
    --emerald-ice: rgba(13, 148, 136, 0.08);
    /* Glass Backgrounds */
    --emerald-dark-text: #0B6E6E;
    /* Headers */
    --gold-accent: #D97706;
    /* Stars/Badges */
    --bg-gradient-start: #E0F2F1;
    /* Very pale teal */
    --bg-gradient-end: #F0FAFA;

    /* Update existing brand variables */
    --brand-green: #0D9488;
    --text-main: #0B6E6E;
    --bg-sage: #F8FAFC;
    /* Clean White-Grey base */
}

/* --- PREMIUM TEAL MIST BACKGROUND --- */
body {
    background: radial-gradient(circle at 15% 15%, rgba(13, 148, 136, 0.12), transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(11, 112, 112, 0.08), transparent 40%),
        #F8FAFC !important;
    min-height: 100vh;
}

/* --- 1. PULSING BRAND LOADER --- */
.status-hidden {
    display: none !important;
}

.premium-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-sage, #c8dad3);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.premium-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    animation: pulse 2.5s infinite ease-in-out;
    filter: drop-shadow(0 8px 18px rgba(0, 50, 30, 0.15));
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.85;
    }
}

/* =========================================
   HEADER PERFECTION CODE (LUXURY POLISH)
   ========================================= */

/* 1. BACKGROUND: PURE WHITE GLASS (Removes the dirty grey) */
#siteHeader,
.modern-header,
.navbar,
header:not(.section-header) {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled State */
#siteHeader.header-scrolled,
.modern-header.header-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
}

/* 3. LOGO ALIGNMENT (Optical Center) */
.logo-title a,
.navbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    /* Space between Icon and Text */
}

.site-title,
.brand-name {
    font-family: 'Playfair Display', serif !important;
    color: #0B6E6E !important;
    /* Deep Emerald */
    font-size: 1.6rem !important;
    position: relative !important;
    top: 2px !important;
    /* Optical Nudge to align with heavy icon */
    margin: 0 !important;
    letter-spacing: -0.02em !important;
}

/* 4. NAV LINKS (Architectural Dark Grey) */
.nav-links a,
.nav-link {
    color: #1F2937 !important;
    /* Dark Charcoal - NOT Green */
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.2px !important;
    text-transform: capitalize !important;
    position: relative;
    padding: 4px 0;
    transition: all 0.2s ease;
}

.nav-links:not(.active) a:hover,
.nav-links a:hover,
.nav-link:hover {
    color: #0D8A7A !important;
    /* Green only on hover */
    transform: translateY(-1px) !important;
}

/* 2. SEARCH BAR: THE "SEAMLESS PILL" (Fixes Box-in-Box) */
.header-search,
.search-bar,
.modern-header .search-input {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    /* Subtle Grey Border */
    border-radius: 50px !important;
    padding: 8px 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    width: 280px !important;
    transition: all 0.3s ease !important;

    /* Ensure no double rendering if .search-input is the input itself */
    appearance: none;
}

/* Fix for when .search-input TARGETS the input element directly in HTML structure */
/* We need to reset it to be transparent if it's the input */
input.search-input,
.header-search input,
.search-bar input,
input[type="search"] {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    /* KILL BOX SHADOW ON INPUT */
    width: 100% !important;
    font-size: 0.95rem !important;
    color: #374151 !important;
    /* Dark Grey Text */
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
}

/* Search Icon Styling */
.header-search svg,
.search-bar svg,
.search-icon {
    color: #9CA3AF !important;
    /* Light Grey Icon */
    width: 18px !important;
    height: 18px !important;
    stroke: #9CA3AF !important;
    opacity: 1 !important;
    position: static !important;
    /* Let flex handle layout */
    margin-right: -4px;
}

/* Hover State: Only turn Green when active */
.header-search:hover,
.header-search:focus-within,
.search-bar:hover,
.search-bar:focus-within {
    border-color: #0D8A7A !important;
    box-shadow: 0 4px 20px rgba(11, 112, 112, 0.1) !important;
}

/* Ensure Search Icon is positioned correctly */
.header-search svg {
    left: 18px !important;
    width: 18px !important;
    height: 18px !important;
    stroke: #0B6E6E !important;
    opacity: 0.6;
}

/* Login Toggle - Ghost Button Style */
.login-toggle-btn {
    background: transparent !important;
    border: 1.5px solid #0B6E6E !important;
    color: #0B6E6E !important;
    border-radius: 50px !important;
    padding: 8px 24px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.login-toggle-btn:hover {
    background: rgba(11, 110, 110, 0.05) !important;
    transform: translateY(-1px) !important;
}

/* --- 3. SHOWCASE ENGINE: CATEGORY RAIL --- */
.category-rail-section {
    padding: 80px 0 60px;
    /* Increased top padding */
    overflow: hidden;
}

/* Typography — serif family + ink color, softer weight (400 italic reads
   editorial, 700 reads "bold magazine cover"). Font-size yields to the
   clamp-based scale in css/pages/home.css for .section-title. */
h1,
h2,
.section-title {
    font-family: var(--font-display, 'Fraunces', 'Playfair Display', serif) !important;
    font-weight: 400 !important;
    color: var(--color-ink, #1A1A1A) !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
}

/* h3 / h4 — ink, serif, quieter than the legacy emerald bold */
h3,
h4 {
    font-family: var(--font-display, 'Fraunces', 'Playfair Display', serif) !important;
    font-weight: 500 !important;
    color: var(--color-ink, #1A1A1A) !important;
    letter-spacing: -0.01em !important;
}

.rail-container {
    display: grid;
    gap: 24px;
    /* Better responsive sizing to prevent them being too big */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

/* Outer Shadow Container */
.rail-card {
    position: relative !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    /* FORCE CLIP */
    aspect-ratio: 3/4;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #f0f0f0;
    /* Fallback bg */
    /* Nuclear clip-path */
    clip-path: inset(0 round 20px) !important;
    -webkit-clip-path: inset(0 round 20px) !important;
}

/* Inner Clipper - also force clipping */
.rail-card-inner {
    position: absolute !important;
    inset: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    isolation: isolate;
}

/* Desktop Hover Zoom */
@media (min-width: 769px) {
    .rail-card:hover {
        transform: translateY(-8px) scale(1.02);
        z-index: 10;
        box-shadow: 0 20px 40px rgba(0, 50, 30, 0.15);
    }

    .rail-card:hover .rail-img {
        transform: scale(1.1);
    }
}

/* Force image to stay inside card bounds */
.rail-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: transform 0.6s ease;
    border-radius: 20px !important;
    will-change: transform;
    max-width: 100% !important;
    max-height: 100% !important;
}

.rail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.rail-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    transform: translateY(0);
    font-family: 'Cinzel', serif;
    /* Consistent brand font */
}

/* Mobile Snap Carousel */
@media (max-width: 768px) {
    .category-rail-section {
        padding: 40px 0;
    }

    .rail-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .rail-container::-webkit-scrollbar {
        display: none;
    }

    .rail-card {
        flex: 0 0 85vw;
        /* Show partial next card */
        scroll-snap-align: center;
        margin-right: 16px;
    }

    .rail-card:first-child {
        margin-left: 20px;
        /* Offset for first card */
    }
}

/* --- 4. SHOWCASE ENGINE: TRENDING ROW --- */
.trending-section {
    padding: 60px 0 100px;
    /* Increased bottom padding for separation */
}

/* "From the Collection" — 3-column grid so 6 cards fill two even rows */
.trending-scroll-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 20px 0 40px;
}

@media (max-width: 900px) {
    .trending-scroll-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 540px) {
    .trending-scroll-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.trending-scroll-row .product-card {
    min-width: unset !important;
    max-width: unset !important;
    width: 100% !important;

    /* Force clipping with nuclear options */
    overflow: hidden !important;
    border-radius: 16px !important;
    clip-path: inset(0 round 16px) !important;
    -webkit-clip-path: inset(0 round 16px) !important;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Uniform height logic */
    height: 480px !important;
    background: rgba(255, 255, 255, 0.2);
}

/* Inner Clipper */
.product-card-inner {
    width: 100% !important;
    height: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    isolation: isolate;
    display: flex;
    flex-direction: column;
    background: var(--glass-surface, rgba(255, 255, 255, 0.2));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border, 1px solid rgba(255, 255, 255, 0.4));
}

/* Ensure the last card is also same height */
.trending-scroll-row .product-card:last-child {
    height: 480px !important;
}

/* Gallery container must clip overflow */
.trending-scroll-row .product-card .product-gallery,
.product-card-inner .product-gallery {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    border-radius: 16px 16px 0 0 !important;
}

.trending-scroll-row .product-card .gallery-image-box,
.product-card-inner .gallery-image-box,
.product-card-inner .pc-slider-wrap {
    height: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Specific carousel slide styling */
.pc-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    position: relative !important;
    /* Allow normal flow in flex */
}

/* FORCE images to stay inside bounds - general rule */
.trending-scroll-row .product-card img:not(.pc-slide img),
.trending-scroll-row .product-card .product-img,
.product-card-inner>img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    max-height: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
}

/* CAROUSEL IMAGES: MUST BE RELATIVE to slide */
.pc-slide img {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    /* Changed from cover to contain to show full product */
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    top: auto !important;
    left: auto !important;
}

.trending-scroll-row .product-card .product-info,
.product-card-inner .product-info {
    flex: 0 0 auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.4);
}

.trending-scroll-row .product-title {
    margin: 4px 0 8px 0;
}

/* Force 2 lines for title to keep alignment */
.trending-scroll-row .product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
    line-height: 1.3;
}

/* --- EXPLORE / SHOP-NOW (editorial secondary — outlined emerald, gold hairline) ---
   This is a *secondary* CTA (primary is the hero button). So it reads quieter:
   transparent fill, 1px emerald border, emerald text. Fills emerald on hover.
   --------------------------------------------------------------------------- */
.explore-btn,
.shop-now-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: fit-content !important;
    padding: 14px 36px !important;
    border-radius: 2px !important;
    background: transparent !important;
    color: var(--color-brand, #0B6E6E) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8125rem !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
    font-weight: 500 !important;
    border: 1px solid var(--color-brand, #0B6E6E) !important;
    box-shadow: none !important;
    transition:
        background var(--duration-base, 240ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1)),
        color var(--duration-base, 240ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1)),
        border-color var(--duration-base, 240ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1)) !important;
    cursor: pointer;
    text-decoration: none;
    margin: 0 auto;
    position: relative;
}

/* gold hairline flourish beneath the button, slides in on hover */
.explore-btn::after,
.shop-now-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 48px;
    height: 1px;
    background: var(--color-accent, #C9A961);
    transition: transform var(--duration-slow, 480ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1));
    pointer-events: none;
}

.explore-btn:hover,
.shop-now-btn:hover {
    transform: none !important;
    background: var(--color-brand, #0B6E6E) !important;
    color: var(--color-ink-inverse, #FBF8F3) !important;
    border-color: var(--color-brand, #0B6E6E) !important;
    box-shadow: 0 6px 20px rgba(11, 110, 110, 0.14) !important;
}

.explore-btn:hover::after,
.shop-now-btn:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.explore-btn:focus-visible,
.shop-now-btn:focus-visible {
    outline: 2px solid var(--color-accent, #C9A961) !important;
    outline-offset: 3px !important;
}

/* --- 5. LIVE PRODUCT CARD UPGRADES --- */
/* Inner Carousel */
.pc-slider-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pc-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    height: 100%;
}

.pc-slider::-webkit-scrollbar {
    display: none;
}

.pc-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
}

.pc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* or contain depending on image aspect */
}

/* Navigation Dots (Mini) */
.pc-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .pc-dots {
    opacity: 1;
}

.pc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
}

.pc-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Premium Tag */
.premium-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(13, 148, 136, 0.9);
    /* Brand Green */
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    /* Let clicks pass through */
}

/* Side Arrows (Desktop Only) */
.pc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 6;
    user-select: none;
    pointer-events: all;
    /* Explicitly allow clicking */
}

.pc-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.product-card:hover .pc-arrow {
    opacity: 1;
}

.pc-prev {
    left: 8px;
}

.pc-next {
    right: 8px;
}

/* Display none for mobile arrows */
@media (max-width: 768px) {
    .pc-arrow {
        display: none !important;
    }

    .pc-dots {
        opacity: 1;
    }

    /* Always show dots on mobile */

    /* ========== TRENDING NOW: 1-COLUMN VERTICAL FEED ========== */
    /* Convert horizontal scroll to Instagram-style vertical feed */
    .trending-scroll-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px;
        /* Reduced from 32px - Better mobile spacing */
        overflow-x: visible !important;
        scroll-snap-type: none !important;
        padding: 20px 16px;
    }

    .trending-scroll-row .product-card {
        min-width: 100% !important;
        max-width: 100% !important;
        scroll-snap-align: none;
        display: flex;
        flex-direction: column;
        height: auto !important;
        /* Allow card to expand for content */
        overflow: visible !important;
        /* Ensure buttons are visible */
    }

    /* Image takes full width - NO height restriction */
    .trending-scroll-row .product-card .product-gallery {
        width: 100%;
        flex-shrink: 0;
    }

    .trending-scroll-row .product-card .product-gallery img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* LEFT-ALIGNED product info for premium feel */
    .trending-scroll-row .product-card .product-info {
        text-align: left !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
        padding: 16px 12px;
        flex-grow: 1;
    }

    .trending-scroll-row .product-title,
    .trending-scroll-row .product-price,
    .trending-scroll-row .product-info h3,
    .trending-scroll-row .product-info p,
    .trending-scroll-row .product-info .price {
        text-align: left !important;
        margin-left: 0;
        margin-right: 0;
    }

    /* Ensure buttons are visible and full-width (exclude wishlist heart) */
    .trending-scroll-row .product-card .btn,
    .trending-scroll-row .product-card .btn-primary,
    .trending-scroll-row .product-card button:not(.product-wishlist-btn),
    .trending-scroll-row .product-card a[class*="btn"] {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 12px 0 8px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 16px !important;
        /* Compact mobile padding */
        font-size: 0.875rem !important;
        /* Slightly smaller text */
        min-height: auto !important;
    }

    /* Ensure product info has enough bottom padding for buttons */
    .trending-scroll-row .product-card .product-info {
        padding-bottom: 16px !important;
    }

    /* EXPLORE FULL COLLECTION button - More premium sizing on mobile */
    .hero-copy .hero-cta .btn,
    .hero-cta .btn,
    button[class*="explore"],
    a[class*="explore"] {
        padding: 12px 24px !important;
        /* Reduced from 14px 36px */
        font-size: 0.95rem !important;
        /* Slightly smaller */
    }
}


/* Product Card Refinements - Equal Heights & Bottom-Aligned Buttons */
.product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 420px !important;
    justify-content: space-between !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    overflow: hidden !important;
    border-radius: 16px !important;
}

.product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 14px 40px -5px rgba(0, 50, 30, 0.15) !important;
}

.product-info {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* --- EDITORIAL PRIMARY ACTIONS (restrained, ink-on-ivory, gold grace note) ---
   Replaces the bright emerald gradient pill that was screaming at users.
   Rule: ivory is the canvas, deep emerald is the signature, champagne gold is the flourish.
   - Primary  : ink fill, ivory text, square-ish radius, thin gold hairline appears on hover
   - .btn-secondary and form buttons keep their own treatments (not targeted here)
   --------------------------------------------------------------------------- */
.item-btn,
.product-btn,
.add-to-cart-btn,
.login-btn,
button.premium-btn,
.btn,
.btn-primary,
button:not(.btn-secondary):not(.btn-danger):not(.pf-submit):not(.pc-arrow):not(.adaptive-hero-dot):not(.qty-btn):not(.share-btn):not(.explore-btn):not(.shop-now-btn) {
    background: var(--color-brand, #0B6E6E) !important;
    color: var(--color-ink-inverse, #FBF8F3) !important;
    border: 1px solid var(--color-brand, #0B6E6E) !important;

    /* quiet shadow, not a glow */
    box-shadow: 0 1px 2px rgba(26, 24, 20, 0.08), 0 2px 6px rgba(26, 24, 20, 0.06) !important;

    /* editorial rectangle, not pharmacy-app pill */
    border-radius: 4px !important;

    /* typography: letterspaced uppercase, smaller and quieter */
    font-family: 'Inter', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    font-size: 0.8125rem;

    padding: 14px 28px;
    min-height: 44px;

    /* slow, elegant transition — not snappy */
    transition:
        background var(--duration-base, 240ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1)),
        color var(--duration-base, 240ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1)),
        border-color var(--duration-base, 240ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1)),
        box-shadow var(--duration-slow, 480ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1)) !important;

    position: relative;
    overflow: visible;
}

/* thin champagne hairline that slides in underneath on hover — the "grace note" */
.item-btn::after,
.product-btn::after,
.add-to-cart-btn::after,
.login-btn::after,
button.premium-btn::after,
.btn::after,
.btn-primary::after,
button:not(.btn-secondary):not(.btn-danger):not(.pf-submit):not(.pc-arrow):not(.adaptive-hero-dot):not(.explore-btn):not(.shop-now-btn)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 32px;
    height: 1px;
    background: var(--color-accent, #C9A961);
    transition: transform var(--duration-slow, 480ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1));
    pointer-events: none;
}

.item-btn:hover,
.product-btn:hover,
.add-to-cart-btn:hover,
.login-btn:hover,
button.premium-btn:hover,
.btn:hover,
.btn-primary:hover,
button:not(.btn-secondary):not(.btn-danger):not(.pf-submit):not(.pc-arrow):not(.adaptive-hero-dot):not(.explore-btn):not(.shop-now-btn):hover {
    background: var(--color-brand-strong, #085A5A) !important;
    border-color: var(--color-brand-strong, #085A5A) !important;
    color: var(--color-ink-inverse, #FBF8F3) !important;
    box-shadow: 0 2px 4px rgba(8, 90, 90, 0.14), 0 8px 24px rgba(8, 90, 90, 0.20) !important;
    transform: none;
}

.item-btn:hover::after,
.product-btn:hover::after,
.add-to-cart-btn:hover::after,
.login-btn:hover::after,
button.premium-btn:hover::after,
.btn:hover::after,
.btn-primary:hover::after,
button:not(.btn-secondary):not(.btn-danger):not(.pf-submit):not(.pc-arrow):not(.adaptive-hero-dot):not(.explore-btn):not(.shop-now-btn):hover::after {
    transform: translateX(-50%) scaleX(1);
}

.item-btn:active,
.product-btn:active,
.add-to-cart-btn:active,
.login-btn:active,
button.premium-btn:active,
.btn:active,
.btn-primary:active,
button:not(.btn-secondary):not(.btn-danger):not(.pf-submit):not(.pc-arrow):not(.adaptive-hero-dot):not(.explore-btn):not(.shop-now-btn):active {
    background: var(--color-brand-strong, #085A5A) !important;
    border-color: var(--color-brand-strong, #085A5A) !important;
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(26, 24, 20, 0.10) !important;
}

.item-btn:focus-visible,
.product-btn:focus-visible,
.add-to-cart-btn:focus-visible,
.login-btn:focus-visible,
button.premium-btn:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible,
button:not(.btn-secondary):not(.btn-danger):not(.pf-submit):not(.pc-arrow):not(.adaptive-hero-dot):not(.explore-btn):not(.shop-now-btn):focus-visible {
    outline: 2px solid var(--color-accent, #C9A961) !important;
    outline-offset: 3px !important;
}

/* --- 6. POWER FOOTER --- */
/* Base Footer Grid is handled in JS/HTML injection, just styling here */
.pf-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 60px 0;
}

.pf-col h4 {
    font-family: 'Cinzel', serif;
    margin-bottom: 24px;
    color: var(--text-main, #022c22);
    font-size: 1.1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* For mobile accordion arrow */
}

/* Newsletter Input */
.pf-newsletter {
    position: relative;
    margin-top: 16px;
}

.pf-input {
    width: 100%;
    padding: 14px 120px 14px 20px;
    /* Space for button */
    border-radius: 50px;
    border: 1px solid rgba(0, 128, 0, 0.2);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    font-family: inherit;
    transition: all 0.3s;
}

.pf-input:focus {
    background: #fff;
    border-color: var(--brand-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.pf-submit {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    border-radius: 40px;
    padding: 0 20px;
    background: var(--brand-green);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.pf-submit:hover {
    transform: scale(1.05);
}

/* Payment Icons Row */
.pf-trust {
    border-top: 1px solid rgba(0, 128, 0, 0.1);
    padding-top: 24px;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: opacity 0.3s, filter 0.3s;
}

.pf-trust:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.payment-icon {
    height: 24px;
    width: auto;
}

/* Mobile Accordion Footer - Enhanced */
@media (max-width: 768px) {
    .pf-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Also target site-footer structure */
    .site-footer .f-block,
    .pf-col {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .site-footer .f-head,
    .pf-col h4 {
        margin: 0;
        padding: 20px 0;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        user-select: none;
        transition: color 0.3s;
    }

    .site-footer .f-head:hover,
    .pf-col h4:hover {
        color: #0D9488;
    }

    .site-footer .f-head::after,
    .pf-col h4::after {
        content: '+';
        font-weight: 300;
        font-size: 1.5rem;
        transition: transform 0.3s;
        color: #0D9488;
    }

    .site-footer .f-block.expanded .f-head::after,
    .pf-col.expanded h4::after {
        content: '−';
        transform: rotate(0deg);
    }

    /* Collapsible Content - Support multiple selectors */
    .site-footer .pf-content,
    .site-footer .f-head+div,
    .site-footer .f-head+ul,
    .pf-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        padding-bottom: 0;
    }

    .site-footer .f-block.expanded .pf-content,
    .site-footer .f-block.expanded .f-head+div,
    .site-footer .f-block.expanded .f-head+ul,
    .pf-col.expanded .pf-content {
        max-height: 500px;
        padding-bottom: 24px;
    }
}

/* ========================================
   PREMIUM 8-TILE LIFESTYLE GRID
   Mint Green Aesthetic - Refactored from Rail
   ======================================== */

/* Override rail-container for grid layout */
#category-rail {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    position: relative;
    z-index: 1;
    /* Reset any flex properties */
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    padding-bottom: 0 !important;
}

/* Editorial section: ivory canvas, generous vertical rhythm, no glow */
.category-rail-section {
    background: var(--color-canvas, #FBF8F3) !important;
    padding: clamp(72px, 10vw, 120px) 20px !important;
    position: relative;
    overflow: hidden;
}

/* Kill the old pulsing emerald glow — luxury doesn't strobe */
.category-rail-section::before {
    content: none !important;
}

@keyframes pulseGlow { 0%,100% { opacity: 0; } }

/* Individual Lifestyle Tile - Ultra-Premium Glassmorphism */
.lifestyle-tile,
.category-card,
.category-tile {
    position: relative;
    border-radius: 24px !important;
    /* Softer corners */
    overflow: hidden;
    /* CRITICAL for image zoom containment */
    aspect-ratio: 1 / 1;
    padding: 20px !important;
    /* More breathing room */

    /* Premium Glass Effect with Emerald Tint */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* Refined Subtle Border */
    border: 1px solid rgba(255, 255, 255, 0.9);

    /* Emerald Shadow */
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1);

    /* Bouncy Premium Transition */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer;
}

.lifestyle-tile:hover,
.category-card:hover,
.category-tile:hover {
    /* Enhanced Glass on Hover with Emerald Glow */
    background: rgba(255, 255, 255, 0.75);
    border-color: var(--emerald-light);
    box-shadow: 0 15px 40px rgba(13, 148, 136, 0.25);
    transform: translateY(-8px);
}

/* Category tile images get rounded corners */
.category-card img,
.category-tile img,
.tile-img {
    border-radius: 16px !important;
}

/* Link Reset */
.tile-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Image Wrapper */
.tile-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ⚡ RECOMMENDED IMAGE RATIO: 4:5 Portrait (800x1000px) or 1:1 Square (800x800px)
   Images use object-fit: cover and will be cropped to fill the tile.
   Ensure important content is centered in the image. */
.tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lifestyle-tile:hover .tile-img {
    transform: scale(1.1);
}

/* Title Content with Cinematic Gradient for Readability */
.tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 16px;
    /* Deepened gradient for better text readability */
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.5) 40%,
            transparent 100%);
    z-index: 2;
}

.tile-title {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
    /* 14px - Smaller but bolder for luxury feel */
    font-weight: 700;
    text-transform: uppercase;
    /* LUXURY CAPS */
    letter-spacing: 1px;
    /* Premium tracking/spacing */
    color: #ffffff;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    /* Enhanced for better contrast */
    line-height: 1.2;
    transition: transform 0.3s ease;
}

.lifestyle-tile:hover .tile-title {
    transform: translateY(-4px);
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Tablets: 2x4 Grid */
@media (max-width: 768px) {
    #category-rail {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        /* Reset mobile carousel styles */
        display: grid !important;
        overflow-x: visible !important;
    }

    .category-rail-section {
        padding: 40px 16px !important;
    }

    .lifestyle-tile {
        /* Reset mobile rail-card styles */
        flex: none !important;
        scroll-snap-align: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

/* Mobile: 2x4 Grid (Better Conversion than 1 Column) */
@media (max-width: 480px) {
    #category-rail {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Mobile Typography Fix - Prevent Awkward Wrapping */
    .tile-title {
        font-size: 0.75rem;
        /* 12px - Reduced from 14px */
        line-height: 1.1;
        /* Tighter line height */
        letter-spacing: 0.5px;
        /* Slightly reduced spacing */
        padding: 0 8px;
        /* Prevent edge wrapping */
    }

    /* Ensure two-word titles stay on one line if possible */
    .tile-content {
        padding: 20px 12px;
    }
}

/* Loading Skeleton (for initial state) */
.skeleton-card {
    background: linear-gradient(90deg,
            var(--emerald-ice) 0%,
            rgba(13, 148, 136, 0.15) 50%,
            var(--emerald-ice) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==========================================================================
   CRITICAL MOBILE FIXES V3 (ID SELECTOR + CACHE BUSTER)
   ========================================================================== */
@media (max-width: 768px) {

    /* Container: Uses ID for Max Specificity */
    #trending-row {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding-bottom: 60px !important;
        /* Breathing room */
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    /* Card: Force Auto Header */
    #trending-row .product-card {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        /* Gap handles spacing now */
        background: #fff !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        padding-bottom: 20px !important;
    }

    /* Inner Structure */
    #trending-row .product-card .product-card-inner {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Gallery: Natural Landscape */
    #trending-row .product-card .product-gallery {
        flex: 0 0 auto !important;
        height: auto !important;
    }

    #trending-row .product-card .product-gallery img {
        height: auto !important;
        width: 100% !important;
    }

    /* Info: Allow Growth */
    #trending-row .product-card .product-info {
        height: auto !important;
        flex: 1 1 auto !important;
        /* Flex grow */
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    /* Button: Forced Visibility (exclude wishlist heart) */
    #trending-row .product-card .btn,
    #trending-row .product-card .add-to-cart-btn,
    #trending-row .product-card button:not(.product-wishlist-btn) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 100 !important;
        margin-top: 16px !important;
        width: 100% !important;
        min-height: 44px !important;
        transform: translateZ(0) !important;
        /* GPU Layer */
    }


    /* Explicit Fix for 5th item if needed (though generic rules handles it) */
    #trending-row .product-card:nth-child(5) {
        margin-bottom: 40px !important;
    }
}

/* ========== CATEGORY VIEW HEADER ========== */
.category-view-header {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(245, 255, 249, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 128, 0, 0.15);
    padding: 24px 0;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 128, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-view-header .container {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.back-to-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #008000, #00a000);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.back-to-home-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.5s ease;
}

.back-to-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 128, 0, 0.35);
    background: linear-gradient(135deg, #00a000, #00c000);
}

.back-to-home-btn:hover::before {
    left: 100%;
}

.back-to-home-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 128, 0, 0.3);
}

.back-to-home-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.back-to-home-btn:hover svg {
    transform: translateX(-4px);
}

.category-view-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #0f3c23;
    margin: 0;
    background: linear-gradient(135deg, #008000, #00a000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-view-header {
        padding: 16px 0;
        margin-bottom: 24px;
    }

    .category-view-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .back-to-home-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .category-view-title {
        font-size: 1.5rem;
    }
}

/* ========== END: CATEGORY VIEW HEADER ========== */
/* ====================================================================
   MICRO-LENS CORRECTIONS - LUXURY FIT & FINISH
   ==================================================================== */

/* 1. Fix Category Labels (Make them readable & consistent) */
.category-card .label-pill,
.category-label,
.tile-label,
/* Existing class mapping */
.lifestyle-tile .tile-title {
    font-size: 0.85rem !important;
    /* Was too small */
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    padding: 8px 16px !important;
    /* More breathing room */
    min-width: 120px !important;
    /* Consistent width */
    text-align: center !important;
    display: inline-block !important;
    /* Ensure width applies */

    /* Ensure pill shape & premium look if not already */
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.95);
    color: var(--emerald-deep);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 2. Fix Product Badges (Make them pop) */
.product-tag,
.badge,
.premium-tag {
    /* Existing class mapping */
    font-size: 0.75rem !important;
    /* readable size */
    font-weight: 700 !important;
    padding: 4px 10px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    /* Or pill depending on preference, sticking to small rect for badges usually */
}

/* 3. Image Fill Consistency (Force consistent zoom) */
.category-card img,
.category-tile img,
.lifestyle-tile img,
.tile-img {
    padding: 10px !important;
    /* Reduces the white void slightly */
    object-fit: contain !important;
    /* Keeps the whole object visible */
    transform-origin: center center !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Optional: Slight zoom on small images */
.category-card:hover img,
.category-tile:hover img,
.lifestyle-tile:hover img {
    transform: scale(1.1) !important;
    /* Gentle zoom effect */
}

/* ====================================================================
   SHOP BY LIFESTYLE — Editorial tiles (2026-04 upgrade)
   4 tiles, 3:4 portrait, ivory background, serif caption below the image,
   thin gold hairline flourish on hover. No pills, no glass bars, no glow.
   ==================================================================== */

#category-rail,
.category-collage .collage-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: clamp(20px, 2.5vw, 36px) !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

@media (max-width: 900px) {
    #category-rail,
    .category-collage .collage-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* The tile itself — link wrapper. No frame, no shadow. Image + caption stack. */
#category-rail .tile,
.collage-grid .tile,
.category-collage .tile,
.category-card,
.category-tile,
.lifestyle-tile {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: relative !important;
    text-decoration: none !important;
    transition: none !important;
}

/* Inner container used by the old markup — collapse to just fill parent */
#category-rail .tile .tile-inner,
.collage-grid .tile .tile-inner {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    inset: auto !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

/* Image box — 3:4 portrait, warm paper bg so transparent-PNG products sit cleanly.
   Gold hairline frames the bottom subtly and scales on hover. */
#category-rail .tile .tile-figure,
.lifestyle-tile .tile-figure,
.tile-figure {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--color-canvas-alt, #F4EEE3);
    overflow: hidden;
    border-radius: 0;
    margin: 0;
}
#category-rail .tile .tile-figure::after,
.lifestyle-tile .tile-figure::after,
.tile-figure::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 60%;
    height: 1px;
    background: var(--color-accent, #C9A961);
    transition: transform var(--duration-slow, 480ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1));
    z-index: 2;
}
#category-rail .tile:hover .tile-figure::after,
.lifestyle-tile:hover .tile-figure::after,
.tile:hover .tile-figure::after {
    transform: translateX(-50%) scaleX(1);
}

/* Image fills the figure cleanly — object-fit cover for photography, contain
   for transparent PNGs. Default is contain for editorial catalog feel. */
#category-rail .tile .tile-img,
.collage-grid .tile .tile-img,
.collage-grid .tile img,
.lifestyle-tile .tile-img,
.tile-figure .tile-img,
.category-card img,
.category-tile img,
.lifestyle-tile img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    inset: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    transition: transform var(--duration-dramatic, 800ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1)) !important;
    transform: none !important;
    filter: none !important;
}
#category-rail .tile:hover .tile-img,
.collage-grid .tile:hover .tile-img,
.category-card:hover img,
.category-tile:hover img,
.lifestyle-tile:hover img {
    transform: scale(1.04) !important;
}

/* Caption — serif italic label centered under the figure. No pill, no emerald. */
#category-rail .tile .tile-caption,
.lifestyle-tile .tile-caption,
.tile-caption {
    position: static;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: none;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Editorial label — serif italic, title case, ink on ivory */
#category-rail .tile .tile-label,
.collage-grid .tile .tile-label,
.lifestyle-tile .tile-label,
.tile-caption .tile-label {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    min-width: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: none !important;
    color: var(--color-ink, #1A1A1A) !important;
    font-family: var(--font-display, 'Fraunces', 'Playfair Display', serif) !important;
    font-style: italic !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 1.0625rem !important;
    padding: 0 !important;
    text-align: center !important;
    border-radius: 0 !important;
    z-index: auto !important;
    display: inline-block !important;
    transform: none !important;
    transition: color var(--duration-base, 240ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1)) !important;
}
#category-rail .tile:hover .tile-label,
.lifestyle-tile:hover .tile-label,
.tile:hover .tile-label {
    background: transparent !important;
    color: var(--color-brand, #0B6E6E) !important;
    border-top-color: transparent !important;
}

/* Decorative gold dash below the label — always visible, expands on hover */
.tile-caption .tile-rule {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--color-accent, #C9A961);
    transition: width var(--duration-slow, 480ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1));
}
.tile:hover .tile-caption .tile-rule,
.lifestyle-tile:hover .tile-caption .tile-rule {
    width: 48px;
}

/* ====================================================================
   ADAPTIVE HERO ENGINE - Responsive Banner System
   ==================================================================== */

/* Container: Compensate for transparent header */
#adaptive-hero-root {
    margin-top: 0;
    padding-top: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow: hidden;
    /* Ivory canvas — matches site, not mint */
    background: var(--color-canvas, #FBF8F3);
    box-shadow: none;
    overflow-anchor: none;
}

/* Editorial scrim — left-side vignette that anchors the text block without
   killing the image. Stronger left gradient so white text reads clearly. */
.adaptive-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(10, 9, 8, 0.72) 0%, rgba(10, 9, 8, 0.50) 45%, rgba(10, 9, 8, 0.38) 75%, rgba(10, 9, 8, 0.52) 100%),
        linear-gradient(180deg, rgba(10, 9, 8, 0.42) 0%, rgba(10, 9, 8, 0.08) 30%, rgba(10, 9, 8, 0.35) 100%);
}

/* Editorial overlay — serif headline + champagne hairline + single CTA.
   Sits above the scrim, doesn't eat pointer events except on the CTA. */
.adaptive-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(2rem, 6vw, 5rem);
    pointer-events: none;
}

.adaptive-hero-copy {
    max-width: 560px;
    color: #ffffff !important;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: nmHeroCopyIn var(--duration-dramatic, 800ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

.adaptive-hero-eyebrow {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #C9A961 !important;
    margin: 0 0 1rem;
    display: block;
}
.adaptive-hero-eyebrow::before {
    display: none;
}

.adaptive-hero-headline {
    font-family: var(--font-display, 'Fraunces', 'Playfair Display', serif) !important;
    font-weight: 400 !important;
    font-style: italic;
    font-size: clamp(2.25rem, 5.2vw, 4.5rem);
    line-height: 1.05;
    font-optical-sizing: auto;
    letter-spacing: -0.01em;
    margin: 0;
    color: #ffffff !important;
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.35) !important;
}

.adaptive-hero-rule {
    display: none;
}

.adaptive-hero-sub {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.90) !important;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.40);
    margin: 1.75rem 0 2rem;
    max-width: 30rem;
}

.adaptive-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 14px 32px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--color-ink-inverse, #FBF8F3);
    color: var(--color-ink-inverse, #FBF8F3);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    position: relative;
    transition:
        background var(--duration-base, 240ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1)),
        color var(--duration-base, 240ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1)),
        border-color var(--duration-base, 240ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1));
}
.adaptive-hero-cta::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 48px;
    height: 1px;
    background: var(--color-accent, #C9A961);
    transition: transform var(--duration-slow, 480ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1));
    pointer-events: none;
}
.adaptive-hero-cta:hover {
    background: var(--color-accent, #C9A961);
    color: var(--color-ink, #1A1A1A);
    border-color: var(--color-accent, #C9A961);
}
.adaptive-hero-cta:hover::after {
    transform: translateX(-50%) scaleX(1);
}
.adaptive-hero-cta:focus-visible {
    outline: 2px solid var(--color-accent, #C9A961);
    outline-offset: 3px;
}

@keyframes nmHeroCopyIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes nmHeroRuleIn {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}

@media (max-width: 768px) {
    .adaptive-hero-overlay {
        padding: clamp(1.5rem, 6vw, 3rem);
        align-items: flex-end;
        justify-content: flex-start;
    }
    .adaptive-hero-copy {
        max-width: 100%;
    }
    .adaptive-hero-headline {
        font-size: clamp(1.75rem, 7.5vw, 2.75rem);
    }
    .adaptive-hero-sub {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    .adaptive-hero-cta {
        padding: 12px 24px;
        font-size: 0.75rem;
    }
}

/* Banner Wrapper */
.adaptive-hero-slide {
    width: 100%;
    height: 100%;
    /* Fill container */
    position: absolute;
    /* Stacked */
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    visibility: hidden;
}

.adaptive-hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: absolute;
    /* Stay absolute — no layout shift on mobile */
    z-index: 2;
}

/* Banner Image Container */
.adaptive-hero-image {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

.adaptive-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Ensure picture element fills container properly */
.adaptive-hero-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* MOBILE: Tall Portrait (4:5) */
@media (max-width: 768px) {
    #adaptive-hero-root {
        /* Fixed height prevents layout collapse during slide transitions */
        min-height: min(75vh, 600px);
    }

    .adaptive-hero-slide {
        aspect-ratio: 4 / 5;
        max-height: 75vh;
        /* Show hint of next section */
        width: 100%;
    }
}

/* DESKTOP: Wide Cinematic (21:9) */
@media (min-width: 769px) {
    #adaptive-hero-root {
        /* Fixed height prevents layout collapse during slide transitions */
        min-height: min(85vh, 800px);
    }

    .adaptive-hero-slide {
        aspect-ratio: 21 / 9;
        max-height: 85vh;
        /* Cinematic full screen feel but capped */
        width: 100%;
    }
}

/* CTA Overlay - REMOVED for Editorial Look */
/* .adaptive-hero-cta { display: none; } */

/* Progress Indicators (Minimal Bars) */
/* Slide progress — thin horizontal bars (editorial), not circles.
   Gold for active, translucent ivory for inactive. No backdrop pill. */
.adaptive-hero-dots {
    position: absolute;
    bottom: clamp(1.5rem, 3vw, 2.5rem);
    right: clamp(1.5rem, 4vw, 3rem);
    left: auto;
    transform: none;
    display: flex;
    gap: 10px;
    z-index: 20;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
}

.adaptive-hero-dot {
    width: 28px !important;
    height: 1px !important;
    min-width: 28px !important;
    min-height: 1px !important;
    max-width: 28px !important;
    max-height: 1px !important;
    border-radius: 0 !important;
    background: rgba(251, 248, 243, 0.45) !important;
    cursor: pointer;
    transition:
        background var(--duration-base, 240ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1)),
        width var(--duration-base, 240ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1)) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.adaptive-hero-dot:hover {
    background: rgba(251, 248, 243, 0.85) !important;
    transform: none !important;
}

.adaptive-hero-dot.active {
    background: var(--color-accent, #C9A961) !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 1px !important;
    transform: none !important;
    opacity: 1;
}
.adaptive-hero-dot:focus-visible {
    outline: 2px solid var(--color-accent, #C9A961) !important;
    outline-offset: 3px !important;
}

/* =========================================
   FOOTER OVERHAUL (10/10 POLISH)
   ========================================= */

/* 1. THE ANCHOR CONTAINER */
.site-footer,
footer {
    background-color: #F0FAFA !important;
    /* Sage Mist Anchor */
    border-top: 1px solid rgba(11, 110, 110, 0.05) !important;
    padding-top: 60px !important;
    padding-bottom: 0 !important;
    margin-top: auto;
    margin-bottom: 0 !important;
}

/* 2. LAYOUT CONSTRAINT (Fixes Empty Space) */
.footer-content-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px !important;
    padding: 0 20px 60px 20px !important;
}

/* 3. PREMIUM TYPOGRAPHY */
.footer-column h4 {
    font-family: 'Playfair Display', serif !important;
    color: #0B6E6E !important;
    font-size: 1.2rem !important;
    margin-bottom: 24px !important;
    font-weight: 700 !important;
}

.footer-column p,
.footer-column li,
.footer-column a {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    /* Readable 15px */
    color: #4B5563 !important;
    /* Soft Dark Grey */
    line-height: 1.8 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    margin-bottom: 8px;
}

.footer-column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-column a:hover {
    color: #0B6E6E !important;
    transform: translateX(4px);
    display: inline-block;
}

/* 4. THE NEWSLETTER CARD (Active Lead Magnet) */
.newsletter-card {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(11, 110, 110, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

/* 5. THE BOTTOM BAR (Ultra-Premium Green Section) */
.copyright-bar {
    /* Rich gradient with subtle noise texture */
    background: 
        /* Subtle noise texture overlay */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E"),
        /* Rich emerald gradient */
        linear-gradient(135deg, 
            #022c22 0%,      /* Darkest emerald */
            #0B6E6E 50%,     /* Deep teal */
            #085A5A 100%     /* Slightly deeper */
        ) !important;
    background-blend-mode: overlay, normal !important;
    padding: 24px 0 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.875rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: relative !important;
    /* Layered shadows for depth */
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 -4px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Premium gold accent divider line */
.copyright-bar::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 200px !important;
    height: 1px !important;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(212, 175, 55, 0.3),
        rgba(212, 175, 55, 0.5),
        rgba(212, 175, 55, 0.3),
        transparent
    ) !important;
}

.copyright-flex {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 20px !important;
    position: relative !important;
}

/* Premium Copyright Text */
.copyright-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.3px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Payment Icons (Official "Credit Card" Style) */
.payment-icons {
    display: flex !important;
    gap: 8px !important;
    /* Tight spacing between cards */
    align-items: center !important;
}

/* The "Credit Card" Container - Ultra Premium */
.pay-card {
    background: rgba(255, 255, 255, 0.98) !important;
    /* Pure White with slight transparency */
    padding: 4px 8px !important;
    /* Space around the logo */
    border-radius: 6px !important;
    /* Softer rounded corners */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px !important;
    /* Taller for premium feel */
    width: 52px !important;
    /* Wider for better proportions */
    /* Premium layered shadows */
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.pay-card:hover {
    transform: translateY(-3px) scale(1.05) !important;
    /* Premium lift + scale effect */
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* The Logo Image Itself */
.pay-card img {
    height: 100% !important;
    width: 100% !important;
    object-fit: contain !important;
    /* Ensures logo fits without stretching */
    display: block;
}

/* Social Icons (Ultra Premium) */
.social-icons {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Premium Social Card with Glass Effect */
.social-card {
    background: rgba(255, 255, 255, 0.95) !important;
    height: 36px !important;
    /* Taller for premium feel */
    width: 36px !important;
    /* Square shape */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    /* Softer rounded corners */
    margin-left: 0 !important;
    /* Gap handles spacing now */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    /* Premium layered shadows */
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Premium Hover Effect with Brand Colors */
.social-card:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

/* Instagram: Gradient background on hover */
.social-card.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4) !important;
}

.social-card.instagram:hover svg path {
    fill: white !important;
}

.instagram svg {
    display: block;
}

/* Facebook: Blue background on hover */
.social-card.facebook:hover {
    background: #1877F2 !important;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4) !important;
}

.social-card.facebook:hover svg path {
    fill: white !important;
}

.facebook svg {
    display: block;
}

/* YouTube: Red background on hover */
.social-card.youtube:hover {
    background: #FF0000 !important;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4) !important;
}

.social-card.youtube:hover i {
    color: white !important;
}

.youtube i {
    color: #FF0000 !important;
    /* Official YouTube Red */
    font-size: 1rem !important;
}

/* Responsive Stack for Mobile */
@media (max-width: 900px) {
    .footer-content-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}

@media (max-width: 640px) {
    .footer-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        padding-bottom: 40px !important;
    }

    /* Ultra-Premium Mobile Footer Layout */
    .copyright-bar {
        padding: 24px 16px !important;
    }

    /* Mobile grid layout for premium feel */
    .copyright-flex {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        padding: 0 4px !important;
    }

    /* Payment cards - top left */
    .payment-icons {
        order: 1 !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
    }

    /* Social icons - top right */
    .social-icons {
        order: 2 !important;
        justify-content: flex-end !important;
        gap: 10px !important;
        margin-left: 0 !important;
    }

    /* Copyright text - full width bottom with elegant divider */
    .copyright-text {
        order: 3 !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        text-align: center !important;
        flex-basis: 100% !important;
        margin-top: 8px !important;
        padding-top: 16px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        font-size: 0.8rem !important;
    }

    /* Slightly smaller but still premium icons on mobile */
    .pay-card {
        height: 28px !important;
        width: 44px !important;
    }

    .social-card {
        height: 32px !important;
        width: 32px !important;
    }
}

/* =========================================
   LUXURY FOOTER STYLES (CHARCOAL & GOLD)
   ========================================= */
.footer-container {
    background-color: #111827 !important;
    /* Deep Luxury Charcoal */
    padding: 60px 0 0 0 !important;
    color: #FFFFFF !important;
}

.footer-column-heading {
    color: #D4AF37 !important;
    /* Warm Gold for column titles */
    font-family: 'Playfair Display', serif !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 20px !important;
}

.footer-link {
    color: #9CA3AF !important;
    /* Elegant Gray */
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
}

.footer-link:hover {
    color: #0F766E !important;
    /* Emerald Accent on hover */
    padding-left: 5px !important;
}

/* =========================================
   HERO TYPOGRAPHY REFINEMENT
   ========================================= */
.hero-title,
.hero-subtitle,
.eyebrow,
.adaptive-hero-title {
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

/* ====================================================================
   EDITORIAL PRODUCT CARD REDESIGN — "From the Collection"
   Three principles: solid white ground, ink typography, no green labels.
   All rules use !important to win over the layered legacy styles above.
   ==================================================================== */

/* 1. Card shell — solid white, thin hairline, subtle lift on hover.
      Replaces the glassmorphism (rgba 20% + backdrop-filter) that reads
      as a 2021 iOS widget, not a luxury gifting brand. */
.product-card-inner {
    background: #FFFFFF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(26, 24, 20, 0.09) !important;
    box-shadow:
        0 1px 2px rgba(26, 24, 20, 0.04),
        0 4px 16px rgba(26, 24, 20, 0.06) !important;
    transition:
        box-shadow 360ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 360ms cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 6px !important;
}

.trending-scroll-row .product-card {
    border-radius: 6px !important;
    clip-path: inset(0 round 6px) !important;
    -webkit-clip-path: inset(0 round 6px) !important;
    transition:
        box-shadow 360ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 360ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.trending-scroll-row .product-card:hover {
    transform: translateY(-6px) !important;
    box-shadow:
        0 2px 4px rgba(26, 24, 20, 0.04),
        0 12px 40px rgba(26, 24, 20, 0.12) !important;
}

/* Gold hairline that slides in under the card on hover */
.trending-scroll-row .product-card {
    position: relative;
}
.trending-scroll-row .product-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 48px;
    height: 1px;
    background: #C9A961;
    transition: transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2;
}
.trending-scroll-row .product-card:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* 2. Product info area — pure white, generous breathing room */
.trending-scroll-row .product-card .product-info,
.product-card-inner .product-info {
    background: #FFFFFF !important;
    padding: 18px 20px 22px !important;
    gap: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
}

/* 3. Category label — tiny, tracked, warm stone grey.
      No green, no gold pill. This label identifies; the title sells. */
.trending-scroll-row .product-tag,
.product-card-inner .product-tag,
#trending-row .product-tag {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.625rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.20em !important;
    text-transform: uppercase !important;
    color: #A09A93 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 0 6px !important;
    line-height: 1 !important;
}

/* 4. Product title — editorial serif, dark ink, no link colour bleed */
.trending-scroll-row .product-title,
.product-card-inner .product-title,
#trending-row .product-title {
    font-family: 'Fraunces', 'Playfair Display', serif !important;
    font-size: 0.9375rem !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: #1A1817 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
}

.trending-scroll-row .product-title a,
.product-card-inner .product-title a,
#trending-row .product-title a {
    color: #1A1817 !important;
    text-decoration: none !important;
    transition: color 240ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.trending-scroll-row .product-title a:hover,
.product-card-inner .product-title a:hover,
#trending-row .product-title a:hover {
    color: #0B6E6E !important;
}

/* 5. Price — clean, prominent, dark ink */
.trending-scroll-row .product-price,
.product-card-inner .product-price,
#trending-row .product-price {
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1A1817 !important;
    letter-spacing: -0.02em !important;
    margin: 4px 0 0 !important;
}

/* 6. Gallery — warm paper background so product PNGs read editorial */
.product-card-inner .product-gallery,
.trending-scroll-row .product-card .product-gallery {
    background: #F7F3EE !important;
    border-radius: 6px 6px 0 0 !important;
    overflow: hidden !important;
}

/* ====================================================================
   EDITORIAL CATEGORY TILE UPGRADE
   Contain + warm paper padding so the tile reads curated catalog.
   ==================================================================== */

#category-rail .tile .tile-figure,
.lifestyle-tile .tile-figure,
.tile-figure {
    background: #F4EEE3 !important;
}

#category-rail .tile .tile-img,
.lifestyle-tile .tile-img,
.tile-figure .tile-img {
    object-fit: contain !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#category-rail .tile:hover .tile-img,
.lifestyle-tile:hover .tile-img {
    transform: scale(1.06) !important;
}
