﻿/* =======================================================
   MAIN.CSS
   - Layout + Components + Animations + Responsive
   - NO theme/mode/background rules here
   - Colors should come from style.css via CSS variables
   ======================================================= */

/* ========== GLOBAL RESET ========== */
* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* IMPORTANT: structure only */
body {
    overflow-x: hidden;
    overflow-y: auto;
    --cart-btn-bg-light: linear-gradient(135deg, #22c55e, #16a34a);
    --cart-btn-bg-dark: linear-gradient(135deg, #4ade80, #22c55e);
    --cart-btn-text: #ffffff;
}

/* Generic page wrapper */
.container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.header-cart-icon {
    font-size: 17px;
}

.header-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    /* background handled by style.css */
}

.cart-bounce {
    animation: bounceCart 0.65s ease-out;
}

@keyframes bounceCart {
    0% {
        transform: scale(0.7) translateY(-4px);
    }

    40% {
        transform: scale(1.15) translateY(0);
    }

    70% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}


/* ========== GENERIC GLASS CARD COMPONENT (used by login + dashboard) ========== */
.card {
    width: 430px;
    border-radius: 26px;
    border: 1px solid var(--border-soft, rgba(148,163,184,0.55));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 30px 32px 26px 32px;
    position: relative;
    overflow: hidden;
    animation: cardIn .5s ease-out;
    box-shadow: 0 18px 40px rgba(15,23,42,0.35), 0 0 0 1px rgba(148,163,184,0.26);
}

    .card::before {
        content: "";
        position: absolute;
        width: 170px;
        height: 170px;
        top: -45px;
        right: -65px;
        opacity: 0.8;
        pointer-events: none;
        /* theme glow handled by style.css */
    }

    .card::after {
        content: "";
        position: absolute;
        width: 130px;
        height: 130px;
        bottom: -34px;
        left: -45px;
        opacity: 0.75;
        pointer-events: none;
        /* theme glow handled by style.css */
    }

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-title {
    font-size: 27px;
    font-weight: 800;
    margin-bottom: 4px;
}

.card-sub {
    font-size: 13px;
    margin-bottom: 18px;
}

/* ========== GLOBAL INPUTS ========== */
.input {
    width: 100%;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.6);
    margin-bottom: 13px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .12s ease, color .2s ease;
}

    .input::placeholder {
        color: #6b7280;
    }

    .input:focus {
        border-color: var(--primary-soft2, #38bdf8);
        box-shadow: 0 0 0 1px rgba(56,189,248,0.58), 0 10px 26px rgba(15,23,42,0.35);
        transform: translateY(-1px);
    }

    /* INVALID FIELD */
    .input.invalid {
        border-color: #f97373 !important;
        box-shadow: 0 0 0 1px rgba(248,113,113,0.8), 0 10px 26px rgba(127,29,29,0.40);
    }

/* Wider variant */
.input-wide {
    width: 100%;
    max-width: 100%;
}

/* ========== GLOBAL BUTTONS ========== */
.btn {
    width: 100%;
    padding: 11px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform .12s ease, box-shadow .18s ease, border-color .12s ease, background .12s ease, color .12s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
}

/* Social buttons share same base */
.social-btn {
    width: 100%;
    padding: 9px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    font-size: 13px;
    margin-top: 6px;
    text-align: left;
    cursor: pointer;
    transition: box-shadow .18s ease, border-color .15s ease, background .15s ease;
}

/* ========== TEXT LINKS + TERMS ========== */
.small-link {
    font-size: 13px;
    cursor: pointer;
}

    .small-link:hover {
        text-decoration: underline;
    }

.terms-row {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}

    .terms-row a {
        text-decoration: none;
    }

        .terms-row a:hover {
            text-decoration: underline;
        }

/* ========== PANELS + SLIDE TRANSITIONS ========== */
.panel {
    display: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .35s ease, transform .35s ease;
}

    .panel.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

/* Slide transitions */
.slide-in-right {
    animation: slideInFromRight .35s ease forwards;
}

.slide-out-left {
    animation: slideOutToLeft .35s ease forwards;
}

.slide-in-left {
    animation: slideInFromLeft .35s ease forwards;
}

.slide-out-right {
    animation: slideOutToRight .35s ease forwards;
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-40px);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* SHAKE animation */
.shake {
    animation: shakeAnim .35s ease;
}

@keyframes shakeAnim {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }

    100% {
        transform: translateX(0);
    }
}

/* ========== ERROR MESSAGES ========== */
.error-message {
    display: none;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 10px;
    opacity: 0;
    border: 1px solid rgba(248,113,113,0.6);
    box-shadow: 0 10px 26px rgba(127,29,29,0.35);
}

    .error-message.show {
        display: block;
        animation: errorFade 4s ease-out forwards;
    }

