/* ============================================================
   GLOBAL.CSS — Aura & Earth
   Scope: Variables, Reset, Typography, Navbar, Footer,
          Mobile Menu, Search, Dark Mode globals, Utilities
   ============================================================ */

/* ============================================================
   1. FONT IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');


/* ============================================================
   2. CSS VARIABLES
   ============================================================ */
:root {
    --text-main: #2d241e;
    --accent: #7a5c85;
    --accent-light: #b393bd;
    --bg-body: #fdfaf6;
    --bg-luxe: #fdfaf6;
    --white: #ffffff;
    --transition: all 0.3s ease;
}


/* ============================================================
   3. RESET & BOX MODEL
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    padding-top: 80px;
    /* Offset for fixed navbar */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* ============================================================
   4. NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* Unscrolled: fully opaque — no glass yet */
    background: rgba(255, 255, 255, 1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 2000;
    box-shadow: none;
    border-bottom: 1px solid transparent;
    /* Buttery smooth transition across ALL changing properties */
    transition:
        background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        backdrop-filter 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        -webkit-backdrop-filter 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ── Glassmorphism scrolled state ── */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

/* Logo */
.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    z-index: 2002;
}

/* Center links */
.nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-center a {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #444;
}

.nav-center a:hover {
    color: var(--accent);
}

/* Right side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2002;
}

/* Nav icons */
.nav-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-link,
.icon-btn {
    font-size: 1.2rem;
    color: #333;
    position: relative;
}

.icon-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Cart / Wishlist count badge */
.count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    /* shown via JS when count > 0 */
    justify-content: center;
    align-items: center;
    font-weight: 700;
    border: 2px solid var(--white);
}

/* Hamburger */
.hamburger {
    display: none;
    font-size: 1.5rem;
    color: #333;
}


/* ============================================================
   5. DROPDOWN (Desktop Categories)
   ============================================================ */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-content {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 200px;
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    border: 1px solid #eee;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 9999;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 18px;
    color: #444;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-content a i {
    margin-right: 12px;
    width: 15px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #fafafa;
    color: var(--accent);
    padding-left: 22px;
}

.dropdown-content a:hover i {
    color: var(--accent);
}

