@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Cinzel:wght@500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600;1,700&display=swap');

/* Dynamic Editorial Brand Logo */
.site-brand-logo {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-brand-logo:hover {
    color: var(--boutique-gold);
    transform: scale(1.02);
}

:root {
    --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --font-display: 'Cinzel', 'Playfair Display', serif;
    --font-sans: 'Instrument Sans', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Premium Ethnic Boutique Color Palette */
    --boutique-espresso: #2C1A14;        /* Rich dark espresso / deep chocolate */
    --boutique-espresso-dark: #1E120D;   /* Darkest espresso for deep headers/footers */
    --boutique-cream: #FAF7F2;           /* Warm soft ivory/cream page background */
    --boutique-cream-light: #FDFBF7;     /* Pure warm ivory */
    --boutique-beige: #F3ECE1;           /* Soft beige / sand for sections */
    --boutique-sand: #EFE7DA;            /* Subtle warm sand */
    --boutique-gold: #C5A880;            /* Muted champagne gold */
    --boutique-gold-dark: #A88659;       /* Deep warm gold for hover */
    --boutique-gold-light: #F4EDE2;      /* Ultra-soft gold background */
    --boutique-text: #1F1A17;            /* Deep warm charcoal for high-readability text */
    --boutique-text-muted: #6E6259;      /* Elegant warm muted text */
    --boutique-border: #E8DFD2;          /* Delicate warm border */
    --boutique-border-light: #F0E9DF;    /* Whispering light border */
    --boutique-border-dark: #3D261E;     /* Border for dark containers */
    
    /* System variables compatible with backend */
    --primary: #2C1A14;
    --secondary: #C5A880;
    --button: #2C1A14;
    --text-main: #1F1A17;
    --text-muted: #6E6259;
    --page-bg: #FAF7F2;
    --theme-soft: #F3ECE1;
    --theme-strong-soft: #EFE7DA;
    --theme-border: #E8DFD2;
    --theme-shadow: rgba(44, 26, 20, 0.06);
    --button-soft: #F3ECE1;
    --button-border: #2C1A14;
    --button-shadow: rgba(44, 26, 20, 0.15);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--boutique-cream);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--boutique-cream);
    color: var(--boutique-text);
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Helpers */
.font-serif-luxury {
    font-family: var(--font-serif);
}

.font-display-luxury {
    font-family: var(--font-display);
}

.font-editorial {
    font-family: var(--font-serif);
    font-weight: 700;
}

/* 1. TOP ANNOUNCEMENT BAR (Warm Sand Background with Espresso Text) */
.announcement-bar {
    background-color: var(--boutique-sand);
    color: var(--boutique-espresso);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    height: 34px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 50;
    padding: 0;
    width: 100%;
    border-bottom: 1px solid var(--boutique-border);
}

.announcement-marquee-track {
    display: flex;
    width: max-content;
    animation: continuousMarquee 26s linear infinite;
    will-change: transform;
}

.announcement-marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.announcement-marquee-content span {
    display: inline-block;
    padding: 0 20px;
    color: var(--boutique-espresso);
    font-weight: 800;
}

@keyframes continuousMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* 2. BOUTIQUE STICKY HEADER (Ivory Cream Background with Espresso & Gold Accents) */
.site-header {
    background-color: var(--boutique-cream-light);
    border-bottom: 1px solid var(--boutique-border);
    transition: all 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(44, 26, 20, 0.08);
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 16px;
    color: var(--boutique-espresso);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.2s ease;
}

.site-nav-link::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 16px;
    right: 16px;
    height: 1.5px;
    background-color: var(--boutique-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav-link:hover::after,
.site-nav-link.active::after {
    transform: scaleX(1);
}

.site-nav-link:hover {
    color: var(--boutique-gold-dark);
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--boutique-espresso);
    position: relative;
    transition: all 0.2s ease;
}

