:root {
    --bg:      #FFF9F2;
    --ink:     #3C2415;
    --gold:    #C8853E;
    --honey:   #E8A850;
    --paper:   #F5EDE3;
    --jam:     #B84444;
    --vanilla: #FDF3E7;
    --soft:    #E8D9C6;
    --mocha:   #5C3D2E;
    --font-display: "Cormorant Garamond", serif;
    --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.scroll-progress{position:fixed;top:0;left:0;height:3px;background:linear-gradient(90deg,var(--gold),var(--honey),var(--gold));background-size:200% 100%;z-index:200;transition:width 0.1s linear;border-radius:0 2px 2px 0;animation:progressShimmer 2s linear infinite;}
@keyframes progressShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
html { scroll-behavior: smooth; }

body::before{content:"";position:fixed;inset:0;opacity:0.022;pointer-events:none;z-index:-1;background-image:radial-gradient(circle,var(--ink) 1px,transparent 1px);background-size:20px 20px;}
body::after{content:"";position:fixed;inset:0;opacity:0.012;pointer-events:none;z-index:-1;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:256px 256px;}
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 2rem;
    background: rgba(255,249,242,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--soft);
    transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 20px rgba(60,36,21,0.06); }
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-brand-group {
    display: flex; align-items: center; gap: 0.75rem;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 900; color: var(--ink);
    text-decoration: none; letter-spacing: -0.02em;
    display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo .logo-icon {
    width: 28px; height: 28px; border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #D4954B 0%, #C1783A 60%, #A8612E 100%);
    position: relative; flex-shrink: 0;
    box-shadow: inset 0 -2px 3px rgba(0,0,0,0.15);
}
.nav-logo .logo-icon::after {
    content: ''; position: absolute; width: 6px; height: 4px;
    background: #3C1D0E; border-radius: 40%; top: 35%; left: 30%;
    box-shadow: 8px 2px 0 #3C1D0E, 3px 8px 0 #3C1D0E;
}
.nav-logo span { color: var(--gold); }
.nav-page-chip {
    display: inline-flex; align-items: center;
    padding: 0.3rem 0.75rem; border-radius: 999px;
    background: rgba(200,133,62,0.12); color: var(--gold);
    font-family: var(--font-mono); font-size: 0.7rem;
    letter-spacing: 0.1em; text-transform: uppercase;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--ink);
    font-size: 0.875rem; font-weight: 500;
    transition: color 0.2s; letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); position: relative; }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200,133,62,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(200,133,62,0); }
}
.nav-cta {
    background: var(--gold); color: #fff !important;
    padding: 0.5rem 1.25rem; border-radius: 100px;
    font-weight: 600 !important; font-size: 0.8125rem !important;
    transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--honey); transform: translateY(-1px); }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--ink); border-radius: 2px; transition: all 0.3s;
}

/* ── MOBILE MENU ─────────────────────────── */
.mobile-menu {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,249,242,0); z-index: 99;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 2rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease, background 0.35s ease;
}
.mobile-menu.open {
    opacity: 1; pointer-events: auto;
    background: rgba(255,249,242,0.97);
}
.mobile-menu-sheet {
    width: min(92vw, 460px);
    padding: 1.4rem;
    border-radius: 1.6rem;
    background: rgba(255,249,242,0.94);
    border: 1px solid rgba(60,36,21,0.08);
    box-shadow: 0 24px 60px rgba(60,36,21,0.12);
    transform: translateX(30px); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.mobile-menu.open .mobile-menu-sheet {
    transform: translateX(0); opacity: 1;
}
.mobile-menu-kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.mobile-menu-current {
    margin-top: 0.6rem;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 0.95;
    color: var(--ink);
}
.mobile-menu-group {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}
.mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.45rem; color: var(--ink); text-decoration: none;
    font-weight: 700; transition: color 0.2s, transform 0.2s;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(60,36,21,0.06);
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu a:hover { color: var(--gold); transform: translateX(4px); }
.mobile-menu a.active { color: var(--gold); }
.mobile-menu-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
    background: var(--gold) !important;
    color: #fff !important;
}

