/* ==========================================
   BREDA Luxury Store - Premium Stylesheet
   ========================================== */

/* --- CSS Variables & Design System --- */
:root {
    /* DEFAULT GOLD ACCENT */
    --theme-accent: #d4af37;
    --theme-accent-hover: #e5c158;
    --theme-accent-dark: #aa8513;
    --theme-accent-glow: rgba(212, 175, 55, 0.15);
    --theme-accent-glow-strong: rgba(212, 175, 55, 0.4);
    --border-color-theme: rgba(212, 175, 55, 0.25);
    
    /* DEFAULT OBSIDIAN BACKGROUND */
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    
    --text-primary: #f5f5f7;
    --text-muted: #9e9e9f;
    --text-dark: #6e6e73;
    
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Dynamic Component Variables */
    --header-bg: rgba(10, 10, 10, 0.75);
    --header-bg-scrolled: rgba(10, 10, 10, 0.95);
    --mobile-nav-bg: rgba(10, 10, 10, 0.98);
    --hover-details-bg: linear-gradient(to top, rgba(10, 10, 10, 0.98) 0%, rgba(18, 18, 18, 0.92) 80%, rgba(18, 18, 18, 0.85) 100%);
    --wishlist-bg: rgba(10, 10, 10, 0.6);
    --badge-bg: rgba(10, 10, 10, 0.9);
    
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --container-width: 1280px;
    --header-height: 80px;
    --z-header: 100;
    --z-drawer: 200;
    --z-modal: 300;
    --z-toast: 400;
}

/* ============================================
   THEME SYSTEM - 4 Themes
   Gold = Dark Obsidian (default) with optional Light Ivory
   Pink / Purple / Blue = Always Cream backgrounds
   ============================================ */

/* ---- GOLD THEME (Dark Obsidian) ---- */
body.theme-gold {
    --theme-accent:        #d4af37;
    --theme-accent-hover:  #e5c158;
    --theme-accent-dark:   #aa8513;
    --theme-accent-glow:   rgba(212, 175, 55, 0.18);
    --theme-accent-glow-strong: rgba(212, 175, 55, 0.45);
    --border-color-theme:  rgba(212, 175, 55, 0.3);

    --bg-primary:    #0a0a0a;
    --bg-secondary:  #121212;
    --bg-tertiary:   #1c1c1c;
    --text-primary:  #f5f5f7;
    --text-muted:    #9e9e9f;
    --text-dark:     #6e6e73;
    --border-color:  rgba(255, 255, 255, 0.07);

    --header-bg:         rgba(10, 10, 10, 0.78);
    --header-bg-scrolled:rgba(10, 10, 10, 0.97);
    --mobile-nav-bg:     rgba(10, 10, 10, 0.98);
    --hover-details-bg:  linear-gradient(to top, rgba(12,12,12,0.98) 0%, rgba(20,20,20,0.93) 80%, rgba(20,20,20,0.87) 100%);
    --wishlist-bg:       rgba(10, 10, 10, 0.6);
    --badge-bg:          rgba(10, 10, 10, 0.9);
}

/* ---- GOLD THEME Light Ivory Mode (toggle) ---- */
body.theme-gold.mode-light {
    --bg-primary:    #fdfbf7;
    --bg-secondary:  #f5f0e8;
    --bg-tertiary:   #ede5d5;
    --text-primary:  #1a1713;
    --text-muted:    #6a5f4e;
    --text-dark:     #9e9080;
    --border-color:  rgba(28, 22, 10, 0.08);

    --header-bg:         rgba(253, 251, 247, 0.85);
    --header-bg-scrolled:rgba(253, 251, 247, 0.97);
    --mobile-nav-bg:     rgba(253, 251, 247, 0.99);
    --hover-details-bg:  linear-gradient(to top, rgba(253,251,247,0.98) 0%, rgba(245,240,232,0.93) 80%, rgba(245,240,232,0.87) 100%);
    --wishlist-bg:       rgba(253, 251, 247, 0.75);
    --badge-bg:          #aa8513;
}