.header-icon-btn:hover {
    background-color: var(--boutique-beige);
    color: var(--boutique-gold-dark);
}

.header-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9999px;
    background-color: var(--boutique-espresso);
    color: var(--boutique-cream-light);
    font-size: 9.5px;
    font-weight: 900;
    line-height: 17px;
    text-align: center;
    border: 1px solid var(--boutique-cream-light);
}

/* 3. LUXURY BOUTIQUE BUTTONS */
.btn-luxury {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--boutique-espresso);
    color: var(--boutique-cream-light) !important;
    border: 1.5px solid var(--boutique-espresso);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-luxury:hover {
    background-color: #3E251D;
    border-color: var(--boutique-gold);
    color: var(--boutique-cream-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(44, 26, 20, 0.18);
}

.btn-luxury:active {
    transform: translateY(0);
}

.btn-luxury-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--boutique-espresso) !important;
    border: 1.5px solid var(--boutique-espresso);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-luxury-outline:hover {
    background-color: var(--boutique-espresso);
    color: var(--boutique-cream-light) !important;
}

.btn-luxury-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--boutique-gold);
    color: #FFFFFF !important;
    border: 1.5px solid var(--boutique-gold);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-luxury-gold:hover {
    background-color: var(--boutique-espresso);
    border-color: var(--boutique-espresso);
    color: var(--boutique-cream-light) !important;
}

/* 4. PRODUCT CARDS (Reference Indian Boutique Look) */
.luxury-product-card {
    background-color: #FFFFFF;
    border: 1px solid var(--boutique-border);
    border-radius: 6px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.luxury-product-card:hover {
    border-color: #C5A880;
    box-shadow: 0 6px 20px rgba(44, 26, 20, 0.08);
}

.media-box {
    background-color: #F8F6F2;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-box img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: top center !important;
    image-rendering: auto !important;
    filter: none !important;
    -webkit-filter: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.luxury-product-card:hover .media-box img {
    transform: none !important;
    -webkit-transform: none !important;
}

/* Vertical Size Stack on Image Left Edge (with clean vertical gap below NEW badge and clear clearance above rating badge) */
.card-size-stack {
    position: absolute;
    left: 6px;
    top: 24px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 2.5px;
    pointer-events: auto;
}

.card-size-stack.no-badge {
    top: 6px;
}

.card-size-btn {
    width: 19px;
    height: 19px;
    border-radius: 2.5px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(220, 215, 205, 0.9);
    color: #1F1A17;
    font-family: var(--font-sans);
    font-size: 8.5px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.15s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

@media (min-width: 390px) {
    .card-size-stack {
        left: 7px;
        top: 26px;
        gap: 3px;
    }
    .card-size-stack.no-badge {
        top: 7px;
    }
    .card-size-btn {
        width: 20.5px;
        height: 20.5px;
        font-size: 9px;
    }
}

@media (min-width: 640px) {
    .card-size-stack {
        left: 10px;
        top: 38px;
        gap: 4.5px;
    }
    .card-size-stack.no-badge {
        top: 10px;
    }
    .card-size-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
        border-radius: 3px;
    }
}

.card-size-btn:hover {
    background: #FFFFFF;
    border-color: #1F1A17;
}

.card-size-btn.is-selected {
    background: #1F1A17 !important;
    color: #FFFFFF !important;
    border-color: #1F1A17 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.wishlist-heart-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #FFFFFF !important;
    border: 1px solid rgba(232, 223, 210, 0.8);
    display: grid;
    place-items: center;
    color: var(--boutique-espresso);
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 20;
    cursor: pointer;
    padding: 0;
}

.wishlist-heart-btn:hover {
    background-color: #FFFFFF !important;
    border-color: var(--boutique-gold);
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(44, 26, 20, 0.12);
}

.wishlist-heart-btn i {
    transition: color 0.2s ease, transform 0.2s ease;
    display: block;
    line-height: 1;
    color: var(--boutique-espresso);
}

.wishlist-heart-btn:hover i {
    color: var(--boutique-gold-dark);
}

/* Active Wishlisted State */
.wishlist-heart-btn.is-active {
    background-color: #FFFFFF !important;
    border-color: var(--boutique-gold);
}

.wishlist-heart-btn.is-active i {
    color: var(--boutique-gold) !important;
    filter: drop-shadow(0 1px 2px rgba(197, 168, 128, 0.4));
    transform: scale(1.05);
}

.wishlist-heart-btn.is-active:hover i {
    color: var(--boutique-gold-dark) !important;
}

.product-tag-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--boutique-gold);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 3px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.star-rating-gold {
    color: #C5A880;
    display: inline-flex;
    gap: 2px;
}

/* Product Detail Gallery Card, Slider Track & Carousel Pagination Dots */
.product-detail-gallery-card {
    border-radius: 22px;
    background-color: #FFFFFF;
    border: 1px solid var(--boutique-border);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    touch-action: pan-y;
}

@media (min-width: 640px) {
    .product-detail-gallery-card {
        border-radius: 24px;
    }
}

#product-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-slider-slide {
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
    background-color: #FAF7F2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-slider-slide img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: top center !important;
    image-rendering: auto !important;
    filter: none !important;
    -webkit-filter: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.gallery-dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background-color: #D1D5DB;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-dot.active {
    background-color: #1F1A17;
    transform: scale(1.25);
}

