/**
 * MIORA CANDLE MAISON V3 - LUXURY AMBIENT DESIGN SYSTEM
 * Brand: Miora (میورا - کارگاه شمع‌های دست‌ساز گیاهی و روایح لوکس)
 * Standard: Noir Luminescence, Mouse-Reactive Atmosphere & Uncluttered Product Stage
 */

@charset "UTF-8";

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Color Palette - Obsidian Noir & 24K Radiant Amber */
    --bg-base: #09090c;
    --bg-surface: #101017;
    --bg-elevated: #161622;
    --bg-glass: rgba(18, 18, 26, 0.72);
    --bg-glass-card: rgba(22, 22, 32, 0.65);
    
    /* Radiant Gold & Ember Accents */
    --gold-primary: #f59e0b;
    --gold-light: #fbbf24;
    --gold-ember: #d97706;
    --gold-glow: rgba(245, 158, 11, 0.22);
    --gold-border: rgba(245, 158, 11, 0.3);
    --ambient-accent: rgba(245, 158, 11, 0.16);

    /* Text Hierarchy */
    --text-main: #f8f9fa;
    --text-secondary: #b8bac7;
    --text-muted: #787d8f;
    --text-dark: #09090c;

    /* Semantic Status */
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;

    /* Typography */
    --font-fa: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Radii Scale */
    --radius-pill: 9999px;
    --radius-outer: 1.75rem;       /* 28px */
    --radius-inner: 1.25rem;       /* 20px */
    --radius-md: 0.875rem;         /* 14px */
    --radius-sm: 0.5rem;           /* 8px */

    /* Shadows & Elevation */
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-luxe: 0 20px 50px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 40px var(--gold-glow);
    --shadow-inner-bevel: inset 0 1px 1px rgba(255, 255, 255, 0.12);

    /* Transitions & Spring Physics */
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-spring);
    --transition-normal: 0.35s var(--ease-spring);
    --transition-slow: 0.6s var(--ease-spring);

    /* Interactive Spotlight Coordinates */
    --mouse-x: 50%;
    --mouse-y: 35%;
}

/* ==========================================================================
   2. RESET & GLOBAL BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    content-visibility: visible !important;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-fa);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.75;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Dynamic Interactive Mouse Spotlight Layer */
.ambient-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        750px circle at var(--mouse-x) var(--mouse-y),
        var(--ambient-accent) 0%,
        rgba(9, 9, 12, 0) 70%
    );
    transition: background 0.5s ease;
    will-change: background;
}

/* Subtle Canvas Embers Layer */
#ambientCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.65;
}

main {
    flex: 1;
    position: relative;
    z-index: 2;
}

header, footer, .modal, .cart-drawer {
    position: relative;
    z-index: 10;
}

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

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
    user-select: none;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
}

.text-gold { color: var(--gold-primary); }
.text-gold-light { color: var(--gold-light); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--color-error); }
.text-success { color: var(--color-success); }

/* ==========================================================================
   3. GLASS & DOUBLE-BEZEL CARDS
   ========================================================================== */
.glass-card {
    background: var(--bg-glass-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-inner);
    box-shadow: var(--shadow-inner-bevel), var(--shadow-subtle);
    transition: var(--transition-normal);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.glass-card:hover {
    border-color: rgba(245, 158, 11, 0.28);
    box-shadow: var(--shadow-inner-bevel), 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px var(--gold-glow);
    transform: translateZ(0);
}

.double-bezel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-outer);
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.double-bezel-inner {
    background: var(--bg-surface);
    border-radius: var(--radius-inner);
    padding: 1.75rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   4. BUTTONS & INTERACTIVE PILLS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-normal);
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #09090c;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
    font-weight: 700;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-glass:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: var(--gold-border);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible !important;
}

.badge-counter {
    position: absolute;
    top: -5px;
    left: -5px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #09090c;
    font-size: 0.72rem;
    font-weight: 900;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #09090c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 10px rgba(245, 158, 11, 0.5);
    z-index: 10;
    line-height: 1;
    pointer-events: none;
}

/* ==========================================================================
   5. SITE HEADER & FLOATING ISLAND NAV
   ========================================================================== */
.site-header {
    position: sticky;
    top: 1rem;
    z-index: 100;
    padding-inline: 1rem;
    margin-bottom: 1.5rem;
}

.nav-island {
    max-width: 1280px;
    margin-inline: auto;
    background: rgba(16, 16, 23, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), var(--shadow-inner-bevel);
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gold-border);
    box-shadow: 0 0 15px var(--gold-glow);
}

.brand-title {
    display: flex;
    flex-direction: column;
}