/* ---- PINK THEME (Rose Cream — always light) ---- */
body.theme-pink,
body.theme-pink.mode-light {
    --theme-accent:       #e8336d;
    --theme-accent-hover: #ff5588;
    --theme-accent-dark:  #b81f52;
    --theme-accent-glow:  rgba(232, 51, 109, 0.14);
    --theme-accent-glow-strong: rgba(232, 51, 109, 0.38);
    --border-color-theme: rgba(232, 51, 109, 0.22);

    --bg-primary:    #fff5f7;
    --bg-secondary:  #fce8ec;
    --bg-tertiary:   #f8d5dc;
    --text-primary:  #2d0a14;
    --text-muted:    #7a4050;
    --text-dark:     #b28a95;
    --border-color:  rgba(232, 51, 109, 0.1);

    --header-bg:         rgba(255, 245, 247, 0.88);
    --header-bg-scrolled:rgba(255, 245, 247, 0.97);
    --mobile-nav-bg:     rgba(255, 245, 247, 0.99);
    --hover-details-bg:  linear-gradient(to top, rgba(252,232,236,0.98) 0%, rgba(255,245,247,0.94) 80%, rgba(255,245,247,0.88) 100%);
    --wishlist-bg:       rgba(255, 245, 247, 0.78);
    --badge-bg:          #e8336d;
}

/* ---- PURPLE THEME (Lavender Cream — always light) ---- */
body.theme-purple,
body.theme-purple.mode-light {
    --theme-accent:       #7b35ff;
    --theme-accent-hover: #9b5eff;
    --theme-accent-dark:  #5a1acc;
    --theme-accent-glow:  rgba(123, 53, 255, 0.14);
    --theme-accent-glow-strong: rgba(123, 53, 255, 0.38);
    --border-color-theme: rgba(123, 53, 255, 0.22);

    --bg-primary:    #f9f6ff;
    --bg-secondary:  #efe8ff;
    --bg-tertiary:   #e2d4ff;
    --text-primary:  #180838;
    --text-muted:    #5c3d8f;
    --text-dark:     #9e80cc;
    --border-color:  rgba(123, 53, 255, 0.1);

    --header-bg:         rgba(249, 246, 255, 0.88);
    --header-bg-scrolled:rgba(249, 246, 255, 0.97);
    --mobile-nav-bg:     rgba(249, 246, 255, 0.99);
    --hover-details-bg:  linear-gradient(to top, rgba(239,232,255,0.98) 0%, rgba(249,246,255,0.94) 80%, rgba(249,246,255,0.88) 100%);
    --wishlist-bg:       rgba(249, 246, 255, 0.78);
    --badge-bg:          #7b35ff;
}

/* ---- BABY BLUE THEME (Ice Cream — always light) ---- */
body.theme-blue,
body.theme-blue.mode-light {
    --theme-accent:       #2d8fff;
    --theme-accent-hover: #5aaeff;
    --theme-accent-dark:  #1166cc;
    --theme-accent-glow:  rgba(45, 143, 255, 0.14);
    --theme-accent-glow-strong: rgba(45, 143, 255, 0.38);
    --border-color-theme: rgba(45, 143, 255, 0.22);

    --bg-primary:    #f3f8ff;
    --bg-secondary:  #e4efff;
    --bg-tertiary:   #cce0ff;
    --text-primary:  #061628;
    --text-muted:    #3a5c80;
    --text-dark:     #7aa0c2;
    --border-color:  rgba(45, 143, 255, 0.1);

    --header-bg:         rgba(243, 248, 255, 0.88);
    --header-bg-scrolled:rgba(243, 248, 255, 0.97);
    --mobile-nav-bg:     rgba(243, 248, 255, 0.99);
    --hover-details-bg:  linear-gradient(to top, rgba(228,239,255,0.98) 0%, rgba(243,248,255,0.94) 80%, rgba(243,248,255,0.88) 100%);
    --wishlist-bg:       rgba(243, 248, 255, 0.78);
    --badge-bg:          #2d8fff;
}