/* ── BATCH BANNER ────────────────────────── */
.batch-banner {
    position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
    background: linear-gradient(90deg, #3C2415 0%, #5C3D2E 50%, #3C2415 100%);
    color: #FCEBD9; text-align: center; padding: 0.5rem 1rem;
    font-size: 0.8125rem; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transform: translateY(-100%); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease;
}
.batch-banner.visible { transform: translateY(0); opacity: 1; }
.batch-banner .batch-icon { display: inline-block; animation: flameFlicker 1.5s ease-in-out infinite; }
.batch-close {
    background: none; border: none; color: #9B8A78; font-size: 1.25rem;
    cursor: pointer; padding: 0 0.25rem; line-height: 1; margin-left: 0.5rem;
    transition: color 0.2s; flex-shrink: 0;
}
.batch-close:hover { color: #FCEBD9; }
/* ── BACK TO TOP ─────────────────────────── */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 150;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gold); color: #fff; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(200,133,62,0.35);
    opacity: 0; transform: translateY(20px); pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    padding: 2px;
}
.back-to-top svg { display: block; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--honey); transform: translateY(-4px) scale(1.08); box-shadow: 0 8px 28px rgba(200,133,62,0.5); }
.back-to-top:active { transform: translateY(-1px) scale(0.95); }
.back-to-top { transition: opacity 0.3s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s, box-shadow 0.25s; }

/* ── BATCH NUMBER ────────────────────────── */
.batch-banner .batch-num {
    font-family: var(--font-display);
    font-weight: 700; color: var(--honey); font-size: 0.9375rem;
}
.scroll-indicator {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    z-index: 2; animation: bounceDown 2s ease-in-out infinite;
    opacity: 0.5; transition: opacity 0.4s;
}
.scroll-indicator.faded { opacity: 0; }
.scroll-indicator svg { display: block; }

/* ── TOAST ──────────────────────────────── */
.toast { padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(120px);
    background: var(--ink); color: #fff; padding: 0.75rem 1.5rem;
    border-radius: 100px; font-weight: 500; font-size: 0.875rem;
    z-index: 200; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    display: flex; align-items: center; gap: 0.5rem;
}
.toast.visible { transform: translateX(-50%) translateY(0); }

/* ── CONFIRM DIALOG ──────────────────────── */
.confirm-backdrop {
    position: fixed; inset: 0; z-index: 600;
    background: rgba(28,21,16,0.5); backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    animation: confirmFadeIn 0.25s ease both;
}
.confirm-backdrop.closing { animation: confirmFadeOut 0.2s ease forwards; }
@keyframes confirmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes confirmFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}
.confirm-dialog {
    background: var(--bg); border-radius: 1.25rem;
    padding: 2rem;
    max-width: 360px; width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(200,133,62,0.15);
    text-align: center;
    animation: confirmSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.confirm-dialog.closing { animation: confirmSlideOut 0.2s ease forwards; }
@keyframes confirmSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes confirmSlideOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(12px) scale(0.96); }
}
.confirm-message {
    font-family: var(--font-display);
    font-size: 1.25rem; font-weight: 700;
    color: var(--ink); line-height: 1.4;
    margin-bottom: 1.75rem;
}
.confirm-actions {
    display: flex; gap: 0.75rem; justify-content: center;
}
.confirm-cancel, .confirm-ok {
    padding: 0.75rem 1.5rem; border-radius: 100px;
    font-size: 0.875rem; font-weight: 600;
    cursor: pointer; border: none; font-family: var(--font-body);
    transition: all 0.2s;
}
.confirm-cancel {
    background: transparent; color: var(--ink);
    border: 1.5px solid var(--soft);
}
.confirm-cancel:hover { border-color: var(--ink); }
.confirm-ok {
    background: var(--gold); color: #fff;
}
.confirm-ok:hover { background: var(--honey); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,133,62,0.3); }
.confirm-ok:active { transform: translateY(0) scale(0.97); }
.toast-icon { font-size: 1rem; flex-shrink: 0; }

/* ── CART BADGE ───────────────────────────── */
.cart-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold); color: #fff; border-radius: 50%;
    min-width: 20px; height: 20px; padding: 0 5px;
    font-size: 0.6875rem; font-weight: 700; line-height: 1;
    margin-left: 0.25rem; vertical-align: middle;
    animation: slotFill 0.3s ease;
}
