/* =========================================
   0. PRELOADER (Cinematic Entrance)
   ========================================= */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #F9F8F6; /* The brand beige */
    z-index: 99999; /* Above absolutely everything */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* When hidden, it fades out and lets clicks pass through */
body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    animation: fadeUp 0.5s ease forwards;
}

.loader-logo {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #121212;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-style: italic;
}

.loader-line {
    width: 0;
    height: 2px;
    background-color: #D4AF37; /* Gold */
    margin: 0 auto;
    animation: expandLine 0.5s ease-in-out forwards;
}

/* Keyframes for the loader */
@keyframes expandLine {
    0% { width: 0; }
    100% { width: 100px; }
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   1. DESIGN SYSTEM & VARIABLES
   ========================================= */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* PALETTE */
    --gold: #D4AF37;
    --gold-hover: #B4942D;
    --charcoal: #121212;
    --off-white: #F9F9F9;
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.90);
}

/* GLOBAL RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--charcoal);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   2. NAVBAR & NAVIGATION
   ========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

/* Scrolled State (Glassmorphism) */
nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--charcoal);
    text-decoration: none;
    position: relative;
}
.logo::after {
    content: '.';
    color: var(--gold);
    font-size: 2.5rem;
    line-height: 0;
    position: absolute;
    right: -12px;
    bottom: 8px;
}

/* CENTER LINKS */
.nav-links { display: flex; gap: 3rem; }
.nav-links a {
    text-decoration: none;
    color: var(--charcoal);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 1px;
    bottom: -5px; left: 0;
    background-color: var(--gold);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* RIGHT SIDE ACTIONS (Icons) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--charcoal);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.icon-btn:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

/* Navbar Wishlist Indicator (Pink Dot) */
.icon-btn.has-items::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 8px; height: 8px;
    background-color: #E8A0A0;
    border-radius: 50%;
    border: 1px solid white;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px; right: -8px;
    background-color: var(--charcoal);
    color: var(--gold);
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid white;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}
.dropdown-content {
    display: none;
    position: absolute;
    right: 0; top: 100%;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    padding: 10px 0;
    border-radius: 2px;
    z-index: 1100;
    animation: fadeIn 0.3s ease;
}
.profile-dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
    color: var(--charcoal);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    text-align: left;
}
.dropdown-content a:hover {
    background-color: var(--off-white);
    color: var(--gold);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    color: white;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.2) 40%, 
        rgba(0,0,0,0.6) 100%
    );
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.hero-content h1 span { font-style: italic; font-family: var(--font-heading); }
.hero-content p {
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0.9;
}
.btn-glass {
    padding: 1rem 3rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-glass:hover {
    background: white;
    color: var(--charcoal);
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

/* =========================================
   4. SHOP & FILTERS
   ========================================= */
.section-title {
    text-align: center;
    margin: 6rem 0 2rem;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--charcoal);
}
.filter-container {
    display: flex; justify-content: center; gap: 2rem;
    margin-bottom: 4rem; flex-wrap: wrap; padding: 0 1rem;
}
.filter-btn {
    background: transparent; border: none;
    font-family: var(--font-body); font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 2px;
    color: #999; cursor: pointer;
    padding-bottom: 8px; border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.filter-btn:hover { color: var(--gold); }
.filter-btn.active {
    color: var(--charcoal);
    border-bottom-color: var(--gold);
    font-weight: 600;
}

/* =========================================
   5. PRODUCTS GRID
   ========================================= */

/* =========================================
   SEARCH & SORT CONTROLS (LUXURY REDESIGN)
   ========================================= */
.controls-bar {
    display: flex;
    justify-content: center; /* Centered for better balance */
    align-items: center;
    max-width: 900px; /* Contained width */
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
    gap: 1.5rem;
}

/* --- 1. THE SEARCH BAR --- */
.search-wrapper {
    flex: 2; /* Takes up more space */
    display: flex;
    align-items: center;
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px; /* Full rounded pill */
    box-shadow: 0 4px 20px rgba(0,0,0,0.04); /* Soft Float */
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.search-wrapper:hover {
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.search-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1); /* Gold Glow */
    transform: translateY(0);
}

.search-wrapper svg {
    color: #ccc;
    transition: color 0.3s;
}

.search-wrapper:focus-within svg {
    color: var(--gold);
}

.search-wrapper input {
    border: none;
    outline: none;
    width: 100%;
    margin-left: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: transparent;
}

.search-wrapper input::placeholder {
    color: #bbb;
    font-weight: 300;
}

/* --- 2. THE SORT DROPDOWN --- */
.sort-wrapper {
    flex: 1;
    position: relative;
}

/* Custom SVG Arrow for Dropdown */
.sort-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 10px; 
    height: 10px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none; /* Click passes through to select */
    transition: transform 0.3s;
}

.sort-wrapper:hover::after {
    transform: translateY(-50%) scale(1.2);
}

.sort-wrapper select {
    width: 100%;
    padding: 0.9rem 1.5rem;
    appearance: none; /* Remove default ugly arrow */
    -webkit-appearance: none;
    background: white;
    border-radius: 50px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--charcoal);
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    outline: none;
    transition: all 0.3s ease;
}