/* ============================================
   IMAGE FILTERS PER THEME
   Strategy for light themes (pink/purple/blue):
   - invert(1) turns black bg → white, white → black
   - then hue-rotate to shift product colors to theme accent
   - sepia helps warm up the inverted tones before hue-rotation
   - brightness + saturate to make colors pop
   Gold dark → no filter needed (images are designed for dark bg)
   Gold light → slight brightness boost
   ============================================ */

/* Smooth transition on all themed images */
.product-image,
.hero-slide,
.category-card img,
.modal-main-img-wrapper img,
.modal-thumb img,
.cart-item-img img {
    transition: filter 0.6s ease;
}

/* Gold Dark — no filter, images are designed for dark bg */
body.theme-gold .product-image,
body.theme-gold .hero-slide,
body.theme-gold .category-card img,
body.theme-gold .modal-main-img-wrapper img,
body.theme-gold .modal-thumb img,
body.theme-gold .cart-item-img img {
    filter: none;
}

/* Gold Light — very subtle warmth */
body.theme-gold.mode-light .product-image,
body.theme-gold.mode-light .hero-slide,
body.theme-gold.mode-light .category-card img,
body.theme-gold.mode-light .modal-main-img-wrapper img,
body.theme-gold.mode-light .modal-thumb img,
body.theme-gold.mode-light .cart-item-img img {
    filter: brightness(1.08) contrast(0.93) saturate(0.9) sepia(0.15);
}

/* Pink — invert dark bg to white, shift gold tones to rose pink */
body.theme-pink .product-image,
body.theme-pink .hero-slide,
body.theme-pink .category-card img,
body.theme-pink .modal-main-img-wrapper img,
body.theme-pink .modal-thumb img,
body.theme-pink .cart-item-img img {
    filter: invert(1) hue-rotate(135deg) saturate(1.6) brightness(1.1) contrast(0.88);
}

/* Purple — invert dark bg to white, shift gold tones to violet */
body.theme-purple .product-image,
body.theme-purple .hero-slide,
body.theme-purple .category-card img,
body.theme-purple .modal-main-img-wrapper img,
body.theme-purple .modal-thumb img,
body.theme-purple .cart-item-img img {
    filter: invert(1) hue-rotate(200deg) saturate(1.5) brightness(1.08) contrast(0.88);
}

/* Baby Blue — invert dark bg to white, shift gold tones to sky blue */
body.theme-blue .product-image,
body.theme-blue .hero-slide,
body.theme-blue .category-card img,
body.theme-blue .modal-main-img-wrapper img,
body.theme-blue .modal-thumb img,
body.theme-blue .cart-item-img img {
    filter: invert(1) hue-rotate(160deg) saturate(1.3) brightness(1.1) contrast(0.87);
}

/* --- Base & Reset Styles --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    touch-action: manipulation;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    background: none;
    border: none;
    color: inherit;
    outline: none;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

/* --- Ambient Glow Backgrounds --- */
@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8%, 10%) scale(1.15); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, -8%) scale(0.85); }
    100% { transform: translate(0, 0) scale(1); }
}

.glow-bg-1 {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--theme-accent-glow) 0%, rgba(10,10,10,0) 70%);
    z-index: -1;
    pointer-events: none;
    animation: floatGlow1 15s infinite ease-in-out;
}

.glow-bg-2 {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(10,10,10,0) 70%);
    z-index: -1;
    pointer-events: none;
    animation: floatGlow2 20s infinite ease-in-out;
}

/* --- Layout Components --- */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--header-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    z-index: var(--z-header);
    transition: var(--transition-smooth);
}

.header.scrolled {
    height: 70px;
    background-color: var(--header-bg-scrolled);
    border-bottom: 1px solid var(--border-color-theme);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-primary);
    position: relative;
    transition: var(--transition-smooth);
}