.brand-title-main {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.brand-title-sub {
    font-size: 0.68rem;
    color: var(--gold-light);
    letter-spacing: 1.5px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    display: none;
    width: 18px;
    height: 18px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.15rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-light);
    background: rgba(245, 158, 11, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* User Avatar Dropdown */
.user-dropdown-wrapper {
    position: relative;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    transition: var(--transition-fast);
    cursor: pointer;
}

.user-avatar-btn:hover,
.user-dropdown-wrapper.active .user-avatar-btn {
    border-color: var(--gold-border);
    background: rgba(245, 158, 11, 0.12);
}

.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #09090c;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    width: 230px;
    background: #111118;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-inner);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

/* Invisible Hover Bridge: prevents menu from closing when mouse moves over the margin gap */
.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.user-dropdown-wrapper:hover .user-dropdown-menu,
.user-dropdown-wrapper.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-dropdown-header {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.user-dropdown-header strong {
    font-size: 0.9rem;
    color: var(--text-main);
}

.user-dropdown-header span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.user-dropdown-item:hover {
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold-light);
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 50%, rgba(245, 158, 11, 0.15) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    padding: 0.45rem 1rem;
    font-size: 0.84rem;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* ==========================================================================
   6. V3 UNCLUTTERED INTERACTIVE PRODUCT HERO SHOWCASE
   ========================================================================== */
.hero-v3-section {
    padding-top: 1rem;
    padding-bottom: 3.5rem;
    min-height: calc(90dvh - 5rem);
    display: flex;
    align-items: center;
    position: relative;
}

.hero-v3-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 3rem;
    align-items: center;
}

/* Left Brand Minimal Stage */
.hero-v3-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-v3-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    color: var(--gold-light);
    font-weight: 600;
    width: fit-content;
}

.hero-v3-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-v3-title span {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-v3-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Interactive Scent Mood Pill Bar */
.hero-v3-mood-selector {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.hero-v3-mood-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-v3-mood-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hero-mood-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition-fast);
}

.hero-mood-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.hero-mood-btn.active {
    background: rgba(245, 158, 11, 0.18);
    border-color: var(--gold-primary);
    color: var(--gold-light);
    font-weight: 700;
    box-shadow: 0 0 15px var(--gold-glow);
}

/* Micro-Metrics Row */
.hero-v3-metrics {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metric-item {
    display: flex;
    flex-direction: column;
}

.hero-metric-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold-light);
}

.hero-metric-label {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* Right Interactive Sensory Flame & Atmosphere Studio Stage */
.hero-v3-stage-container {
    position: relative;
    perspective: 1200px;
}

.hero-atmosphere-card {
    background: linear-gradient(145deg, rgba(22, 22, 32, 0.85) 0%, rgba(12, 12, 18, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-outer);
    padding: 1.25rem;
    box-shadow: var(--shadow-luxe), 0 0 50px rgba(0, 0, 0, 0.8), 0 0 35px var(--gold-glow);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.hero-atmosphere-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, transparent 70%);
    pointer-events: none;
    transition: background 0.6s ease;
    z-index: 1;
}

.hero-atmosphere-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    transition: background 0.05s linear;
}

.hero-atmosphere-visual {
    position: relative;
    border-radius: var(--radius-inner);
    overflow: hidden;
    height: 380px;
    background: #07070a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-atmosphere-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.hero-atmosphere-card:hover .hero-atmosphere-img {
    transform: scale(1.04);
}

.hero-atmosphere-tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: color;
    opacity: 0.7;
    transition: background 0.6s ease;
}

/* Living Flame & Sensory Glow Core */
.hero-flame-core {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flame-outer-glow {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.6) 0%, rgba(217, 119, 6, 0.25) 45%, transparent 70%);
    animation: flamePulse 3s ease-in-out infinite alternate;
    filter: blur(10px);
}

.flame-inner-glow {
    position: absolute;
    width: 50px;
    height: 65px;
    border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
    background: radial-gradient(ellipse at center bottom, #ffffff 0%, #fef08a 25%, #f59e0b 60%, transparent 90%);
    filter: blur(4px);
    animation: flameFlicker 0.15s ease-in-out infinite alternate;
}

@keyframes flamePulse {
    0% { transform: scale(0.92); opacity: 0.75; }
    50% { transform: scale(1.1); opacity: 0.95; }
    100% { transform: scale(0.96); opacity: 0.8; }
}

@keyframes flameFlicker {
    0% { transform: scale(0.97) rotate(-1deg); opacity: 0.9; }
    100% { transform: scale(1.03) rotate(1deg); opacity: 1; }
}

.hero-atmosphere-badge-top {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 10, 16, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.atmosphere-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: liveDotPulse 2s infinite ease-in-out;
}

@keyframes liveDotPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Floating Glass Sensory Mood Signature */
.hero-atmosphere-signature {
    margin-top: 1.1rem;
    background: rgba(14, 14, 20, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateZ(25px);
}

.hero-atmosphere-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-atmosphere-heading h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.hero-atmosphere-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 0.25rem;
}

.hero-atmosphere-tags {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.atmosphere-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-fast);
}