@keyframes errorFade {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    70% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-6px);
    }
}

/* ========== LOGIN LAYOUT BASICS (LEFT / RIGHT) ========== */
.left {
    flex: 1.1;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideFade 18s infinite;
    transform: scale(1.05);
}

@keyframes slideFade {
    0% {
        opacity: 1;
        transform: scale(1.05);
    }

    25% {
        opacity: 1;
        transform: scale(1.08);
    }

    40% {
        opacity: 0;
        transform: scale(1.12);
    }

    100% {
        opacity: 0;
        transform: scale(1.12);
    }
}

.left-overlay {
    position: absolute;
    inset: 0;
    /* colors handled by style.css */
}

#particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
}

.right {
    flex: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ========== SUCCESS PANEL ========== */
.success-wrapper {
    text-align: center;
    padding: 18px 8px 6px 8px;
}

.success-check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 12px auto;
    position: relative;
    animation: successPop .45s ease-out;
    /* colors handled by style.css */
}

.success-checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    font-size: 40px;
    color: #f9fafb;
    animation: checkIn .4s ease-out .2s forwards;
    opacity: 0;
}

@keyframes successPop {
    0% {
        transform: scale(0.45);
        opacity: 0;
    }

    60% {
        transform: scale(1.08);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.4);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.success-title {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 5px;
}

.success-sub {
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.success-user {
    font-size: 14px;
    margin-bottom: 10px;
}

    .success-user span {
        display: block;
    }

.success-slideshow {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 14px;
}

.success-mini-slide {
    width: 60px;
    height: 40px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    opacity: 0.95;
    box-shadow: 0 8px 20px rgba(15,23,42,0.35);
    animation: miniSlidePulse 5s infinite;
}

@keyframes miniSlidePulse {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }

    100% {
        transform: translateY(0);
    }
}

/* CONFETTI CANVAS */
#confettiCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    display: none;
}



/* Smooth transitions (safe structural list; colors handled by style.css) */
html, body,
.product-card-inner, .products-search-pill, .products-summary-pill,
.wizard-top-bar, .wizard-body {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

    /* The fade overlay class added from VB */
    body.theme-fade {
        filter: brightness(0.98);
    }

/* Make the entire user box clickable */
.header-user-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

    /* Maintain the original layout */
    .header-user-link .header-user {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 12px;
        border-radius: 12px;
        transition: 0.25s ease;
    }

        /* Hover effect (color handled by style.css) */
        .header-user-link .header-user:hover {
            transform: translateY(-1px);
        }

/* Admin login link (structure only) */
.admin-login-link {
    margin-left: 6px;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
}

    .admin-login-link:hover {
        opacity: 1;
        text-decoration: underline;
    }


/* =========================================
   IMAGE ZOOM MODAL
   ========================================= */

.image-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.image-zoom-box {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

    .image-zoom-box img {
        max-width: 80vw;
        max-height: 80vh;
        object-fit: contain;
        display: block;
        border-radius: 10px;
    }

.image-zoom-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

/* ===============================
   GLASS HEADER (SAFE)
================================ */

.glass-header {
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-bottom: 1px solid rgba(148,163,184,.35);
    position: fixed; /* 🔑 change */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
}

/* ===============================
   CENTER NAV – MODERN ICON STYLE
================================ */

.header-center-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
}

/* Nav link base */
.header-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.85;
    transition: all .25s ease;
}

    /* Icon */
    .header-nav-link .nav-icon {
        font-size: 17px;
        line-height: 1;
    }

    /* Text */
    .header-nav-link .nav-text {
        white-space: nowrap;
    }

/* Light / Dark text handled by your theme */
body.dark .header-nav-link {
    color: rgba(226,232,240,0.85);
}

body:not(.dark) .header-nav-link {
    color: rgba(15,23,42,0.85);
}

/* Hover glass pill */
.header-nav-link:hover {
    opacity: 1;
    transform: translateY(-1px);
    background: rgba(255,255,255,0.08);
    box-shadow: inset 0 0 0 1px rgba(148,163,184,.25);
}

/* Active state */
.header-nav-link.active {
    opacity: 1;
    background: radial-gradient( circle at top left, color-mix(in srgb, var(--primary) 35%, transparent), transparent );
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 45%, transparent), 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent);
}


/* Admin subtle accent */
.header-nav-link.admin-link {
    opacity: 0.7;
}

    .header-nav-link.admin-link:hover {
        opacity: 1;
    }

/* ===============================
   SLIDING NAV UNDERLINE
================================ */

.header-center-nav {
    position: relative;
}