.logo::after {
    content: '.';
    color: var(--theme-accent);
}

.logo:hover {
    color: var(--theme-accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--theme-accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Expandable Search */
.search-box {
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 30px;
    padding: 4px 8px;
    transition: var(--transition-smooth);
}

.search-box:hover, .search-box:focus-within {
    border-color: var(--border-color-theme);
    background-color: rgba(255, 255, 255, 0.03);
}

.search-input {
    width: 0;
    transition: var(--transition-smooth);
    font-size: 0.85rem;
    opacity: 0;
}

.search-box:hover .search-input, .search-box:focus-within .search-input {
    width: 180px;
    padding-left: 8px;
    opacity: 1;
}

.search-btn, .wishlist-btn, .cart-btn, .mobile-menu-btn {
    font-size: 1.15rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.search-btn:hover, .wishlist-btn:hover, .cart-btn:hover, .mobile-menu-btn:hover {
    color: var(--theme-accent);
    background-color: rgba(255, 255, 255, 0.05);
}

.count-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--theme-accent);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--theme-accent-glow-strong);
    transition: var(--transition-smooth);
}

.count-badge.bump {
    transform: scale(1.3);
    background-color: #ffffff;
}

.mobile-menu-btn {
    display: none;
}

/* Mobile Nav Overlay Menu */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    background-color: var(--mobile-nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 99;
}

.mobile-nav.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding: 0.5rem 0;
}

.mobile-nav-link:hover {
    color: var(--theme-accent);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: var(--header-height) 2rem 2rem;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 10s ease-in-out;
    transform: scale(1.02);
    z-index: 1;
}

/* Overlay gradient on top of slide image */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Default: Dark obsidian gradient for Gold theme */
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.28) 0%,
        rgba(8,8,8,0.72) 60%,
        rgba(10,10,10,0.97) 100%
    );
    z-index: 0;
}

/* Pink theme: warm rose cream overlay */
body.theme-pink .hero-slide::after {
    background: linear-gradient(to bottom,
        rgba(255,230,235,0.20) 0%,
        rgba(255,210,220,0.72) 60%,
        rgba(255,245,247,0.97) 100%
    );
}

/* Purple theme: soft lavender overlay */
body.theme-purple .hero-slide::after {
    background: linear-gradient(to bottom,
        rgba(230,220,255,0.20) 0%,
        rgba(210,190,255,0.72) 60%,
        rgba(249,246,255,0.97) 100%
    );
}

/* Blue theme: ice blue overlay */
body.theme-blue .hero-slide::after {
    background: linear-gradient(to bottom,
        rgba(215,232,255,0.20) 0%,
        rgba(190,215,255,0.72) 60%,
        rgba(243,248,255,0.97) 100%
    );
}

/* Gold light mode: warm ivory overlay */
body.theme-gold.mode-light .hero-slide::after {
    background: linear-gradient(to bottom,
        rgba(253,248,235,0.20) 0%,
        rgba(245,235,210,0.72) 60%,
        rgba(253,251,247,0.97) 100%
    );
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.06);
    z-index: 2;
}


.hero-content {
    max-width: 650px;
    margin-left: 5%;
    z-index: 3;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--theme-accent);
    margin-bottom: 1.5rem;
    display: block;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.8rem;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title span {
    font-family: var(--font-heading);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--theme-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Light themes: dark text gradient instead of white */
body.theme-pink .hero-title span,
body.theme-purple .hero-title span,
body.theme-blue .hero-title span,
body.theme-gold.mode-light .hero-title span {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--theme-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Light theme hero title base color */
body.theme-pink .hero-title,
body.theme-purple .hero-title,
body.theme-blue .hero-title,
body.theme-gold.mode-light .hero-title {
    color: var(--text-primary);
}


.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Premium Buttons Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gold {
    background-color: var(--theme-accent);
    color: var(--bg-primary);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.25);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    background-color: var(--theme-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    border: 2px solid var(--border-color-theme);
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
}

/* Light themes: give outline button a visible tinted background */
body.theme-pink .btn-outline,
body.theme-purple .btn-outline,
body.theme-blue .btn-outline,
body.theme-gold.mode-light .btn-outline {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: var(--theme-accent);
    background-color: var(--theme-accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--theme-accent-glow-strong);
}


.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
    animation: pulseScroll 2s infinite ease-in-out;
}

@keyframes pulseScroll {
    0%, 100% { opacity: 0.6; transform: translate(-50%, 0); }
    50% { opacity: 1; transform: translate(-50%, 10px); }
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--theme-accent-dark);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--theme-accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}