.atmosphere-tag:hover {
    color: var(--gold-light);
    border-color: var(--gold-border);
    background: rgba(245, 158, 11, 0.1);
}

/* ==========================================================================
   7. LIVE CATALOG & PRODUCT GRID
   ========================================================================== */
.catalog-section {
    padding: 4rem 0;
    position: relative;
}

.section-header-clean {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-title-wrap h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title-wrap p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.35rem;
}

/* Category Filter Tabs */
.catalog-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab-btn {
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.filter-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.filter-tab-btn.active {
    background: var(--gold-primary);
    color: #09090c;
    border-color: var(--gold-primary);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

/* Global Luxury Filter Tabs */
.filter-tabs-container {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.filter-tab:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: var(--gold-border);
    color: var(--gold-light);
    transform: translateY(-1px);
}

.filter-tab.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #09090c !important;
    border-color: #f59e0b;
    font-weight: 800;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.filter-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
}

.filter-tab.active .filter-tab-count {
    background: rgba(0, 0, 0, 0.25);
    color: #09090c;
}

.filter-tab-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.filter-tab.active .filter-tab-dot {
    background: #09090c !important;
}

/* Product Cards Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-inner);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.product-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: var(--shadow-luxe), 0 0 30px var(--gold-glow);
    transform: translateY(-4px) translateZ(0);
}

/* Out of Stock Card Styling */
.product-card.out-of-stock {
    opacity: 0.82;
    border-color: rgba(255, 255, 255, 0.05);
}

.product-card.out-of-stock:hover {
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transform: translateZ(0);
}

.product-card.out-of-stock .product-card-img {
    filter: grayscale(100%) brightness(0.55) contrast(0.85);
    opacity: 0.65;
}

.product-card.out-of-stock .product-card-title {
    color: var(--text-muted);
}

.product-card.out-of-stock .product-card-price strong {
    color: #ef4444;
}

/* Watermark Overlay Ribbon */
.out-of-stock-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    background: rgba(12, 12, 18, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(239, 68, 68, 0.65);
    color: #fca5a5;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 0.4rem 1.3rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(239, 68, 68, 0.25);
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-transform: uppercase;
}

.badge-out-of-stock {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #fca5a5 !important;
}

.btn-out-of-stock {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none !important;
}

.product-card-img-wrap {
    position: relative;
    width: 100%;
    height: 270px;
    min-height: 270px;
    aspect-ratio: 1 / 1;
    background: #07070a;
    overflow: hidden;
    display: block;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.product-card-img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.6s var(--ease-spring);
}

.product-card:not(.out-of-stock):hover .product-card-img {
    transform: scale(1.06) translateZ(0);
}

/* Floating Action Overlay */
.product-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(14, 14, 20, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--gold-light);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    z-index: 2;
}

.product-card-wishlist {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(14, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    z-index: 2;
}

.product-card-wishlist:hover, .product-card-wishlist.active {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.product-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.85rem;
}

.product-card-category {
    font-size: 0.78rem;
    color: var(--gold-light);
    font-weight: 600;
    text-transform: uppercase;
}

.product-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.product-card-title:hover {
    color: var(--gold-light);
}

.product-card-notes {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.product-card-price strong {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--gold-light);
}

.product-card-price span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 0.4rem;
}

/* ==========================================================================
   8. ATELIER CRAFTSMANSHIP BENTO GRID
   ========================================================================== */
.bento-section {
    padding: 4.5rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-cell-8 { grid-column: span 8; }
.bento-cell-4 { grid-column: span 4; }
.bento-cell-6 { grid-column: span 6; }
.bento-cell-12 { grid-column: span 12; }

.bento-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-inner);
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.bento-card:hover {
    border-color: rgba(245, 158, 11, 0.28);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--gold-glow);
    transform: translateZ(0);
}

.bento-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    margin-bottom: 1.25rem;
}

.bento-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ==========================================================================
   9. SLIDE-OVER AJAX CART DRAWER
   ========================================================================== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: #0d0d14;
    border-right: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 25px 0 70px rgba(0, 0, 0, 0.85);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(18, 18, 26, 0.95);
}