/* Dropdown scrollbar */
.dropdown-content::-webkit-scrollbar {
    width: 4px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: #f9f9f9;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 10px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}


/* ============================================================
   6. SEARCH BOX (Expandable)
   ============================================================ */
.search-box-container {
    background: #f8f8f8;
    height: 40px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    position: relative;
    width: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
}

.search-box-container:hover,
.search-box-container:focus-within {
    width: 280px;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    padding-left: 20px;
    font-size: 0.85rem;
    outline: none;
    color: #333;
    opacity: 0;
    transition: 0.3s;
}

.search-box-container:hover .search-input,
.search-box-container:focus-within .search-input {
    opacity: 1;
}

.search-btn {
    position: absolute;
    right: 5px;
    width: 32px;
    height: 32px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search results dropdown */
.search-results {
    position: absolute;
    top: 120%;
    right: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: var(--bg-luxe);
}

.search-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    background: #f9f9f9;
}

.search-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.search-info span {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 10px;
}


/* ============================================================
   7. MOBILE MENU DRAWER
   ============================================================ */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a,
.mobile-dropbtn {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #333;
}

.mobile-dropdown-content {
    display: none;
    padding-left: 20px;
    background: #f9f9f9;
}

.mobile-dropdown-content.active,
.mobile-dropdown-content.open {
    display: block;
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.main-footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 80px 8% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: #aaa;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.85rem;
    text-align: center;
}


/* ============================================================
   9. FLOATING BACK TO TOP BUTTON (Mobile only)
   ============================================================ */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.4rem;
    box-shadow: 0 6px 20px rgba(122, 92, 133, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background: #5a3e63;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(122, 92, 133, 0.6);
}

@media (min-width: 768px) {
    .back-to-top-btn {
        display: none;
    }
}


/* ============================================================
   10. DARK MODE — GLOBAL OVERRIDES
   ============================================================ */
body.dark-theme {
    --bg-body: #1a1410;
    --text-main: #f0ece6;
    --bg-luxe: #211a15;
    --white: #1e1e1e;
}

body.dark-theme .navbar {
    /* Unscrolled dark: fully opaque dark surface, no blur */
    background: rgba(22, 18, 14, 1);
    box-shadow: none;
    border-bottom: 1px solid transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.dark-theme .navbar.scrolled {
    background: rgba(18, 14, 10, 0.78);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body.dark-theme .nav-logo,
body.dark-theme .nav-center a,
body.dark-theme .icon-link,
body.dark-theme .icon-btn,
body.dark-theme .hamburger {
    color: #ffffff !important;
}

body.dark-theme .search-box-container {
    background: #2a2a2a;
}

body.dark-theme .search-box-container:focus-within {
    background: #333;
}

body.dark-theme .search-input {
    color: var(--white);
}

body.dark-theme .dropdown-content {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-theme .dropdown-content a {
    color: #ccc;
    border-bottom-color: #333;
}

body.dark-theme .dropdown-content a:hover {
    background: #252525;
    color: var(--accent);
}

body.dark-theme .dropdown-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

body.dark-theme .dropdown-content::-webkit-scrollbar-thumb {
    background: #444;
}

body.dark-theme .mobile-menu {
    background: #1e1e1e;
}

body.dark-theme .mobile-menu a,
body.dark-theme .mobile-dropbtn {
    color: #ccc;
    border-bottom-color: #333;
}

body.dark-theme .mobile-dropdown-content {
    background: #1a1a1a;
}


/* ============================================================
   11. RESPONSIVE — GLOBAL BREAKPOINTS
   ============================================================ */
@media (max-width: 992px) {

    .nav-center,
    .search-box-container {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-right {
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Hide desktop dropdown on tablet/mobile */
    .dropdown-content {
        display: none;
    }
}

@media (min-width: 1400px) {

    .hero-container,
    .section-container {
        max-width: 1440px;
        padding: 0 80px;
        margin: 0 auto;
    }
}

/* ── Premium Text Selection ── */
::selection {
    background: rgba(122, 92, 133, 0.22);
    color: #1a1a2e;
}

::-moz-selection {
    background: rgba(122, 92, 133, 0.22);
    color: #1a1a2e;
}

/* ── Luxury Scrollbar (Webkit) ── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a07cb5, #7a5c85);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b590c8, #8a6a95);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #7a5c85 transparent;
}

/* ── Floating WhatsApp Button ── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    padding: 13px 18px 13px 14px;
    border-radius: 50px;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
    font-size: 0.85rem;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, padding 0.3s ease;
    overflow: hidden;
    max-width: 52px;
    /* collapsed — shows only icon */
}

.whatsapp-float:hover {
    max-width: 180px;
    /* expands to show label */
    padding: 13px 20px 13px 14px;
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(37, 211, 102, 0.5);
}

.whatsapp-float-icon {
    font-size: 1.45rem;
    flex-shrink: 0;
    animation: waPulse 2.4s ease-in-out infinite;
}

.whatsapp-float-label {
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
    font-size: 0.82rem;
}

.whatsapp-float:hover .whatsapp-float-label {
    opacity: 1;
    transform: translateX(0);
}

@keyframes waPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

/* Hide on mobile so it doesn't clash with back-to-top */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 80px;
        left: 16px;
    }
}

/* ── Scroll Reveal Base ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children inside a revealed parent */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.visible>*:nth-child(1) {
    transition-delay: 0ms;
    opacity: 1;
    transform: none;
}

.reveal-stagger.visible>*:nth-child(2) {
    transition-delay: 80ms;
    opacity: 1;
    transform: none;
}

.reveal-stagger.visible>*:nth-child(3) {
    transition-delay: 160ms;
    opacity: 1;
    transform: none;
}

.reveal-stagger.visible>*:nth-child(4) {
    transition-delay: 240ms;
    opacity: 1;
    transform: none;
}

.reveal-stagger.visible>*:nth-child(5) {
    transition-delay: 320ms;
    opacity: 1;
    transform: none;
}

.reveal-stagger.visible>*:nth-child(6) {
    transition-delay: 400ms;
    opacity: 1;
    transform: none;
}

.reveal-stagger.visible>*:nth-child(n+7) {
    transition-delay: 480ms;
    opacity: 1;
    transform: none;
}

/* ============================================================
   AURA & EARTH — Sale UI Styles
   Drop this block into your main frontend stylesheet.
   ============================================================ */


/* ── SALE Badge (over product image) ──────────────────────── */
.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;

    /* Elegant deep crimson — refined, not garish */
    background: linear-gradient(135deg, #8b1a1a 0%, #b22222 100%);
    color: #f5e6d0;
    /* warm ivory text */

    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    padding: 4px 10px;
    border-radius: 3px;

    /* Subtle gold shimmer border */
    border: 1px solid rgba(212, 175, 100, 0.45);

    /* Depth */
    box-shadow:
        0 2px 8px rgba(139, 26, 26, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    /* Prevents badge from stretching the image-box layout */
    pointer-events: none;
    user-select: none;
    white-space: nowrap;

    /* Entrance animation — subtle, not distracting */
    animation: sale-badge-in 0.4s ease both;
}

@keyframes sale-badge-in {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ── Price Block — sale state ──────────────────────────────── */
.price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

/* Struck-through original price — muted, clearly secondary */
.price-original {
    font-size: 0.82rem;
    color: var(--text-muted, #a0918a);
    text-decoration: line-through;
    text-decoration-color: rgba(160, 145, 138, 0.75);
    text-decoration-thickness: 1.5px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Highlighted sale price — warm muted gold, feels premium */
.price-sale {
    font-size: 1.05rem;
    font-weight: 700;
    color: #b5863a;
    /* antique gold */

    /* Subtle glow so it reads as "highlighted" without being loud */
    text-shadow: 0 0 12px rgba(181, 134, 58, 0.25);
    letter-spacing: 0.01em;
}

/* % OFF badge — inline, whisper-quiet pill */
.price-save-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(139, 26, 26, 0.10);
    color: #a02020;
    border: 1px solid rgba(139, 26, 26, 0.20);
    border-radius: 3px;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.60rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 2px 7px;
    white-space: nowrap;
    line-height: 1.4;
}


/* ── Dark theme overrides ──────────────────────────────────── */
body.dark-theme .sale-badge {
    background: linear-gradient(135deg, #6b0f0f 0%, #942020 100%);
    border-color: rgba(212, 175, 100, 0.30);
}

body.dark-theme .price-original {
    color: var(--text-muted, #7a6e68);
}

body.dark-theme .price-sale {
    color: #d4af6e;
    /* slightly brighter gold for dark bg */
    text-shadow: 0 0 14px rgba(212, 175, 110, 0.30);
}

body.dark-theme .price-save-badge {
    background: rgba(139, 26, 26, 0.22);
    color: #d46060;
    border-color: rgba(180, 50, 50, 0.30);
}

/* ============================================================
   FEATURE 3: CART ICON AURA PULSE
   WHERE: Paste at the bottom of css/global.css
   ─────────────────────────────────────────────────────────
   Design intent:
   • A single expanding ring radiates from the cart icon,
     runs for exactly 1200ms, then disappears.
   • It is triggered by adding class .aura-pulse to the
     <a href="cart-checkout.html"> element via JS.
   • The ring is a ::before pseudo-element so it doesn't
     affect layout. It expands from scale(0.6) → scale(2.2),
     fading from 0.55 opacity to 0, creating the pulse feel.
   • The icon link already has position:relative from global.css
     so the pseudo-element is positioned correctly.
   • After 1200ms the JS removes the class so the animation
     can re-trigger on the next add-to-cart.
   ============================================================ */

@keyframes aura-ring-expand {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.55;
    }

    60% {
        opacity: 0.22;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.4);
        opacity: 0;
    }
}

/*
   The ring pseudo-element. Centered on the icon using
   absolute positioning + 50%/50% + translate(-50%,-50%).
   width/height match the icon visual size (28px × 28px
   after accounting for font-size:1.2rem ≈ 19px + padding).
   We use a slightly larger base (32px) for a comfortable ring.
*/
a[href="cart-checkout.html"].aura-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(122, 92, 133, 0.70);
    /* thin ring, brand accent colour */
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    animation: aura-ring-expand 1200ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    z-index: 10;
}

/* ── Dark-mode: slightly brighter ring ───────────────────── */
body.dark-theme a[href="cart-checkout.html"].aura-pulse::before {
    border-color: rgba(179, 140, 190, 0.75);
}

/* ── Reduced-motion: skip the animation entirely ─────────── */
@media (prefers-reduced-motion: reduce) {
    a[href="cart-checkout.html"].aura-pulse::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 50px 5% 30px;
    }

    .footer-brand h3 {
        font-size: 1.4rem;
    }

    .footer-bottom {
        font-size: 0.78rem;
    }
}

/* ============================================================
   THE AURA CIRCLE — VIP Loyalty Drawer
   css/aura-circle.css
   Designed to match the Aura & Earth design system.
   ============================================================ */

/* ── 1. Floating Trigger Button ───────────────────────────── */
.aura-circle-trigger {
    position: fixed;
    bottom: 28px;
    left: 24px;
    z-index: 1800;

    display: flex;
    align-items: center;
    gap: 7px;

    background: linear-gradient(135deg, #3d2545 0%, #7a5c85 100%);
    color: #f5eeff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;

    padding: 11px 18px 11px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;

    box-shadow:
        0 6px 24px rgba(122, 92, 133, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;

    animation: acTriggerFloat 3.2s ease-in-out infinite;
}

.aura-circle-trigger:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow:
        0 12px 36px rgba(122, 92, 133, 0.60),
        0 4px 10px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    animation-play-state: paused;
}

.aura-circle-trigger__icon {
    font-size: 1rem;
    line-height: 1;
    animation: acSparkle 2.4s ease-in-out infinite;
}

.aura-circle-trigger__label {
    line-height: 1;
}

@keyframes acTriggerFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes acSparkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.18) rotate(20deg);
    }
}


/* ── 2. Backdrop ──────────────────────────────────────────── */
.aura-circle-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2900;
    background: rgba(30, 18, 35, 0.38);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.38s ease, visibility 0.38s ease;
}

.aura-circle-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}