.nav-underline {
    position: absolute;
    bottom: -6px;
    height: 3px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--primary-soft));
    box-shadow: 0 0 16px color-mix(in srgb, var(--primary) 65%, transparent);
    transition: transform .35s ease, width .35s ease;
    pointer-events: none;
}

/* ===============================
   HEADER SHRINK
================================ */

.header {
    transition: padding .3s ease, backdrop-filter .3s ease;
}

    .header.shrink {
        padding-top: 6px;
        padding-bottom: 6px;
        backdrop-filter: blur(26px);
    }

        .header.shrink .header-brand-sub {
            opacity: 0;
            height: 0;
            overflow: hidden;
        }

/* ===============================
   HOME FIRST-VISIT PULSE
================================ */

.header-nav-link.home-pulse {
    animation: homePulse 1.6s ease-in-out infinite;
}

@keyframes homePulse {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 55%, transparent);
        transform: translateY(0);
    }

    50% {
        box-shadow: 0 0 18px color-mix(in srgb, var(--primary) 75%, transparent);
        transform: translateY(-1px);
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
        transform: translateY(0);
    }
}


/* ===============================
   MOBILE SAFETY
================================ */


/* ===============================
   PAGE LOADER (CONTENT ONLY)
=============================== */

.page-loader {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    background: rgba(15,23,42,0.18);
    opacity: 1;
    pointer-events: all;
    transition: opacity .35s ease;
}

    .page-loader.hide {
        opacity: 0;
        pointer-events: none;
    }

/* Spinner */
.loader-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(148,163,184,.35);
    border-top-color: var(--primary);
    animation: spin .9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===============================
   APPLE-STYLE HEADER PROGRESS
================================ */
.header-progress {
    position: fixed;
    top: 64px; /* exact header height */
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1099;
}


.header-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient( 90deg, var(--primary), var(--primary-soft) );
    box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 65%, transparent);
    transition: width .35s ease, opacity .3s ease;
    opacity: 0;
}

.header-progress.active .header-progress-bar {
    opacity: 1;
}

.header-progress.complete .header-progress-bar {
    width: 100%;
    opacity: 0;
    transition: width .2s ease, opacity .35s ease;
}

.header-nav-link {
    position: relative; /* 🔑 REQUIRED */
}

/* Vendor brand pulse */
.header-brand-inner {
    animation: brandFloat 4.5s ease-in-out infinite;
}

.header-vendor-logo {
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--primary) 55%, transparent));
    transition: filter .3s ease;
}

@keyframes brandFloat {
    0% {
        transform: translateY(0);
        filter: drop-shadow(0 0 0 transparent);
    }

    50% {
        transform: translateY(-2px);
        filter: drop-shadow(0 0 14px color-mix(in srgb, var(--primary) 55%, transparent));
    }

    100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 0 transparent);
    }
}

/* ===============================
   HEADER LOGIN PROMPT
================================ */

.header-login-primary {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    line-height: 1.1;
    transition: all .25s ease;
}

    .header-login-primary:hover {
        text-decoration: underline;
        text-shadow: 0 0 12px color-mix(in srgb, var(--primary) 55%, transparent);
    }

.header-login-sub {
    font-size: 11.5px;
    opacity: 0.7;
    margin-top: 2px;
    white-space: nowrap;
}

/* Dark / light handled automatically */
body.dark .header-login-sub {
    color: rgba(226,232,240,0.65);
}

body:not(.dark) .header-login-sub {
    color: rgba(15,23,42,0.65);
}

.header-nav-link::after {
    pointer-events: none;
}

.header-nav-link:not(.active)::after {
    display: none;
}

/* =========================
   USER DROPDOWN (FINAL)
========================= */

.user-dropdown-wrapper {
    position: relative;
}

/* PANEL */
.user-dropdown-panel {
    position: absolute;
    top: 62px;
    right: 0;
    width: 520px; /* ⬅ bigger */
    min-height: 260px;
    padding: 22px 24px 20px;
    border-radius: 24px;
    /* 🔒 SOLID BACKGROUND */
    background: #ffffff;
    background-image: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 35px 90px rgba(0,0,0,.28), 0 0 0 1px rgba(148,163,184,.35);
    transition: all .35s cubic-bezier(.4,0,.2,1);
    z-index: 1300;
}

/* Dark mode */
body.dark .user-dropdown-panel {
    background: #0f172a;
    box-shadow: 0 35px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(148,163,184,.25);
}



/* =========================
   HEADER
========================= */

.user-dd-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.user-dd-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-dd-name {
    font-size: 18px;
    font-weight: 700;
}

.user-dd-contact {
    display: block;
    font-size: 14px;
    opacity: .7;
}

.user-dd-status {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: #22c55e;
}

/* =========================
   INFO GRID
========================= */