.sort-wrapper select:hover {
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.sort-wrapper select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* RESPONSIVE STACKING */
@media (max-width: 768px) {
    .controls-bar {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    .search-wrapper, .sort-wrapper {
        width: 100%;
    }
    /* On mobile, inputs should look slightly larger for touch */
    .search-wrapper, .sort-wrapper select {
        padding: 1rem 1.5rem;
    }
}
   
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    padding-bottom: 6rem;
    max-width: 1200px; margin: 0 auto;
    padding-left: 20px; padding-right: 20px;
}
.product-card {
    background: white;
    border: 1px solid #f0f0f0;
    transition: transform 0.4s ease;
    animation: fadeIn 0.6s ease-in-out; 
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }

.product-img-container {
    height: 400px;
    background: #F4F1EA;
    overflow: hidden;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.product-card:hover .product-img { transform: scale(1.08); }

.product-info { padding: 2rem; text-align: center; }
.product-cat { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: #999; margin-bottom: 0.5rem; display: block;}
.product-title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 0.5rem; }
.product-price { color: var(--gold); font-weight: 600; font-size: 1rem; }

.add-btn {
    width: 100%; padding: 1.2rem;
    background: var(--charcoal); color: white;
    border: none; text-transform: uppercase;
    font-size: 0.75rem; letter-spacing: 2px;
    cursor: pointer; transition: background 0.3s;
}
.add-btn:hover { background: var(--gold); }

/* WISHLIST BUTTON (On Card) */
.wishlist-btn {
    position: absolute; top: 15px; right: 15px;
    background: white; border: none;
    width: 35px; height: 35px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0; /* Hidden until hover */
    transform: translateY(-10px);
}
.product-img-container:hover .wishlist-btn {
    opacity: 1; transform: translateY(0);
}
.wishlist-btn svg {
    width: 18px; height: 18px;
    stroke: var(--charcoal); fill: transparent;
    transition: all 0.3s;
}
.wishlist-btn:hover { transform: scale(1.1) !important; }
.wishlist-btn.liked svg {
    fill: #E8A0A0; stroke: #E8A0A0;
}

/* =========================================
   6. SIDEBARS (CART & WISHLIST) - FIXED
   ========================================= */

/* Base Sidebar Styles */
.cart-sidebar {
    position: fixed; top: 0; right: 0;
    width: 450px; height: 100vh;
    background: white;
    z-index: 2000;
    transform: translateX(100%); /* Hidden by default */
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    display: flex; flex-direction: column;
}
.cart-header { padding: 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f0f0f0; }
.cart-items { flex: 1; overflow-y: auto; padding: 2rem; }
.cart-footer { padding: 2rem; background: #fafafa; }
.checkout-btn { width: 100%; padding: 1.2rem; background: var(--gold); border: none; color: white; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: background 0.3s; }
.checkout-btn:hover { background: var(--gold-hover); }

/* Base Overlay Styles */
.cart-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Specific Wishlist Z-Index fixes */
#wishlist-overlay { z-index: 2001; }
#wishlist-sidebar { z-index: 2002; }

/* --- THE FIX: SPECIFIC TARGETING --- */

/* Only open Cart Sidebar when body has 'cart-open' */
body.cart-open #cart-sidebar { transform: translateX(0); }
body.cart-open #cart-overlay { opacity: 1; pointer-events: all; }

/* Only open Wishlist Sidebar when body has 'wishlist-open' */
body.wishlist-open #wishlist-sidebar { transform: translateX(0); }
body.wishlist-open #wishlist-overlay { opacity: 1; pointer-events: all; }

/* Lock scroll on both */
body.cart-open, body.wishlist-open { overflow: hidden; }


/* =========================================
   7. FOOTER
   ========================================= */
.footer {
    background-color: var(--charcoal);
    color: white;
    padding: 5rem 0 2rem;
    margin-top: 4rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-brand p {
    font-size: 0.85rem; color: #aaa;
    margin: 1.5rem 0; line-height: 1.8;
}
.social-icons { display: flex; gap: 1rem; }
.social-icons a { color: white; transition: color 0.3s; }
.social-icons a:hover { color: var(--gold); }

.footer-links h4, .footer-newsletter h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 1.5rem; letter-spacing: 1px;
}
.footer-links { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a {
    text-decoration: none; color: #aaa;
    font-size: 0.85rem; transition: color 0.3s;
    width: fit-content;
}
.footer-links a:hover { color: white; transform: translateX(5px); }

.newsletter-form {
    display: flex; border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
}
.newsletter-form input {
    background: transparent; border: none; color: white;
    flex: 1; font-family: var(--font-body);
    font-size: 0.9rem; outline: none;
}
.newsletter-form button {
    background: transparent; border: none;
    color: var(--gold); text-transform: uppercase;
    font-size: 0.75rem; letter-spacing: 2px;
    cursor: pointer; transition: color 0.3s;
}
.newsletter-form button:hover { color: white; }
.footer-bottom {
    border-top: 1px solid #222; padding-top: 2rem;
    text-align: center; font-size: 0.75rem;
    color: #555; letter-spacing: 1px;
}

/* =========================================
   8. RESPONSIVE & ANIMATION
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .nav-links { display: none; }
    .cart-sidebar { width: 100%; }
    .filter-container { gap: 1rem; }
}

@media (max-width: 600px) {
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-links { align-items: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .newsletter-form { justify-content: center; }
}

/* --- MAGIC ANIMATIONS --- */

/* The 'Throw' Keyframes */
@keyframes slideThrow {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    30% {
        transform: translateX(-20px) scale(1.02); /* Little pull back before throw */
        opacity: 1;
    }
    100% {
        transform: translateX(120%) rotate(20deg) scale(0.8); /* Throw to right */
        opacity: 0;
    }
}

/* Class to trigger animation */
.magic-vanish {
    animation: slideThrow 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
    pointer-events: none; /* Prevent clicking while flying */
}

/* --- CHECKOUT MODAL STYLES --- */
.checkout-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}

.checkout-overlay.active {
    opacity: 1; pointer-events: all;
}

.checkout-box {
    background: white;
    padding: 3rem;
    width: 90%; max-width: 450px;
    text-align: center;
    border-radius: 2px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.checkout-overlay.active .checkout-box {
    transform: translateY(0);
}

/* 1. LOADING SPINNER */
.spinner {
    width: 50px; height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#checkout-loading p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--charcoal);
    letter-spacing: 1px;
}

/* 2. SUCCESS STATE */
.success-icon {
    color: var(--gold);
    margin-bottom: 1rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#checkout-success h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

#checkout-success p {
    color: #666;
    margin-bottom: 0.5rem;
}

.sub-text { font-size: 0.8rem; color: #999; margin-bottom: 2rem; }

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- MODAL BUTTON FIX --- */
.btn-modal {
    background-color: var(--gold);
    color: white;
    padding: 1rem 3rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gold);
}

.btn-modal:hover {
    background-color: white;
    color: var(--gold);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}
/* =========================================
   9. RESPONSIVE DESIGN (MOBILE FIXES)
   ========================================= */

/* Default: Hide Mobile Elements on Desktop */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--charcoal); }
.mobile-nav-header { display: none; }
#mobile-menu-overlay { z-index: 2005; } /* Higher than sidebar */

/* --- TABLET & MOBILE (Max Width 900px) --- */
@media (max-width: 900px) {
    /* 1. Header Changes */
    .mobile-menu-btn { display: block; margin-right: 1rem; }
    
    /* Hide Profile on Mobile to save space */
    .profile-dropdown { display: none; }
    
    .logo { font-size: 1.5rem; }
    
    /* 2. THE FIX: Force Display Flex to override any "display: none" */
    .nav-links {
        display: flex !important; /* CRITICAL FIX */
        position: fixed;
        top: 0; left: 0;
        height: 100vh; 
        width: 80%; max-width: 300px;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        box-shadow: 5px 0 30px rgba(0,0,0,0.1);
        transform: translateX(-100%); /* Hidden to left */
        transition: transform 0.3s ease;
        z-index: 3000; /* Highest Z-Index */
        gap: 0;
        visibility: visible;
    }

    /* When Active (Class added by JS) */
    .nav-links.active {
        transform: translateX(0); /* Slide in */
    }

    /* Mobile Menu Header */
    .mobile-nav-header {
        display: flex !important; 
        justify-content: space-between; align-items: center;
        width: 100%; padding: 1.5rem 2rem;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 1rem;
    }
    .mobile-close-btn { background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--charcoal); }

    /* Links inside mobile menu */
    .nav-links a {
        width: 100%; padding: 1rem 2rem;
        font-size: 0.9rem;
        border-bottom: 1px solid #f9f9f9;
        text-align: left;
    }
    .nav-links a:hover { background: #fafafa; color: var(--gold); }
    .nav-links a::after { display: none; } /* Remove desktop underline */

    /* 3. Hero Text Scaling */
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1rem; padding: 0 1rem; }

    /* 4. Sidebars (Cart/Wishlist) go Full Width */
    .cart-sidebar { width: 100%; }

    /* 5. Checkout Modal */
    .checkout-box { width: 95%; padding: 2rem; }
}

/* --- SMALL MOBILE (Max Width 480px) --- */
@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.5rem; }
    .container { padding: 0 1rem; }
    .product-grid { grid-template-columns: 1fr; } /* 1 Column on small phones */
    
    /* Make buttons bigger for touch */
    .btn-glass, .add-btn, .checkout-btn { padding: 1rem; }
    
    /* Adjust Filter Tabs */
    .filter-container { gap: 1rem; }
    .filter-btn { font-size: 0.7rem; }
}

