/* --- Ultra Luxury Aura Store Design System --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Ultra Luxury Colors */
    --lux-bg: #f8f7f4;
    /* Soft Ivory */
    --lux-text: #1a1a1a;
    /* Deep Charcoal */
    --lux-accent: #d4c5b0;
    /* Champagne Beige (NOT gold) */
    --lux-border: rgba(26, 26, 26, 0.1);
    /* Thin border constraint */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Layout Variables */
    --header-height: 85px;
    --announcement-height: 40px;
    --spacing-xl: 8rem;
    --spacing-lg: 5rem;
    --spacing-md: 3rem;
    --spacing-sm: 1.5rem;

    /* Cinematic and UX Utilities */
    --transition: all 0.3s ease;
    --transition-slow: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--lux-bg);
    color: var(--lux-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Foundation */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-xl {
    padding: var(--spacing-xl) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 2.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid var(--lux-text);
    background: transparent;
    color: var(--lux-text);
    transition: var(--transition);
}

.btn-primary {
    background: var(--lux-text);
    color: var(--lux-bg);
}

.btn-primary:hover {
    background: var(--lux-accent);
    border-color: var(--lux-accent);
    color: var(--lux-text);
}

.btn-outline:hover {
    background: var(--lux-text);
    color: var(--lux-bg);
}

/* Announcement Bar */
.announcement-bar {
    background: var(--lux-text);
    color: var(--lux-bg);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    height: var(--announcement-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sticky Luxury Header */
.lux-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(248, 247, 244, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--lux-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.lux-header.scrolled {
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links.left {
    flex: 1;
}

.nav-links.right {
    flex: 1;
    justify-content: flex-end;
}

.nav-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--lux-accent);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    flex: 1;
}

.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--lux-text);
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--lux-accent);
    color: var(--lux-text);
    font-size: 0.65rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--lux-text);
}

/* Responsive Rules (Mobile First) */

@media (max-width: 1200px) {
    .container {
        padding: 0 4%;
    }

    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links.left {
        display: none;
    }

    .logo {
        text-align: left;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    /* Show in drawer via JS */
    .header-icons {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .section-xl {
        padding: 4rem 0;
    }

    .section {
        padding: 3rem 0;
    }
}

/* Cinematic Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.active {
    opacity: 1;
}

/* Universal Drawers (Cart & Menu) */
.drawer {
    position: fixed;
    top: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: var(--lux-bg);
    z-index: 2000;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.drawer.left {
    left: 0;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
}

.drawer.right {
    right: 0;
    transform: translateX(100%);
}

.drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--lux-border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--lux-text);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

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

/* Toasts */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--lux-text);
    color: var(--lux-bg);
    padding: 1rem 2rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: slideUp 0.3s ease forwards;
    box-shadow: var(--shadow-soft);
}

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

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