/* ── 3. Drawer Shell ──────────────────────────────────────── */
.aura-circle-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    max-width: 92vw;
    height: 100dvh;
    z-index: 3000;

    /* Glassmorphism */
    background: rgba(253, 250, 246, 0.72);
    backdrop-filter: blur(28px) saturate(170%);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    border-right: 1px solid rgba(255, 255, 255, 0.55);

    box-shadow:
        4px 0 40px rgba(61, 37, 69, 0.18),
        1px 0 0 rgba(122, 92, 133, 0.10);

    display: flex;
    flex-direction: column;
    padding: 28px 26px 32px;
    overflow-y: auto;
    gap: 22px;

    /* Slide-in from left */
    transform: translateX(-110%);
    transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.aura-circle-drawer.is-open {
    transform: translateX(0);
}

/* Scrollbar */
.aura-circle-drawer::-webkit-scrollbar {
    width: 4px;
}

.aura-circle-drawer::-webkit-scrollbar-track {
    background: transparent;
}

.aura-circle-drawer::-webkit-scrollbar-thumb {
    background: rgba(122, 92, 133, 0.28);
    border-radius: 10px;
}


/* ── 4. Header ────────────────────────────────────────────── */
.acd-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-shrink: 0;
}

.acd-header__eyebrow {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--accent-light, #b393bd);
    margin-bottom: 4px;
}