/* Luxury Fashion Campaign Editorial Privilege Tiles */
.editorial-privilege-tile {
    background-color: #FFFFFF;
    border: 1px solid #E8DFD2;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 12px rgba(44, 26, 20, 0.03);
}

.editorial-privilege-tile:hover {
    border-color: #2C1A14;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(44, 26, 20, 0.08);
}

.editorial-watermark-num {
    font-family: var(--font-serif);
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 0.8;
    color: rgba(44, 26, 20, 0.04);
    position: absolute;
    right: -4px;
    bottom: -8px;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
}

@media (min-width: 640px) {
    .editorial-watermark-num {
        font-size: 6rem;
        right: -2px;
        bottom: -10px;
    }
}

/* Variant selection pills */
.variant-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--boutique-border);
    background-color: #FFFFFF;
    color: var(--boutique-espresso);
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.variant-pill:hover {
    border-color: var(--boutique-espresso);
    background-color: var(--boutique-cream);
}

.variant-pill.is-selected,
.variant-pill.active {
    background-color: var(--boutique-espresso) !important;
    color: var(--boutique-cream-light) !important;
    border-color: var(--boutique-espresso) !important;
    box-shadow: 0 2px 8px rgba(44, 26, 20, 0.18);
}

/* 5. SLIDE-OVER DRAWERS & MODALS */
.luxury-drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(31, 26, 23, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.luxury-drawer-overlay.is-active,
.luxury-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.luxury-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    background-color: var(--boutique-cream-light);
    box-shadow: -10px 0 40px rgba(44, 26, 20, 0.2);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-drawer.is-active,
.luxury-drawer.active {
    transform: translate3d(0, 0, 0);
}

.luxury-drawer-left {
    right: auto;
    left: 0;
    width: 85%;
    max-width: 340px;
    background-color: var(--boutique-cream-light);
    box-shadow: 20px 0 60px rgba(44, 26, 20, 0.25);
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: 1px solid var(--boutique-border);
}

.luxury-drawer-left.is-active,
.luxury-drawer-left.active {
    transform: translate3d(0, 0, 0);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--boutique-espresso);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background-color: var(--boutique-beige);
    color: var(--boutique-espresso);
    padding-left: 18px;
}

.mobile-nav-link.active {
    background-color: var(--boutique-beige);
    color: var(--boutique-espresso);
    font-weight: 900;
    border-left: 3px solid var(--boutique-gold);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #D8CFC2;
    border-radius: 4px;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}