.cart-drawer-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f9fafb;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Free Shipping Progress Meter */
.free-shipping-progress-box {
    margin: 1.25rem 1.5rem 0 1.5rem;
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.free-shipping-progress-text {
    font-size: 0.84rem;
    color: var(--gold-light);
    font-weight: 600;
}

.free-shipping-progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.free-shipping-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 999px;
    transition: width 0.4s var(--ease-spring);
}

/* Cart Item Card inside Drawer */
.drawer-cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.drawer-cart-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 158, 11, 0.25);
}

.drawer-cart-item-img {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.drawer-cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.drawer-cart-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f3f4f6;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-cart-item-price {
    font-size: 0.88rem;
    color: var(--gold-light);
    font-weight: 800;
    margin-top: 0.25rem;
}

.drawer-cart-qty-control {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.15rem 0.45rem;
    width: fit-content;
    margin-top: 0.45rem;
}

.drawer-cart-qty-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.drawer-cart-qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-light);
}

.cart-drawer-footer {
    padding: 1.25rem 1.5rem 1.75rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 14, 20, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.drawer-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-summary-row span {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 500;
}

.drawer-summary-row strong {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--gold-light);
}

.drawer-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0.75rem;
}

.drawer-btn {
    height: 46px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-btn-view {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
}

.drawer-btn-view:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-light);
    color: #fff;
}

.drawer-btn-checkout {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #09090c;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    border: none;
}

.drawer-btn-checkout:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   10. MODALS (Quick View, Scent Quiz)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-outer);
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--gold-glow);
    padding: 2rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s var(--ease-spring);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

/* Scent Notes Pyramid Display */
.scent-pyramid-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.pyramid-note-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.86rem;
}

.pyramid-badge {
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 80px;
    text-align: center;
}

.pyramid-top { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.pyramid-heart { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.pyramid-base { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

/* ==========================================================================
   10.5 PRODUCT DETAIL PAGE RESPONSIVE COMPONENT SUITE
   ========================================================================== */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
    align-items: start;
    margin-bottom: 4.5rem;
    width: 100%;
}

.product-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.product-breadcrumbs a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.product-breadcrumbs a:hover {
    color: var(--gold-light);
}

.product-breadcrumbs span {
    opacity: 0.6;
}

.product-detail-img-card {
    padding: 1rem;
    border-radius: var(--radius-outer);
    overflow: hidden;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.product-detail-img-wrap {
    width: 100%;
    height: 480px;
    border-radius: var(--radius-inner);
    overflow: hidden;
    background: #07070a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    width: 100%;
}

.product-detail-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0.4rem 0 0.85rem 0;
    color: var(--text-main);
    word-break: break-word;
}

.product-detail-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-detail-price-current {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold-light);
}

.product-detail-price-old {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
}

.product-actions-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.product-qty-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.85rem;
    gap: 0.75rem;
}

/* Mobile Responsiveness for Product Details */
@media (max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-bottom: 3.5rem;
    }

    .product-detail-img-wrap {
        height: 340px;
    }

    .product-detail-title {
        font-size: 1.45rem !important;
        line-height: 1.4 !important;
    }

    .product-detail-price-current {
        font-size: 1.45rem !important;
    }

    .product-actions-bar {
        gap: 0.75rem;
    }

    .product-actions-bar .btn-gold {
        padding: 0.85rem 1.25rem;
        font-size: 0.92rem;
    }
}

@media (max-width: 480px) {
    .product-detail-img-card {
        padding: 0.5rem;
    }

    .product-detail-img-wrap {
        height: 280px;
    }

    .product-specs-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }

    .product-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .product-actions-bar .btn-gold,
    .product-actions-bar .btn-out-of-stock {
        width: 100%;
        justify-content: center;
    }

    .product-qty-selector {
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   11. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--gold-border);
    color: var(--text-main);
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toastSlideUp 0.35s var(--ease-spring);
}

@keyframes toastSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   12. FORM ELEMENTS & CHECKOUT
   ========================================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--gold-primary);
    background: rgba(245, 158, 11, 0.06);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

select.form-control,
select {
    background-color: #12121c !important;
    color: #f8fafc !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 1rem center !important;
    padding-left: 2.5rem !important;
    cursor: pointer;
}

select option,
select optgroup {
    background-color: #161622 !important;
    color: #f8fafc !important;
    padding: 0.65rem 0.85rem;
}