/* Animations for Landing */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpAnimation 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUpAnimation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Section Typography & Headers --- */
section {
    padding: 8rem 0;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 5rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--theme-accent);
    margin-bottom: 0.8rem;
    display: block;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.2;
}

.section-divider {
    width: 60px;
    height: 2px;
    background-color: var(--theme-accent);
    margin: 1.5rem auto 0;
}

/* --- About / Story Section --- */
.story-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.story-paragraph {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.brand-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--theme-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 5px;
}

.visual-stack {
    position: relative;
    height: 480px;
    width: 100%;
}

.visual-card {
    position: absolute;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.main-img-card {
    top: 0;
    left: 0;
    width: 75%;
    height: 80%;
    z-index: 2;
}

.secondary-img-card {
    bottom: 0;
    right: 0;
    width: 55%;
    height: 60%;
    z-index: 3;
    border: 1px solid var(--border-color-theme);
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.visual-card:hover .story-img {
    transform: scale(1.05);
}

.visual-deco-box {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 2px solid var(--theme-accent-glow-strong);
    z-index: 1;
    pointer-events: none;
}

/* --- Categories Grid Section --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    position: relative;
    height: 500px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.category-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.4) 60%, rgba(10, 10, 10, 0.1) 100%);
    display: flex;
    align-items: flex-end;
    padding: 3rem 2rem;
    transition: var(--transition-smooth);
}

.category-content h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.category-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.category-link {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--theme-accent);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.category-card:hover .category-img {
    transform: scale(1.08);
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.6) 50%, rgba(10, 10, 10, 0.2) 100%);
}

.category-card:hover .category-content h3 {
    color: var(--theme-accent);
}

.category-card:hover .category-content p {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover .category-link {
    gap: 15px;
}

/* --- Products Catalogue Section --- */
.products-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.catalog-controls {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.filter-tabs {
    display: flex;
    gap: 0.8rem;
}

.filter-tab {
    padding: 0.6rem 1.4rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    transition: var(--transition-smooth);
}

.filter-tab:hover, .filter-tab.active {
    color: var(--bg-primary);
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
}

.sort-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sort-selector {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.sort-selector:hover, .sort-selector:focus {
    border-color: var(--theme-accent);
}

.sort-selector option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.product-card {
    background-color: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    border: 1.5px solid var(--border-color-theme);
    position: relative;
    height: 480px;
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--theme-accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px var(--theme-accent-glow);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--theme-accent);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 2px;
    z-index: 4;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.product-wishlist-action {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(5px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.product-wishlist-action:hover {
    color: #ff3e3e;
    background-color: rgba(10, 10, 10, 0.9);
    border-color: rgba(255, 62, 62, 0.4);
}

.product-wishlist-action.liked {
    color: #ff3e3e;
    background-color: rgba(255, 255, 255, 0.9);
}

.product-img-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-primary);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-hover-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--hover-details-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color-theme);
    padding: 1.6rem;
    transform: translateY(101%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
}

.product-card:hover .product-hover-details {
    transform: translateY(0);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-category {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--theme-accent);
}

.product-rating {
    display: flex;
    gap: 3px;
    color: var(--theme-accent);
    font-size: 0.75rem;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.1rem;
    color: var(--text-primary);
}

.product-desc-short {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 0.4rem;
}

.btn-card-action {
    flex: 1;
    padding: 0.65rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    height: 38px;
}

.no-products-message {
    padding: 6rem 2rem;
    text-align: center;
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-secondary);
}

.no-products-message i {
    font-size: 3rem;
    color: var(--theme-accent-dark);
    margin-bottom: 1.5rem;
}

.no-products-message p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* --- Promo / Feature Callout Section --- */
.promo-section {
    position: relative;
    padding: 10rem 2rem;
    overflow: hidden;
}

.promo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.promo-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.promo-title {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.promo-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-theme);
}

.testimonial-card .stars {
    color: var(--theme-accent);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 44px;
    height: 44px;
    background-color: var(--theme-accent-dark);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
}

.client-title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Newsletter Section --- */
.newsletter-section {
    padding: 6rem 0;
    position: relative;
}

.newsletter-wrapper {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #151515 100%);
    border: 1px solid var(--border-color-theme);
    border-radius: 8px;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

.newsletter-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, var(--theme-accent-glow) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.newsletter-text {
    max-width: 500px;
    z-index: 2;
}

.newsletter-text h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.newsletter-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    flex-grow: 1;
    max-width: 500px;
    z-index: 2;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 5px;
    transition: var(--transition-smooth);
}

.newsletter-form:focus-within {
    border-color: var(--theme-accent);
}

.newsletter-input {
    flex-grow: 1;
    padding: 0.8rem;
    font-size: 0.9rem;
}

.newsletter-form .btn {
    padding: 0.5rem 1.5rem;
    background: none;
    box-shadow: none;
}

.newsletter-form .btn:hover {
    transform: none;
    color: var(--theme-accent);
    background: none;
    box-shadow: none;
}

.newsletter-success {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--theme-accent);
    font-size: 1rem;
    font-weight: 500;
    z-index: 2;
}

.newsletter-success i {
    font-size: 1.25rem;
}

/* --- Footer --- */
.footer {
    background-color: #050505;
    border-top: 1px solid var(--border-color);
    padding: 6rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand-col .footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 4px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-brand-col .footer-logo::after {
    content: '.';
    color: var(--theme-accent);
}

.footer-brand-col .footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 38px;
    height: 38px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--bg-primary);
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
    transform: translateY(-3px);
}

