/* ==========================================================================
   AURA BEAUTY & SKINCARE - GLOWING LUXURY STYLESHEET
   ========================================================================== */

:root {
    --bg-dark: #0E090D;
    --bg-card: rgba(26, 18, 24, 0.75);
    --bg-surface: #1B1218;
    --gold-primary: #E2B857;
    --gold-glow: rgba(226, 184, 87, 0.35);
    --rose-accent: #F3A3B5;
    --text-light: #F8F5F7;
    --text-muted: #B3A5AF;
    --border-gold: rgba(226, 184, 87, 0.25);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-logo {
    font-family: var(--font-heading);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- HEADER & DESKTOP NAVIGATION --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(14, 9, 13, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-gold);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-primary);
    text-shadow: 0 0 12px var(--gold-glow);
}

.desktop-nav {
    display: block;
}

.desktop-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.desktop-menu > li {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link,
.nav-link:visited {
    color: var(--text-light) !important;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.desktop-menu > li:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--gold-primary) !important;
    text-shadow: 0 0 8px var(--gold-glow);
}

/* --- DESKTOP DROPDOWN MENUS --- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #160D14;
    border: 1px solid var(--border-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--text-light);
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: rgba(226, 184, 87, 0.15);
    color: var(--gold-primary);
    padding-left: 1.5rem;
}

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

.cart-icon-btn {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cart-icon-btn:hover {
    box-shadow: 0 0 15px var(--gold-glow);
    background: rgba(226, 184, 87, 0.1);
}

.cart-count {
    background: var(--gold-primary);
    color: var(--bg-dark);
    font-weight: 700;
    border-radius: 50%;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
}

/* --- HAMBURGER BUTTON (Hidden on desktop) --- */
.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
}

.mobile-toggle:hover {
    box-shadow: 0 0 10px var(--gold-glow);
}

/* --- MOBILE DRAWER & OVERLAY (DESKTOP DEFAULT: HIDDEN) --- */
.mobile-drawer,
.mobile-drawer-overlay {
    display: none;
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 2rem 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(226, 184, 87, 0.12) 0%, rgba(14, 9, 13, 0) 70%);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFF 0%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2rem;
}

.btn-gold {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-primary), #B38E32);
    color: var(--bg-dark);
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 30px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-gold:hover {
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-2px);
}

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 1rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-4px);
}

.product-image-container {
    width: 100%;
    height: 260px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.2rem;
    color: #FFF;
    margin-bottom: 0.5rem;
}

.site-footer {
    background: #080507;
    border-top: 1px solid var(--border-gold);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- INLINE FILTER BAR FIX --- */
.filter-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 240px;
    white-space: nowrap;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.filter-select {
    background: var(--bg-dark);
    color: var(--text-light);
    border: 1px solid var(--border-gold);
    padding: 0.55rem 1rem;
    border-radius: 6px;
    outline: none;
    width: 100%;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-glow);
}

/* ==========================================================================
   RESPONSIVE MOBILE BREAKPOINT (Up to 868px)
   ========================================================================== */
@media screen and (max-width: 868px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Mobile Drawer Main Panel */
    .mobile-drawer {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: -320px !important;
        width: 300px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background-color: #140C12 !important;
        border-right: 1px solid var(--gold-primary) !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.9) !important;
        padding: 1.5rem !important;
        z-index: 9999 !important;
        transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
        overflow-y: auto !important;
        pointer-events: auto !important;
    }

    .mobile-drawer.active {
        left: 0 !important;
    }

    .mobile-drawer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding-bottom: 1rem !important;
        margin-bottom: 1rem !important;
        border-bottom: 1px solid rgba(226, 184, 87, 0.3) !important;
    }

    .mobile-drawer-title {
        font-family: var(--font-heading);
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        color: var(--gold-primary) !important;
        letter-spacing: 2px !important;
    }

    .mobile-close-btn {
        background: rgba(226, 184, 87, 0.15) !important;
        border: 1px solid var(--gold-primary) !important;
        color: #FFFFFF !important;
        font-size: 1.8rem !important;
        line-height: 1 !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }

    /* Mobile Navigation Links and Accordion Rules */
    .mobile-menu-list {
        list-style: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .mobile-menu-list > li {
        width: 100% !important;
        border-bottom: 1px solid rgba(226, 184, 87, 0.15) !important;
    }

    .mobile-menu-item-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .mobile-menu-list li a.mobile-nav-link {
        display: block !important;
        flex-grow: 1 !important;
        padding: 1.1rem 0.5rem !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #FFFFFF !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
    }

    .mobile-submenu-toggle {
        background: transparent !important;
        border: none !important;
        color: var(--gold-primary) !important;
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        padding: 0.5rem 1rem !important;
        cursor: pointer !important;
        line-height: 1 !important;
    }

    /* Mobile Nested Accordion Submenus */
    .mobile-submenu {
        list-style: none !important;
        padding: 0 0 0.5rem 1rem !important;
        margin: 0 !important;
        display: none;
        background-color: rgba(0, 0, 0, 0.25) !important;
        border-left: 2px solid var(--gold-primary) !important;
    }

    .mobile-has-submenu.open .mobile-submenu {
        display: block !important;
    }

    .mobile-submenu li a.mobile-sub-link {
        display: block !important;
        padding: 0.75rem 0.5rem !important;
        font-size: 0.95rem !important;
        color: var(--text-muted) !important;
        text-decoration: none !important;
        transition: color 0.2s ease !important;
    }

    .mobile-submenu li a.mobile-sub-link:hover,
    .mobile-submenu li a.mobile-sub-link:active {
        color: var(--gold-primary) !important;
    }

    /* Backdrop Overlay */
    .mobile-drawer-overlay {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(0, 0, 0, 0.75) !important;
        backdrop-filter: blur(4px);
        z-index: 9998 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
        pointer-events: none !important;
    }

    .mobile-drawer-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* ==========================================================================
   OFF-CANVAS CART DRAWER (FLYOUT FIX)
   ========================================================================== */

/* Dark Backdrop Overlay */
.cart-drawer-overlay,
#cartOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px);
    z-index: 10000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    pointer-events: none !important;
}

.cart-drawer-overlay.active,
#cartOverlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Off-Canvas Slide-In Panel */
.cart-drawer,
#cartDrawer {
    position: fixed !important;
    top: 0 !important;
    right: -450px !important; /* Hides off-screen to the right by default */
    width: 100% !important;
    max-width: 400px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: #160D14 !important; /* Dark theme surface */
    border-left: 1px solid var(--border-gold, rgba(226, 184, 87, 0.25)) !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8) !important;
    z-index: 10001 !important;
    display: flex !important;
    flex-direction: column !important;
    transition: right 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
    overflow: hidden !important;
}

/* Flyby Triggered State */
.cart-drawer.active,
#cartDrawer.active {
    right: 0 !important; /* Slides into view */
}

/* Cart Interior Layout Styles */
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-gold, rgba(226, 184, 87, 0.25));
}

.cart-drawer-title {
    font-family: var(--font-heading, serif);
    font-size: 1.3rem;
    color: var(--gold-primary, #E2B857);
}

.cart-close-btn {
    background: transparent;
    border: none;
    color: var(--text-light, #FFF);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(226, 184, 87, 0.15);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-gold, rgba(226, 184, 87, 0.25));
}

.cart-item-info h4 {
    font-size: 0.95rem;
    color: #FFF;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--gold-primary, #E2B857);
}

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-gold, rgba(226, 184, 87, 0.25));
    background: rgba(14, 9, 13, 0.95);
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light, #FFF);
}