.acd-header__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text-main, #2d241e);
    letter-spacing: -0.3px;
    line-height: 1.15;
}

.acd-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #888;
    background: rgba(0, 0, 0, 0.055);
    border: 1px solid rgba(0, 0, 0, 0.07);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 3px;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.acd-close:hover {
    background: rgba(122, 92, 133, 0.12);
    color: var(--accent, #7a5c85);
    transform: rotate(90deg);
}


/* ── 5. Current Tier ──────────────────────────────────────── */
.acd-tier {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(122, 92, 133, 0.13) 0%, rgba(179, 147, 189, 0.10) 100%);
    border: 1px solid rgba(122, 92, 133, 0.18);
    border-radius: 14px;
    padding: 16px 18px;
    flex-shrink: 0;
}

.acd-tier__icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(122, 92, 133, 0.35));
}

.acd-tier__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.acd-tier__label {
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-light, #b393bd);
}

.acd-tier__name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main, #2d241e);
    font-style: italic;
}

.acd-tier__pts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.acd-tier__pts-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--accent, #7a5c85);
    line-height: 1;
}

.acd-tier__pts-unit {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light, #b393bd);
}


/* ── 6. Progress Bar ──────────────────────────────────────── */
.acd-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.acd-progress__labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 500;
    color: #888;
}