/* Helper to show overlay when menu is open */
body.mobile-menu-open #mobile-menu-overlay {
    opacity: 1; pointer-events: all;
}
/* =========================================
   10. ABOUT PAGE STYLES
   ========================================= */

.page-header {
    margin-top: 80px; /* offset fixed nav */
    background-color: #F4F1EA;
    padding: 6rem 2rem 4rem;
    text-align: center;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}
.page-header p {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--gold);
    font-size: 1.2rem;
}

/* Story Section */
.story-section { padding: 5rem 2rem; }
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.story-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.story-subtitle {
    font-family: var(--font-heading);
    color: var(--gold);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}
.story-content p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.8;
}
.quote-box {
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    margin-top: 2rem;
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--charcoal);
    background: #fafafa;
    padding: 1.5rem;
}
.story-image img { width: 100%; display: block; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.image-caption {
    font-size: 0.8rem; text-align: center;
    color: #999; margin-top: 1rem; font-style: italic;
}

/* Mission & Vision (Dark Section) */
.mission-section {
    background-color: var(--charcoal);
    color: white;
    padding: 5rem 2rem;
}
.mv-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.mv-card {
    background: rgba(255,255,255,0.05);
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s;
}
.mv-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.mv-card .icon { font-size: 2rem; margin-bottom: 1rem; }
.mv-card h3 {
    font-family: var(--font-heading);
    color: var(--gold); margin-bottom: 1rem;
}

/* Founder Section */
.founder-section { padding: 5rem 2rem; }
.founder-grid {
    display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: center;
}
.founder-img img { 
    width: 100%; 
    height: auto; 
    border-radius: 4px;
    box-shadow: 20px 20px 0px var(--off-white); /* Cool offset border effect */
}

.role {
    text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.8rem; color: #999;
}
.founder-text h2 {
    font-family: var(--font-heading); font-size: 2.5rem;
    margin: 0.5rem 0 0.5rem;
}
.collaborators {
    margin-top: 2rem; padding-top: 2rem;
    border-top: 1px solid #eee;
}
.collaborators h4 { margin-bottom: 1rem; font-family: var(--font-heading); }
.collaborators ul { list-style: none; color: #555; }
.collaborators li::before {
    content: '—'; color: var(--gold); margin-right: 10px;
}

/* Responsive About */
@media (max-width: 900px) {
    .story-grid, .mv-grid, .founder-grid { grid-template-columns: 1fr; gap: 3rem; }
    .founder-grid { display: flex; flex-direction: column-reverse; }
    .page-header h1 { font-size: 2rem; }
    .founder-img img { width: 80%; margin: 0 auto; display: block; }
}

/* =========================================
   11. TESTIMONIALS
   ========================================= */
.testimonials-section {
    padding: 6rem 2rem;
    background-color: #fff; /* Clean white background */
    border-top: 1px solid #f4f4f4;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--off-white);
    padding: 2.5rem;
    text-align: center;
    border-radius: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: #eee;
    background: white;
}

.stars {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.review-text {
    font-family: var(--font-heading);
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.reviewer {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reviewer .name {
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.3rem;
}

.reviewer .location {
    color: #999;
    font-size: 0.7rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .testimonials-section {
        padding: 4rem 1.5rem;
    }
}

/* =========================================
   12. CONTACT PAGE
   ========================================= */
.contact-section { padding: 4rem 0 6rem; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Left Side Info */
.contact-info { padding-right: 2rem; }
.info-item { margin-bottom: 2rem; }
.info-item h4 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.info-item p { color: var(--charcoal); font-size: 0.95rem; }

/* Right Side Form */
.contact-form-wrapper {
    background: white;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    border-radius: 2px;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: #999;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #eee;
    font-family: var(--font-body);
    background: #fafafa;
    transition: border 0.3s;
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--gold);
    background: white;
}

/* Responsive Contact */
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-info { padding-right: 0; text-align: center; }
    .contact-form-wrapper { padding: 1.5rem; }
}

/* =========================================
   13. TOAST NOTIFICATIONS (LUXURY ALERT)
   ========================================= */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 4000; /* Topmost layer */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: white;
    color: var(--charcoal);
    padding: 1rem 1.5rem;
    min-width: 280px;
    border-left: 4px solid var(--gold); /* Gold accent */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 2px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    /* Animation */
    transform: translateX(120%); /* Start hidden to the right */
    animation: slideInToast 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.toast.hide {
    animation: slideOutToast 0.4s ease forwards;
}

.toast-icon {
    margin-right: 10px;
    color: var(--gold);
    font-size: 1.2rem;
}

/* Keyframes */
@keyframes slideInToast {
    0% { transform: translateX(120%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutToast {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}

/* Mobile adjustment */
@media (max-width: 480px) {
    #toast-container { right: 1rem; bottom: 1rem; left: 1rem; }
    .toast { width: 100%; }
}
/* =========================================
   14. PRODUCT QUICK VIEW MODAL
   ========================================= */
.product-modal-box {
    background: white;
    width: 95%; 
    max-width: 900px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.4s ease;
    display: flex;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

/* Image Side */
.modal-img-wrapper {
    background: #F9F8F6; /* Very subtle beige */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    height: 100%;
    min-height: 500px;
}

.modal-img-wrapper img {
    max-height: 400px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1)); /* Floating effect */
    transition: transform 0.5s ease;
}

.modal-img-wrapper img:hover {
    transform: scale(1.05);
}

/* Text Side */
.modal-details {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #ccc;
    line-height: 1;
    z-index: 10;
    transition: color 0.3s;
}

.close-modal:hover { color: var(--charcoal); }

/* Responsive Modal */
@media (max-width: 768px) {
    .product-modal-box { 
        flex-direction: column; 
        max-height: 90vh; 
        overflow-y: auto; 
    }
    .modal-content-grid { grid-template-columns: 1fr; }
    .modal-img-wrapper { min-height: 300px; padding: 2rem; }
    .modal-details { padding: 2rem; }
}

/* =========================================
   15. SCENT FINDER QUIZ
   ========================================= */
.quiz-box {
    background: white;
    width: 90%; max-width: 500px;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.quiz-step {
    display: none; /* Hidden by default */
    animation: fadeIn 0.5s ease;
}

.quiz-step.active {
    display: block;
}

.quiz-step h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--charcoal);
}

.quiz-options {
    display: grid;
    gap: 1rem;
}

.quiz-options button {
    background: white;
    border: 1px solid #eee;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.quiz-options button:hover {
    border-color: var(--gold);
    background: #FDFCF8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
/* =========================================
   16. CART FREE SHIPPING BAR
   ========================================= */
.shipping-container {
    padding: 1rem 2rem;
    background-color: #FDFCF8; /* Very light cream */
    border-bottom: 1px solid #f0f0f0;
}

#shipping-msg {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-align: center;
}

.progress-track {
    width: 100%;
    height: 6px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%; /* JS will change this */
    background-color: var(--gold);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Success State */
.shipping-container.unlocked #shipping-msg {
    color: var(--gold);
    font-weight: 600;
}

.shipping-container.unlocked .progress-fill {
    background-color: #4CAF50; /* Subtle Green or keep Gold */
}