.user-dd-info {
    display: grid;
    grid-template-columns: 120px 1fr;
    row-gap: 8px;
    column-gap: 12px;
    font-size: 14px;
    margin: 18px 0;
}

    .user-dd-info span {
        opacity: .65;
    }

    .user-dd-info strong {
        font-weight: 600;
    }

/* =========================
   ACTION BUTTONS (HORIZONTAL)
========================= */

.user-dd-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.user-dd-btn {
    height: 46px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s ease;
}

    /* Primary */
    .user-dd-btn.primary {
        background: linear-gradient(135deg,var(--primary),var(--primary-soft));
        color: #fff;
        box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 45%, transparent);
    }

    /* Secondary */
    .user-dd-btn.secondary {
        background: rgba(148,163,184,.18);
        color: inherit;
    }

    /* Danger */
    .user-dd-btn.danger {
        background: rgba(239,68,68,.14);
        color: #ef4444;
    }

    /* Hover */
    .user-dd-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(0,0,0,.25);
    }


/* ===============================
   HERO THEME CONTEXT
================================ */

.wh-hero {
    --hero-accent: #f97316; /* orange */
    --hero-accent-soft: #fb923c;
    --hero-accent-dark: #c2410c;
}

/* ===============================
   HERO BUTTONS (SYNCED)
================================ */

.wh-btn-primary {
    background: linear-gradient( 135deg, var(--hero-accent), var(--hero-accent-dark) );
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 0 28px color-mix(in srgb, var(--hero-accent) 55%, transparent);
}

    .wh-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 42px color-mix(in srgb, var(--hero-accent) 75%, transparent);
    }

.wh-btn-secondary {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
}

    .wh-btn-secondary:hover {
        background: rgba(255,255,255,0.12);
        border-color: var(--hero-accent);
    }


.wh-hero {
    --hero-accent: var(--primary);
    --hero-accent-dark: color-mix(in srgb, var(--primary) 70%, #000);
}


/*<!-- =====================================================
✅ ENHANCEMENT: HAMBURGER + TABLET/MOBILE DRAWER
- DOES NOT change your desktop header layout
- Only activates <= 1024px
====================================================== -->*/
/* Show hamburger only on tablet/mobile */
.hamburger-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148,163,184,0.35);
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    transition: transform .15s ease, box-shadow .25s ease, background .25s ease;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-btn:hover {
    transform: translateY(-1px);
}

.hamburger-btn span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 3px;
    border-radius: 4px;
    background: var(--text-color, #0f172a);
    transition: transform .35s ease, top .35s ease, opacity .25s ease;
}

    .hamburger-btn span:nth-child(1) {
        top: 14px;
    }

    .hamburger-btn span:nth-child(2) {
        top: 21px;
    }

    .hamburger-btn span:nth-child(3) {
        top: 28px;
    }

/* Animate into X when drawer open */
body.drawer-open .hamburger-btn span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

body.drawer-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
}

body.drawer-open .hamburger-btn span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

body.drawer-open .mobile-drawer {
    transform: translateX(0);
}

body.drawer-open .mobile-drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

.drawer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px;
    border-bottom: 1px solid rgba(148,163,184,0.30);
    font-weight: 900;
}

.drawer-close {
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.30);
    background: rgba(255,255,255,0.06);
    cursor: pointer;
    font-size: 18px;
    color: inherit;
    transition: .25s ease;
}

    .drawer-close:hover {
        transform: translateY(-1px);
    }

.drawer-nav {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

    .drawer-nav a {
        padding: 12px 14px;
        border-radius: 14px;
        text-decoration: none;
        color: inherit;
        font-weight: 800;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: .25s ease;
        border: 1px solid rgba(148,163,184,0.18);
        background: rgba(255,255,255,0.04);
    }

        .drawer-nav a:hover {
            transform: translateY(-1px);
            border-color: rgba(148,163,184,0.35);
        }

        .drawer-nav a.active {
            border-color: color-mix(in srgb, var(--primary) 45%, transparent);
            background: color-mix(in srgb, var(--primary) 14%, transparent);
            box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 25%, transparent), 0 10px 26px color-mix(in srgb, var(--primary) 20%, transparent);
        }


/* ================= HEADER SEARCH BUTTON ================= */

.header-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--text);
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}

    /* Glow hover */
    .header-search-btn:hover {
        background: color-mix(in srgb, var(--primary) 18%, transparent);
        box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent), 0 8px 22px color-mix(in srgb, var(--primary) 35%, transparent);
        transform: translateY(-1px);
    }

    /* Click feedback */
    .header-search-btn:active {
        transform: scale(.96);
    }

    /* Icon */
    .header-search-btn .search-icon {
        font-size: 18px;
        line-height: 1;
    }

    /* Text label */
    .header-search-btn .search-text {
        white-space: nowrap;
    }