.acd-progress__next {
    color: var(--accent, #7a5c85);
    font-weight: 600;
}

.acd-progress__track {
    height: 7px;
    background: rgba(122, 92, 133, 0.12);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(122, 92, 133, 0.12);
}

.acd-progress__fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, #b393bd 0%, #7a5c85 60%, #5c3f6a 100%);
    box-shadow: 0 0 8px rgba(122, 92, 133, 0.45);
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.acd-progress__caption {
    font-size: 0.68rem;
    color: #999;
    text-align: center;
    letter-spacing: 0.02em;
}


/* ── 7. Section Divider ───────────────────────────────────── */
.acd-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.acd-divider::before,
.acd-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(122, 92, 133, 0.18);
}

.acd-divider span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-light, #b393bd);
    white-space: nowrap;
}


/* ── 8. Actions List ──────────────────────────────────────── */
.acd-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.acd-action {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(122, 92, 133, 0.12);
    border-radius: 12px;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.acd-action:hover {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(122, 92, 133, 0.28);
    transform: translateX(3px);
}

/* Completed state */
.acd-action.is-done {
    opacity: 0.52;
    pointer-events: none;
}

.acd-action.is-done .acd-action__btn {
    background: rgba(122, 92, 133, 0.10);
    color: #aaa;
    border-color: transparent;
}

.acd-action__icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(122, 92, 133, 0.15), rgba(179, 147, 189, 0.15));
    border: 1px solid rgba(122, 92, 133, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--accent, #7a5c85);
    flex-shrink: 0;
}

.acd-action__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.acd-action__name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main, #2d241e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acd-action__desc {
    font-size: 0.68rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acd-action__btn {
    flex-shrink: 0;
    padding: 6px 11px;
    background: linear-gradient(135deg, rgba(122, 92, 133, 0.12), rgba(179, 147, 189, 0.12));
    border: 1px solid rgba(122, 92, 133, 0.24);
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent, #7a5c85);
    cursor: pointer;
    transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
}

.acd-action__btn:hover {
    background: var(--accent, #7a5c85);
    color: #fff;
    border-color: var(--accent, #7a5c85);
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(122, 92, 133, 0.38);
}

/* Points pop animation */
@keyframes acPointsPop {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.28);
    }

    100% {
        transform: scale(1);
    }
}

.aura-pts-pop {
    animation: acPointsPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ── 9. Unlock Teaser ─────────────────────────────────────── */
.acd-unlock-teaser {
    margin-top: auto;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(61, 37, 69, 0.07), rgba(122, 92, 133, 0.06));
    border: 1px solid rgba(122, 92, 133, 0.14);
    border-radius: 12px;
    flex-shrink: 0;
}

.acd-unlock-teaser__text {
    font-size: 0.74rem;
    color: #777;
    line-height: 1.55;
    text-align: center;
}

.acd-unlock-teaser__text strong {
    color: var(--accent, #7a5c85);
}


/* ── 10. Dark Mode ────────────────────────────────────────── */
body.dark-theme .aura-circle-drawer {
    background: rgba(30, 18, 40, 0.82);
    border-right-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .acd-header__title,
body.dark-theme .acd-tier__name,
body.dark-theme .acd-action__name,
body.dark-theme .acd-tier__pts-num {
    color: #f0eaf5;
}

body.dark-theme .acd-action {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(179, 147, 189, 0.14);
}

body.dark-theme .acd-action:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(179, 147, 189, 0.28);
}

body.dark-theme .acd-tier {
    background: linear-gradient(135deg, rgba(122, 92, 133, 0.22) 0%, rgba(61, 37, 69, 0.22) 100%);
    border-color: rgba(179, 147, 189, 0.18);
}

body.dark-theme .acd-unlock-teaser {
    background: rgba(122, 92, 133, 0.10);
    border-color: rgba(179, 147, 189, 0.14);
}

body.dark-theme .acd-unlock-teaser__text {
    color: #aa9ab8;
}

body.dark-theme .acd-close {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.10);
    color: #aaa;
}