select option:checked,
select option:hover,
select option:focus {
    background-color: #242436 !important;
    color: #fbbf24 !important;
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

/* Flash alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer {
    background: #060608;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4.5rem 0 2rem 0;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--gold-light);
    transform: translateX(-4px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   14. RESPONSIVE BREAKPOINTS & LUXURY NAVBAR ADAPTATION
   ========================================================================== */

/* Large Laptops & Small Desktops (1025px - 1200px) */
@media (max-width: 1200px) {
    .brand-title-sub {
        display: none;
    }

    .user-nav-name,
    .user-nav-chevron {
        display: none !important;
    }

    .user-avatar-btn {
        padding: 0;
        border-radius: 50%;
        border: none;
        background: none;
    }

    .btn-login-nav .nav-text {
        display: none !important;
    }

    .btn-login-nav {
        padding: 0 !important;
        width: 42px;
        height: 42px;
        border-radius: 50% !important;
    }

    .nav-link {
        padding: 0.45rem 0.85rem;
        font-size: 0.88rem;
    }

    .nav-island {
        padding: 0.5rem 1.25rem;
        gap: 0.75rem;
    }

    .header-actions {
        gap: 0.45rem;
    }
}

/* Medium Tablets & Narrow Desktops (769px - 1024px) */
@media (max-width: 1024px) {
    .hero-v3-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-v3-title {
        font-size: 2.4rem;
    }

    .bento-cell-8, .bento-cell-4, .bento-cell-6 {
        grid-column: span 12;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    /* Convert Navigation Links to Elegant Icon Pills */
    .nav-menu {
        display: flex !important;
        gap: 0.35rem;
    }

    .nav-text {
        display: none !important;
    }

    .nav-icon {
        display: block !important;
        width: 18px;
        height: 18px;
    }

    .nav-link {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.07);
    }

    .nav-link:hover, .nav-link.active {
        background: rgba(245, 158, 11, 0.15);
        border-color: var(--gold-border);
        box-shadow: 0 0 12px var(--gold-glow);
    }

    .nav-island {
        padding: 0.45rem 1rem;
        gap: 0.5rem;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
    }

    .user-avatar-circle {
        width: 40px;
        height: 40px;
    }
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
    .site-header {
        top: 0.5rem;
        padding-inline: 0.5rem;
        margin-bottom: 1rem;
    }

    .nav-island {
        padding: 0.4rem 0.65rem;
        gap: 0.35rem;
        border-radius: var(--radius-pill);
    }

    .brand-logo {
        gap: 0.5rem;
    }

    .brand-logo-img {
        width: 32px;
        height: 32px;
    }

    .brand-title-main {
        font-size: 0.9rem;
    }

    .nav-menu {
        gap: 0.2rem;
    }

    .nav-icon {
        width: 16px;
        height: 16px;
    }

    .nav-link {
        width: 34px;
        height: 34px;
    }

    .header-actions {
        gap: 0.25rem;
    }

    .btn-icon {
        width: 34px;
        height: 34px;
    }

    .btn-login-nav {
        width: 34px;
        height: 34px;
    }

    .user-avatar-circle {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .badge-counter {
        min-width: 18px;
        height: 18px;
        font-size: 0.68rem;
        top: -4px;
        left: -4px;
        padding: 0 3px;
    }

    .hero-v3-title {
        font-size: 2rem;
    }

    .hero-atmosphere-visual {
        height: 280px;
    }

    .hero-atmosphere-signature {
        padding: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cart-drawer {
        max-width: 100%;
    }

    .toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .toast {
        width: 100%;
        justify-content: center;
    }

    /* Auto-collapse multi-column form grids on mobile */
    .glass-card div[style*="grid-template-columns: 1fr 1fr"],
    .glass-card div[style*="grid-template-columns: 1fr 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Mobile Ambient & Canvas Deactivation */
    #ambientCanvas,
    .ambient-spotlight {
        display: none !important;
    }

    .card,
    .glass-card,
    .product-card {
        contain: layout paint;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* Mobile Chrome Rendering Stability Fix */
    .product-card,
    .glass-card,
    .bento-card,
    .product-card-img-wrap,
    .product-card-img {
        opacity: 1 !important;
        visibility: visible !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }

    .product-card-img-wrap {
        height: 250px;
        min-height: 250px;
    }
}

/* Extra Small Screens (max-width: 420px) */
@media (max-width: 420px) {
    .nav-island {
        padding: 0.35rem 0.5rem;
    }

    .brand-title-main {
        display: none;
    }

    #openScentQuizBtn {
        display: none;
    }

    .nav-link,
    .btn-icon,
    .btn-login-nav,
    .user-avatar-circle {
        width: 32px;
        height: 32px;
    }
}