.footer-links-col h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 1.8rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    padding-left: 0;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--theme-accent);
    padding-left: 8px;
}

.footer-links a::before {
    content: '—';
    position: absolute;
    left: -15px;
    opacity: 0;
    color: var(--theme-accent);
    transition: var(--transition-smooth);
}

.footer-links a:hover::before {
    left: -5px;
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.footer-badges {
    display: flex;
    gap: 1.2rem;
    font-size: 1.6rem;
    color: var(--text-dark);
}

.footer-badges i:hover {
    color: var(--text-muted);
}

/* --- Shopping Cart Drawer Sidebar --- */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: var(--z-drawer);
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 440px;
    height: 100%;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color-theme);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: calc(var(--z-drawer) + 1);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cart-close-btn {
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.cart-close-btn:hover {
    color: var(--theme-accent);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Custom Scrollbar for Cart Items & Modal */
.cart-items::-webkit-scrollbar, .modal-container::-webkit-scrollbar {
    width: 4px;
}
.cart-items::-webkit-scrollbar-thumb, .modal-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color-theme);
    border-radius: 4px;
}

/* Cart Item Styling */
.cart-item {
    display: flex;
    gap: 1.2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    animation: slideInCartItem 0.4s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInCartItem {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
}

.cart-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 3px;
}

.cart-item-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-item-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.qty-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background-color: var(--bg-tertiary);
    transition: var(--transition-fast);
}

.qty-btn:hover {
    background-color: var(--theme-accent);
    color: var(--bg-primary);
}

.qty-val {
    width: 32px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
}

.cart-item-price {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--theme-accent);
}

.cart-item-remove {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--text-dark);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.cart-item-remove:hover {
    color: #ff3e3e;
}