/* ── 11. Mobile ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .aura-circle-trigger {
        bottom: 80px;
        /* clear whatsapp float */
        left: 16px;
    }

    .aura-circle-drawer {
        width: 88vw;
    }
}

/* ════════════════════════════════════════════════════════════════
   CART UI — CRITICAL LAYOUT FIX
   Takes the cart overlay + panel out of document flow entirely.
   Works for JS-injected panels that use any of these common
   class names. Add/adjust the selector to match your JS output.
   ════════════════════════════════════════════════════════════════ */

/* ── 1. Full-screen backdrop / overlay ── */
.cart-overlay,
.cart-backdrop,
#cartOverlay,
#cartBackdrop {
    position: fixed !important;
    inset: 0;
    /* top/right/bottom/left: 0 */
    z-index: 4000;
    background: rgba(30, 18, 35, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cart-overlay.is-open,
.cart-overlay.active,
.cart-overlay.open,
.cart-backdrop.is-open,
.cart-backdrop.active,
#cartOverlay.is-open,
#cartOverlay.active,
#cartBackdrop.is-open,
#cartBackdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ── 2. Cart side-drawer panel ── */
.cart-sidebar,
.cart-panel,
.cart-drawer,
.mini-cart,
#cartSidebar,
#cartPanel,
#cartDrawer,
#miniCart {
    position: fixed !important;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 92vw;
    height: 100dvh;
    /* full viewport height, respects mobile bars */
    z-index: 4100;
    /* above overlay */

    background: var(--white, #ffffff);
    box-shadow: -8px 0 48px rgba(45, 36, 30, 0.18);

    display: flex;
    flex-direction: column;
    overflow-y: auto;

    /* Slide off-screen to the right when closed */
    transform: translateX(110%);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

/* Active / open state — slide into view */
.cart-sidebar.is-open,
.cart-sidebar.active,
.cart-sidebar.open,
.cart-panel.is-open,
.cart-panel.active,
.cart-drawer.is-open,
.cart-drawer.active,
.mini-cart.is-open,
.mini-cart.active,
#cartSidebar.is-open,
#cartSidebar.active,
#cartPanel.is-open,
#cartPanel.active,
#cartDrawer.is-open,
#cartDrawer.active,
#miniCart.is-open,
#miniCart.active {
    transform: translateX(0);
}

/* ==================== MINI CART DRAWER (Global Fix) ==================== */
.mini-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mini-cart-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mini-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9991;
    width: min(420px, 100vw);
    height: 100dvh;
    background: #fff;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mini-cart-drawer.is-open {
    transform: translateX(0);
}

/* Dark mode support (agar future mein add kare to) */
@media (prefers-color-scheme: dark) {
    .mini-cart-drawer {
        background: #1a1612;
        color: #f5f0e6;
    }
}

.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.mini-cart-footer {
    border-top: 1px solid #eee;
    padding: 1.25rem;
    background: #fff;
}

/* Ensure nothing leaks below footer */
footer {
    position: relative;
    z-index: 10;
}

/* ── 3. Safety net — prevent <body> from scrolling while cart is open ── */
body.cart-open {
    overflow: hidden;
}

/* ================================================================
   GLOBAL MOBILE FIX — Append to bottom of global.css
   ================================================================ */

/* ── Root: guarantee no horizontal scroll on any page ── */
html {
    overflow-x: hidden;
    /* box-sizing already set globally via *, but be explicit on root */
    box-sizing: border-box;
}