.cart-empty-message {
    text-align: center;
    padding: 6rem 0;
    color: var(--text-muted);
}

.cart-empty-message i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.cart-footer {
    padding: 2rem;
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color-theme);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-summary-row.total-row {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
    margin-bottom: 1.8rem;
}

.gold-text {
    color: var(--theme-accent);
}

.checkout-btn {
    width: 100%;
    padding: 1.1rem;
}

/* --- Modals (Quick View & Receipt) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color-theme);
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--theme-accent-glow);
    transform: scale(0.95) translateY(20px);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    z-index: 10;
    background-color: rgba(10, 10, 10, 0.4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--theme-accent);
    background-color: rgba(255,255,255,0.05);
}

/* Quick View Detail Body Grid */
.modal-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.modal-gallery-col {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-right: 1px solid var(--border-color);
}

.modal-main-img-wrapper {
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.modal-main-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
}

.modal-thumb {
    width: 70px;
    height: 70px;
    border-radius: 2px;
    overflow: hidden;
    border: 1.5px solid transparent;
    cursor: pointer;
    background-color: var(--bg-primary);
}

.modal-thumb.active {
    border-color: var(--theme-accent);
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-col {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-category {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--theme-accent);
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.modal-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.modal-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-spec-list {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-spec-item {
    font-size: 0.85rem;
    display: flex;
    gap: 8px;
}

.modal-spec-label {
    font-weight: 600;
    color: var(--text-primary);
}

.modal-spec-val {
    color: var(--text-muted);
}

.modal-actions-row {
    margin-top: auto;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.modal-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    height: 48px;
}

.modal-qty-btn {
    width: 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background-color: var(--bg-tertiary);
}

.modal-qty-val {
    width: 44px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
}

.modal-add-btn {
    flex-grow: 1;
    height: 48px;
}

/* Size/Options Selector styling */
.modal-options-row {
    margin-bottom: 1.8rem;
}

.modal-options-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.modal-option-buttons {
    display: flex;
    gap: 8px;
}

.option-btn {
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 2px;
    transition: var(--transition-fast);
}

.option-btn.active, .option-btn:hover {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
    background-color: rgba(212,175,55,0.05);
}

/* --- Checkout Success Modal --- */
.checkout-success-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color-theme);
    border-radius: 8px;
    padding: 4rem 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0,0,0,0.8), 0 0 40px var(--theme-accent-glow);
    animation: checkoutScaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes checkoutScaleUp {
    from { opacity: 0; transform: scale(0.9) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.success-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--theme-accent-glow);
    border: 2px solid var(--theme-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.2rem;
    color: var(--theme-accent);
    animation: successPulse 2s infinite ease-in-out;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px var(--theme-accent-glow-strong); }
}

.checkout-success-container h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.checkout-success-container p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.simulated-receipt {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 1.8rem;
    border-radius: 4px;
    text-align: left;
    margin-bottom: 2rem;
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.receipt-date {
    color: var(--text-dark);
}

.receipt-divider {
    border-top: 1px dashed var(--border-color);
    margin: 1rem 0;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.receipt-row.font-bold {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 5px;
    margin-bottom: 0;
}

.simulated-note {
    font-style: italic;
    color: var(--text-dark) !important;
    font-size: 0.8rem !important;
    margin-bottom: 2.5rem !important;
}

/* --- Floating Toasts --- */
.toast-container {
    position: fixed;
    top: 100px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: var(--z-toast);
    pointer-events: none;
}

.toast {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color-theme);
    border-left: 3px solid var(--theme-accent);
    border-radius: 4px;
    padding: 1rem 1.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.removing {
    animation: toastSlideOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(50px); }
}

.toast-icon {
    color: var(--theme-accent);
    font-size: 1.1rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .story-visual-container {
        height: auto;
        display: flex;
        justify-content: center;
    }
    .visual-stack {
        max-width: 500px;
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-carousel {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .header {
        height: 70px;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-content {
        margin-left: 0;
        text-align: center;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .category-card {
        height: 380px;
    }
    .category-overlay {
        padding: 2rem;
    }
    .products-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .catalog-controls {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
        white-space: nowrap;
    }
    .sort-selector-wrapper {
        width: 100%;
        justify-content: space-between;
    }
    .newsletter-wrapper {
        flex-direction: column;
        padding: 3rem 2rem;
        text-align: center;
        gap: 2rem;
    }
    .newsletter-form {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-brand-col .footer-desc {
        max-width: 100%;
    }
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    .modal-content-grid {
        grid-template-columns: 1fr;
    }
    .modal-gallery-col {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
    }
    .modal-main-img-wrapper {
        height: 300px;
    }
    .modal-info-col {
        padding: 2rem;
    }
    .testimonials-carousel {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* Product Grid Mobile Responsiveness override */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .product-card {
        height: 420px !important;
        position: relative !important;
        overflow: hidden !important;
        border: 1.5px solid var(--border-color-theme) !important;
    }
    
    .product-img-container {
        height: 100% !important;
        width: 100% !important;
    }
    
    .product-hover-details {
        padding: 1rem !important;
        gap: 0.4rem !important;
    }
    
    .product-card.active-hover .product-hover-details,
    .product-card:hover .product-hover-details {
        transform: translateY(0) !important;
    }
    
    .product-desc-short {
        display: none !important;
    }

    .product-title {
        font-size: 1.05rem !important;
    }

    .product-price {
        font-size: 1.1rem !important;
    }

    .product-actions-row {
        flex-direction: column !important;
        gap: 6px !important;
        margin-top: 0.2rem !important;
    }

    .btn-card-action {
        width: 100% !important;
        flex: none !important;
        font-size: 0.72rem !important;
        height: 34px !important;
        padding: 0.4rem !important;
    }

    .brand-stats {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
        text-align: center !important;
    }

    .visual-stack {
        height: 320px !important;
    }

    .mobile-theme-selection {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-theme-selection span {
        font-family: var(--font-heading);
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--text-muted);
    }
    
    .theme-dots-mobile {
        display: flex;
        gap: 12px;
    }
    
    .theme-dots-mobile .theme-dot {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .theme-dots-mobile .theme-dot.active {
        transform: scale(1.15);
        border: 2.5px solid #ffffff;
    }
    
    body.mode-light .theme-dots-mobile .theme-dot.active {
        border: 2.5px solid #000000;
    }
}

/* --- Theme Selector & Night Mode Panel --- */
.theme-control-panel {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border-right: 1px solid var(--border-color);
    padding-right: 1.5rem;
    margin-right: 0.5rem;
}

.theme-dots {
    display: flex;
    gap: 8px;
}

.theme-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.theme-dot:hover {
    transform: scale(1.25);
}

.theme-dot.active {
    transform: scale(1.25);
    border: 2px solid #ffffff;
    box-shadow: 0 0 8px var(--theme-accent);
}

body.mode-light .theme-dot.active {
    border: 2px solid #000000;
}

.dot-gold { background-color: #d4af37; }
.dot-pink { background-color: #ff6b8b; }
.dot-purple { background-color: #8a4fff; }
.dot-blue { background-color: #5fa9ff; }

.mode-toggle-btn {
    font-size: 1.1rem;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    cursor: pointer;
}

.mode-toggle-btn:hover {
    color: var(--theme-accent);
    background-color: rgba(255, 255, 255, 0.05);
}

body.mode-light .mode-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Hide desktop theme selection panel on mobile */
@media (max-width: 768px) {
    .theme-dots {
        display: none !important;
    }
    .theme-control-panel {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        gap: 0.5rem;
    }
}

/* Hide mode toggle on light-only themes */
body.theme-pink .mode-toggle-btn,
body.theme-purple .mode-toggle-btn,
body.theme-blue .mode-toggle-btn {
    display: none !important;
}