/* ── Already has overflow-x: hidden but body needs max-width guard too ── */
body {
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 768px) {

    /* ── Navbar: collapse center links, give icons room ── */
    .nav-center {
        display: none;
        /* hamburger replaces it at this breakpoint */
    }

    .navbar {
        padding: 0 4%;
    }

    /* ── Footer grid: 2 columns on tablet ── */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {

    /* ── Footer: single column on phone ── */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-social .social-icons {
        justify-content: center;
    }

    /* ── Dropdown menu: full width on mobile so it never clips ── */
    .dropdown-content {
        left: 0;
        right: 0;
        transform: none;
        min-width: 100%;
    }

    /* ── Search box: cap width so it doesn't overflow nav ── */
    .search-box-container:hover,
    .search-box-container:focus-within {
        width: min(240px, calc(100vw - 120px));
    }

    /* ── Search results dropdown: constrained to viewport ── */
    .search-results {
        width: min(300px, calc(100vw - 32px));
        right: 0;
    }

    /* ── WhatsApp float: tighter on very small phones ── */
    .whatsapp-float {
        bottom: 72px;
        /* clear back-to-top button */
        left: 12px;
    }

    /* ── Back to top: move left so it doesn't overlap WhatsApp ── */
    .back-to-top-btn {
        right: 12px;
        bottom: 12px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* ============================================================
   PASTE THIS AT THE BOTTOM OF css/global.css
   Mobile fixes for: Navbar, Hamburger, Mobile Menu, Footer
   Breakpoints used: 992px (tablet), 768px (phone landscape),
                     480px (phone portrait)
   ============================================================ */


/* ── NAVBAR — ensure hamburger is always tappable ─────────── */
@media (max-width: 992px) {

    /* Already hides .nav-center and shows .hamburger in your
       existing code, but we need to make sure the icon-links
       (cart + wishlist) keep enough spacing on smaller screens. */

    .nav-right {
        gap: 14px;
    }

    /* Make sure the count badge doesn't clip */
    .icon-link {
        padding: 4px;
    }

    /* Hamburger tap target — 44×44px minimum for accessibility */
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
        cursor: pointer;
        /* Shift the button so its visual icon still aligns right */
        margin-right: -10px;
    }
}


/* ── MOBILE MENU DRAWER — fill width, legible links ───────── */
@media (max-width: 992px) {

    .mobile-menu {
        /* Ensure the drawer is truly full-width */
        left: 0;
        right: 0;
        width: 100%;
        /* Stack links with clear separator lines */
        padding: 0 5% 16px;
        /* Add a subtle drop-shadow so the drawer lifts over content */
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    }

    .mobile-menu a,
    .mobile-dropbtn {
        /* Larger tap targets — 48px minimum height */
        padding: 16px 0;
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    .mobile-dropdown-content a {
        padding: 12px 0;
        font-size: 0.88rem;
        color: #666;
        border-bottom: 1px solid #f0f0f0;
        display: block;
    }

    .mobile-dropdown-content a:last-child {
        border-bottom: none;
    }
}


/* ── NAVBAR LOGO — scale down on very small phones ─────────── */
@media (max-width: 380px) {

    .nav-logo {
        font-size: 1.45rem;
    }

    /* Tighten icon spacing so logo + icons fit in 100vw */
    .nav-right {
        gap: 10px;
    }

    .icon-link,
    .icon-btn {
        font-size: 1.1rem;
    }

    /* Navbar padding: match the tighter 4% set in global */
    .navbar {
        padding: 0 4%;
    }
}


/* ── FOOTER — already has 1-col at 480px, but needs polish ─── */
@media (max-width: 768px) {

    .main-footer {
        padding: 60px 6% 36px;
    }

    /* 2-column on tablet — already set, but enforce gap */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand h3 {
        font-size: 1.55rem;
    }
}

@media (max-width: 480px) {

    .main-footer {
        padding: 48px 5% 28px;
    }

    /* Already 1-col below 480 in your code, these sharpen it */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        margin-top: 28px;
        font-size: 0.78rem;
        line-height: 1.6;
    }
}


/* ── SEARCH BOX — prevent overflow in nav on small screens ─── */
@media (max-width: 480px) {

    /* Search is hidden at 992px via your existing rule, but
       if it ever shows at smaller sizes ensure it never clips */
    .search-box-container:hover,
    .search-box-container:focus-within {
        width: min(220px, calc(100vw - 140px));
    }

    .search-results {
        width: min(280px, calc(100vw - 24px));
        right: -10px;
    }
}
