/* =========================================================
   RaveDragons - Webshop styles
   Dark gothic dragon aesthetic, deep red glow accents.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap');

:root {
    --bg: #0a0a0a;
    --bg-soft: #0e0a0c;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.16);
    --border-strong: rgba(255, 220, 220, 0.32);
    --text: #f5eeef;
    --text-dim: rgba(245, 238, 239, 0.72);
    --text-faint: rgba(245, 238, 239, 0.45);
    --red: #b00012;
    --red-bright: #d62a3a;
    --red-glow: rgba(176, 0, 18, 0.55);
    --red-soft: rgba(176, 0, 18, 0.16);
    --accent: var(--red-glow);
    --accent-soft: var(--red-soft);
    --danger: #ff9b9b;

    --font-display: 'Cinzel', 'EB Garamond', Georgia, serif;
    /** Fixed header + iPhone notch / Dynamic Island (`viewport-fit=cover`). */
    --site-chrome-top: calc(72px + env(safe-area-inset-top, 0px));
}

* { box-sizing: border-box; }

*:where(html, body) {
    /*
     * Mobile Safari: rubber-band overscroll outside scroll areas shows `html` paint.
     * Match storefront burgundy so pull-down/up does not flash flat black.
     * `overscroll-behavior` reduces elastic overscroll / reload affordance where supported.
     */
    overscroll-behavior: none;
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    min-height: 100dvh;
    color-scheme: dark;
    background-color: #140809;
    background-image:
        radial-gradient(ellipse 120% 70% at 50% 0%, rgba(176, 0, 18, 0.1), transparent 55%),
        radial-gradient(ellipse 100% 50% at 50% 100%, rgba(60, 8, 12, 0.45), transparent 55%);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font-family: 'EB Garamond', Georgia, serif;
    line-height: 1.55;
}

body.has-site-chrome {
    padding-top: var(--site-chrome-top);
}

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }

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

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.4rem;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.82rem;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(180deg, rgba(176,0,18,0.55), rgba(50,0,0,0.7));
    border-color: rgba(255,210,210,0.4);
    box-shadow: 0 0 28px rgba(176,0,18,0.35);
}
.btn-primary:hover {
    background: linear-gradient(180deg, rgba(214,42,58,0.6), rgba(70,0,0,0.85));
    box-shadow: 0 0 42px rgba(214,42,58,0.45);
}
.btn-secondary {
    border-color: var(--border);
    background: rgba(0,0,0,0.38);
    color: var(--text);
    letter-spacing: 0.16em;
    box-shadow: none;
}
.btn-secondary:hover {
    border-color: rgba(255, 155, 155, 0.45);
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}
.btn-ghost { border-color: var(--border); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    height: var(--site-chrome-top);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,10,10,0.78);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-nav {
    width: min(1100px, 92vw);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}
.site-nav .brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    letter-spacing: 4px;
    font-size: 1rem;
    text-transform: uppercase;
}
.site-nav .brand img { width: 28px; height: 28px; }
.site-nav .links {
    display: flex;
    gap: 1.6rem;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav .links a {
    color: var(--text-dim);
    letter-spacing: 0.28em;
    font-size: 0.82rem;
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
}
.site-nav .links a small {
    font-family: 'EB Garamond', Georgia, serif;
    text-transform: none;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    font-size: 0.78rem;
}
.site-nav .links a:hover, .site-nav .links a.active { color: #fff; text-shadow: 0 0 12px rgba(214,42,58,0.55); }
.site-nav .links a.active small { color: rgba(255,255,255,0.6); }
.site-nav .actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: flex-end;
}
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.icon-btn:hover { border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(139,0,0,0.85);
    color: #fff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-badge[hidden] { display: none; }

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.hamburger span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--text);
    transition: transform 0.2s ease;
}

@media (max-width: 760px) {
    .site-nav { grid-template-columns: auto 1fr auto; }
    .site-nav .links {
        position: fixed;
        inset: var(--site-chrome-top) 0 auto 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10,10,10,0.96);
        border-bottom: 1px solid var(--border);
        padding: 1rem 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    .site-nav .links.open { transform: translateY(0); }
    .site-nav .links a { display: block; padding: 0.9rem 1.2rem; }
    .hamburger { display: inline-flex; }
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 6rem;
    border-top: 1px solid var(--border);
    background: #050505;
    color: var(--text-faint);
    font-size: 0.9rem;
}
.site-footer .container {
    padding: 3rem 0 2rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}
.site-footer h4 {
    color: var(--text);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin: 0 0 0.8rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: #fff; }
.site-footer .bottom {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.8rem;
}
@media (max-width: 760px) {
    .site-footer .container { grid-template-columns: 1fr; }
}

/* ---------- Section helpers ---------- */
.page {
    padding: 3rem 0 2rem;
}
.page h1 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    margin: 0 0 1.5rem;
    text-shadow: 0 0 30px rgba(176,0,18,0.25);
}
.page h2 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 1rem;
    margin: 2rem 0 0.8rem;
    color: var(--text);
}
.page p, .page li { color: var(--text-dim); }
.page small { color: var(--text-faint); }
.lead {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 60ch;
}

/* ---------- Hero (home) ---------- */
.hero {
    position: relative;
    min-height: calc(100dvh - var(--site-chrome-top));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(30,15,8,0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(20,10,5,0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(25,12,6,0.4) 0%, transparent 45%),
        var(--bg);
}
.hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    background: radial-gradient(circle, rgba(176,0,18,0.22) 0%, rgba(176,0,18,0.06) 40%, transparent 70%);
    border-radius: 50%;
    animation: heroPulse 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroPulse {
    0%,100% { transform: translate(-50%,-55%) scale(1); opacity: 0.75; }
    50%     { transform: translate(-50%,-55%) scale(1.12); opacity: 1; }
}
.hero .content { position: relative; z-index: 1; }
.hero img.logo {
    width: clamp(140px, 28vw, 260px);
    margin: 0 auto 1.2rem;
    filter: drop-shadow(0 0 38px rgba(176,0,18,0.4));
}
.hero .eyebrow {
    letter-spacing: 0.5em;
    text-indent: 0.5em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-faint);
    margin: 0 0 0.8rem;
}
.hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: clamp(4px, 0.8vw, 10px);
    text-indent: clamp(4px, 0.8vw, 10px);
    text-transform: uppercase;
    font-size: clamp(1.8rem, 4.6vw, 3.2rem);
    margin: 0 0 1.4rem;
    text-shadow: 0 0 40px rgba(176,0,18,0.4);
}
.hero p {
    color: var(--text-dim);
    max-width: 52ch;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

/* ---------- Hoard hero (shop top) ---------- */
.hoard-hero {
    text-align: center;
    padding: 1rem 0 2rem;
}
.hoard-hero img {
    width: clamp(80px, 12vw, 120px);
    margin: 0 auto 0.8rem;
    filter: drop-shadow(0 0 24px rgba(176,0,18,0.4));
}
.hoard-hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    margin: 0 0 0.4rem;
    color: var(--red-bright);
    text-shadow: 0 0 30px rgba(214,42,58,0.45);
}
.hoard-hero .sub {
    letter-spacing: 0.4em;
    text-indent: 0.4em;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ---------- Shop ---------- */
.shop-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}
@media (max-width: 880px) { .shop-grid { grid-template-columns: 1fr; gap: 2rem; } }
.gallery {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.gallery .main {
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(ellipse at 50% 70%, rgba(176,0,18,0.2), transparent 65%),
        rgba(255,255,255,0.02);
    border: 1px solid rgba(176,0,18,0.35);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 70px rgba(176,0,18,0.12) inset, 0 0 30px rgba(176,0,18,0.1);
}
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 1.2rem; }
.gallery .thumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.gallery .thumbs button {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    padding: 0;
}
.gallery .thumbs button.active { border-color: var(--border-strong); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }

.product-info {
    border: 1px solid rgba(176,0,18,0.45);
    border-radius: 14px;
    padding: 1.6rem 1.8rem;
    background: linear-gradient(140deg, rgba(40,0,5,0.55), rgba(15,5,5,0.4));
    box-shadow: 0 0 80px rgba(176,0,18,0.12) inset;
}
.product-info h1 {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: clamp(1.4rem, 2.8vw, 2.1rem);
    line-height: 1.15;
    margin: 0 0 0.3rem;
    color: #fff;
    text-shadow: 0 0 22px rgba(176,0,18,0.35);
}
.product-info .subtitle {
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-size: 0.74rem;
    color: var(--text-faint);
    margin: 0 0 1rem;
}
.product-info .desc {
    color: var(--text-dim);
    margin: 1rem 0 1.4rem;
    border-top: 1px solid rgba(176,0,18,0.25);
    border-bottom: 1px solid rgba(176,0,18,0.25);
    padding: 1rem 0;
}
.product-info .price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}
.product-info .price-row .label {
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--text-faint);
}
.product-info .price-row .value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: #fff;
    text-shadow: 0 0 18px rgba(176,0,18,0.45);
}

.stock-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}
.stock-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
}
.stock-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(176,0,18,0.95), rgba(214,42,58,0.95));
    box-shadow: 0 0 12px rgba(214,42,58,0.5);
    width: 0%;
    transition: width 0.4s ease;
}

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1rem;
}
.qty button {
    width: 36px;
    height: 40px;
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 1.1rem;
}
.qty input {
    width: 44px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: center;
    font-family: inherit;
}

.shipping-snippet {
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.9rem;
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 60;
    backdrop-filter: blur(2px);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(420px, 100%);
    background: #0a0a0a;
    border-left: 1px solid rgba(255,255,255,0.16);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 70;
    display: flex;
    flex-direction: column;
    color: var(--text);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.4rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}
.cart-drawer header h3 {
    margin: 0;
    font-family: var(--font-display);
    font-variant-caps: all-small-caps;
    letter-spacing: 0.32em;
    text-indent: 0.32em;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}
.cart-drawer .items { flex: 1; overflow-y: auto; padding: 0.4rem 1.4rem; }
.cart-empty {
    color: var(--text-faint);
    padding: 2.5rem 0;
    text-align: center;
    font-family: var(--font-display);
    font-variant-caps: all-small-caps;
    letter-spacing: 0.24em;
    font-size: 1rem;
}
.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 0.9rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 0.3rem;
}
.cart-item .meta .name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.cart-item .meta .price {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}
.cart-item .qty { margin: 0; }
.cart-item .remove {
    background: transparent;
    border: 0;
    color: var(--text-faint);
    font-family: var(--font-display);
    font-variant-caps: all-small-caps;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    text-decoration: underline;
    margin-top: 0.45rem;
    cursor: pointer;
    padding: 0;
}
.cart-item .remove:hover { color: #fff; }
.cart-drawer footer {
    border-top: 1px solid rgba(255,255,255,0.14);
    padding: 1.2rem 1.4rem 1.4rem;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.1rem;
    font-family: var(--font-display);
}
.cart-total span:first-child {
    font-variant-caps: all-small-caps;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    font-size: 1.05rem;
    color: var(--text-dim);
}
.cart-total span:last-child {
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
}
.cart-drawer footer .stage-cta-btn { width: 100%; }

/* ---------- FAQ accordion ---------- */
.faq-section { margin-top: 1.5rem; }
.faq-item {
    border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--text-dim);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
    padding: 0 0 1.1rem;
    color: var(--text-dim);
}

/* ---------- Forms ---------- */
.form {
    display: grid;
    gap: 1rem;
    max-width: 560px;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form .row { grid-template-columns: 1fr; } }
.field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.field input, .field textarea, .field select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.4);
    color: var(--text);
    border-radius: 8px;
    padding: 0 0.9rem;
    font-family: inherit;
    font-size: 1rem;
}
/* Closed <select> uses OS-native painting on some browsers (esp. Windows): without a solid
   foreground/background the chosen label can render invisible on dark pages. */
.field select {
    background-color: rgba(18, 14, 14, 0.96);
    color: #f5eeef;
    color-scheme: dark;
    padding-inline-end: 2rem;
}
.field select option {
    background-color: #141010;
    color: #f5eeef;
}
.field textarea { height: 140px; padding: 0.7rem 0.9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--border-strong);
}
.field select:focus {
    color: #f5eeef;
}

/* Checkout country: custom list (native OS dropdown is often low-contrast on Windows). */
.country-field .country-select-wrap {
    position: relative;
    z-index: 4;
    width: 100%;
}
.field.country-field select.country-select-native-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.country-select-trigger {
    position: relative;
    z-index: 5;
    width: 100%;
    min-height: 44px;
    padding: 0 2.35rem 0 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(30, 18, 22, 0.98), rgba(12, 8, 10, 0.99));
    color: #fdf8f7;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.country-select-trigger:hover {
    border-color: var(--border-strong);
}
.country-select-trigger:focus {
    outline: none;
    border-color: rgba(214, 42, 58, 0.55);
    box-shadow: 0 0 0 1px rgba(214, 42, 58, 0.35);
}
.country-select-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.country-select-chevron {
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid rgba(252, 242, 240, 0.88);
    border-bottom: 2px solid rgba(252, 242, 240, 0.88);
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.92;
}
.country-select-trigger[aria-expanded="true"] .country-select-chevron {
    transform: rotate(-135deg) translateY(1px);
}

.country-select-list {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 200;
    margin-top: 6px;
    max-height: min(52vh, 340px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 220, 220, 0.22);
    background: #0e0708;
    box-shadow:
        0 18px 52px rgba(0, 0, 0, 0.58),
        0 0 0 1px rgba(176, 0, 18, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    scrollbar-color: rgba(214, 42, 58, 0.42) rgba(20, 10, 12, 0.85);
    scrollbar-width: thin;
}
.country-select-list::-webkit-scrollbar {
    width: 8px;
}
.country-select-list::-webkit-scrollbar-thumb {
    background: rgba(214, 42, 58, 0.42);
    border-radius: 8px;
}

.country-select-option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 11px 12px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #faf4f2;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.06rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}
.country-select-option:hover,
.country-select-option:focus {
    outline: none;
    background: rgba(214, 42, 58, 0.22);
    color: #fff;
}
.country-select-option[aria-selected="true"] {
    background: rgba(214, 42, 58, 0.32);
    color: #fff;
    box-shadow: inset 4px 0 0 0 #d62a3a;
}

.error-msg { color: var(--danger); min-height: 1.1rem; }
.limit-msg {
    color: #e8b86d;
    font-size: 0.95rem;
    margin: 0.35rem 0 0;
    line-height: 1.4;
}
.limit-msg[hidden] { display: none !important; }
.success-msg { color: #c8f8c8; min-height: 1.1rem; }

/* ---------- Checkout layout ---------- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.2rem;
}
/* Keep the form column above the summary so country dropdown clicks aren't eaten by the aside (desktop Chrome). */
.checkout-layout > .checkout-form {
    position: relative;
    z-index: 5;
}
.checkout-layout > .checkout-summary-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
    align-self: start;
}

.checkout-form .row.row-single-field {
    grid-template-columns: 1fr;
}

.checkout-intl-address-panel:not([hidden]) {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* `.form .row { display: grid }` can override the default [hidden] hiding — force intl rows off. */
.checkout-form .checkout-intl-address-panel .row[hidden] {
    display: none !important;
}
.checkout-form #intlRowAddressLine2[hidden] {
    display: none !important;
}

/* One row: Street (flex) | Number | Addition (EU/US/CA only; third column toggled in JS). */
.checkout-form .row.checkout-street-number-row {
    grid-template-columns: minmax(0, 1fr) minmax(4.75rem, 6.25rem);
}
.checkout-form .row.checkout-street-number-row.checkout-street-number-row--addition {
    grid-template-columns: minmax(0, 1fr) minmax(4.75rem, 6.25rem) minmax(4.75rem, 6.25rem);
}
.checkout-form .row.checkout-street-number-row > .field[hidden] {
    display: none !important;
}
@media (max-width: 540px) {
    .checkout-form .row.checkout-street-number-row,
    .checkout-form .row.checkout-street-number-row.checkout-street-number-row--addition {
        grid-template-columns: 1fr;
    }
}

.checkout-field-error {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    line-height: 1.35;
    color: #ff9494;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.checkout-field-error[hidden] {
    display: none !important;
}
/* Tie inputs explicitly (.checkout-form) so :focus and -webkit-autofill cannot mute tel/email borders. */
.checkout-form .field input.checkout-field-invalid,
.checkout-form .field textarea.checkout-field-invalid,
.field .checkout-field-invalid,
.country-select-trigger.checkout-field-invalid {
    border-color: rgba(255, 155, 155, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(255, 120, 120, 0.25) !important;
}
.checkout-form .field input.checkout-field-invalid:focus,
.checkout-form .field textarea.checkout-field-invalid:focus {
    border-color: rgba(255, 155, 155, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(255, 120, 120, 0.25) !important;
}
.checkout-form .field input.checkout-field-invalid:-webkit-autofill,
.checkout-form .field input.checkout-field-invalid:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text) !important;
    caret-color: var(--text);
    transition: background-color 99999s ease-out;
    border-color: rgba(255, 155, 155, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(255, 120, 120, 0.25),
        inset 0 0 0 120px rgba(18, 14, 14, 0.96) !important;
}

.checkout-submit-hitbox {
    position: relative;
    display: block;
    width: 100%;
    max-width: 560px;
}
.checkout-submit-hitbox.checkout-submit-blocked::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
    border-radius: 10px;
}
/* Disabled submit still paints above the overlay in some browsers; ignore pointer so the
   hitbox receives the click and can surface inline validation messages. */
.checkout-submit-hitbox.checkout-submit-blocked #checkoutSubmit:disabled {
    pointer-events: none;
}

@media (max-width: 880px) { .checkout-layout { grid-template-columns: 1fr; } }

.postnl-panel {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.postnl-panel h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.postnl-choices {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 0.25rem;
}
.postnl-choices label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--text-dim);
    line-height: 1.35;
}
.postnl-choices input { margin-top: 0.2rem; }
.summary-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem;
    background: var(--surface);
    height: fit-content;
}
.summary-card h3 { margin: 0 0 0.8rem; letter-spacing: 2px; text-transform: uppercase; font-size: 0.95rem; font-weight: 500; }
.summary-card .row { display: flex; justify-content: space-between; padding: 0.4rem 0; color: var(--text-dim); }
.summary-card .row.total { font-size: 1.05rem; color: #fff; border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 0.8rem; }
.summary-card .row.summary-discount {
    color: rgba(200, 248, 210, 0.92);
    font-size: 0.92rem;
}
.summary-card .row.summary-discount[hidden] {
    display: none !important;
}
.summary-card .row.summary-discount span:last-child {
    font-variant-numeric: tabular-nums;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text-dim);
}
.summary-line:last-of-type { border-bottom: none; }
.summary-line-info { flex: 1; min-width: 0; text-align: left; }
.summary-line-name {
    display: block;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 0.45rem;
}
.summary-qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,0.35);
}
.summary-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.summary-qty-btn:hover { background: rgba(255,255,255,0.12); }
.summary-qty-input {
    width: 44px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    text-align: center;
    font-family: ui-monospace, monospace;
    font-size: 0.95rem;
    -moz-appearance: textfield;
}
.summary-qty-input::-webkit-outer-spin-button,
.summary-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.summary-line-note {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    color: var(--text-faint);
    line-height: 1.35;
}
.summary-remove-btn {
    display: inline-block;
    margin: 0.45rem 0 0;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.82rem;
    color: rgba(230, 150, 130, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.15s ease;
}
.summary-remove-btn:hover {
    color: #ffd0c4;
}

.checkout-summary-coupon {
    margin-top: 0;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}
.checkout-summary-coupon-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.checkout-summary-coupon-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
.checkout-summary-coupon-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.4);
    color: var(--text);
    border-radius: 8px;
    padding: 0 0.9rem;
    font-family: inherit;
    font-size: 1rem;
}
.checkout-summary-coupon-input:focus {
    outline: none;
    border-color: var(--border-strong);
}
.checkout-summary-coupon-apply {
    flex-shrink: 0;
    white-space: nowrap;
    height: 44px;
    padding: 0 1rem;
    font-size: 0.7rem;
}
.checkout-summary-coupon-remove {
    margin-top: 0.55rem;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.82rem;
    color: rgba(230, 150, 130, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.checkout-summary-coupon-remove:hover {
    color: #ffd0c4;
}
.checkout-coupon-msg {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    line-height: 1.35;
    color: rgba(200, 248, 210, 0.92);
}
.checkout-coupon-msg--err {
    color: var(--danger);
}

.summary-line-price {
    font-variant-numeric: tabular-nums;
    color: #fff;
    white-space: nowrap;
    padding-top: 0.1rem;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 80;
    background: rgba(8,8,8,0.96);
    border-top: 1px solid var(--border);
    padding: 1rem 1.2rem;
    display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner .wrap {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}
.cookie-banner p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) {
    .cookie-banner .wrap { grid-template-columns: 1fr; }
    .cookie-banner .actions { justify-content: stretch; }
}

.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 90;
    padding: 1rem;
}
.cookie-modal.open { display: flex; }
.cookie-modal .panel {
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 12px;
    width: min(520px, 100%);
    padding: 1.4rem;
}
.cookie-modal h3 { margin-top: 0; }
.cookie-modal .pref {
    border-top: 1px solid var(--border);
    padding: 0.9rem 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem 1rem;
    align-items: center;
}
.cookie-modal .pref small { color: var(--text-faint); grid-column: 1 / span 2; }
.toggle {
    position: relative;
    width: 38px;
    height: 22px;
    background: rgba(255,255,255,0.1);
    border-radius: 99px;
    cursor: pointer;
    border: 1px solid var(--border);
}
.toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--text-dim);
    border-radius: 50%;
    transition: left 0.2s ease, background 0.2s ease;
}
.toggle.on { background: rgba(139,0,0,0.5); }
.toggle.on::after { left: 18px; background: #fff; }
.toggle.disabled { opacity: 0.5; pointer-events: none; }

/* ---------- Single-screen "stage" layout (home) ---------- */
body.single-page { overflow-x: hidden; }

.single-stage {
    /* Vertical rhythm between logo block, hero, product, nav, footer (top logo offset stays on .stage-top) */
    --stage-section-gap: clamp(1.1rem, 3.8vh, 1.45cm);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem clamp(1rem, 4vw, 2.5rem) 0.6rem;
    /* Admin-style red wash (globals.css body) + existing warm hoard gradients */
    background:
        radial-gradient(700px 500px at 50% 28%, rgba(176, 0, 18, 0.14), transparent 62%),
        radial-gradient(900px 600px at 80% 0%, rgba(139, 0, 0, 0.20), transparent 60%),
        radial-gradient(700px 500px at 60% 100%, rgba(139, 0, 0, 0.14), transparent 60%),
        radial-gradient(ellipse at 50% 40%, rgba(30, 15, 8, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(20, 10, 5, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(25, 12, 6, 0.4) 0%, transparent 45%),
        #0a0a0a;
    background-attachment: fixed;
}

/* --- Top: Logo (orb + drop-shadow aligned with admin brand-mark) --- */
.stage-top { margin-top: 1.5cm; margin-bottom: 0; flex-shrink: 0; }

.stage-brand-mark {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stage-logo-link {
    display: block;
    width: fit-content;
    margin: 0 auto;
    text-decoration: none;
    color: inherit;
    line-height: 0;
    border-radius: 12px;
}
.stage-logo-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 8px;
}

/* Matches admin .brand-mark__orb + landing .glow-orb */
.stage-glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -55%);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(139, 0, 0, 0.18) 0%,
        rgba(139, 0, 0, 0.06) 40%,
        transparent 70%
    );
    animation: stageGlowOrbPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes stageGlowOrbPulse {
    0%,
    100% {
        transform: translate(-50%, -55%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -55%) scale(1.15);
        opacity: 1;
    }
}

.stage-logo {
    position: relative;
    z-index: 1;
    width: clamp(225px, 27vw, 345px);
    margin: 0 auto;
    filter: drop-shadow(0 0 30px rgba(139, 0, 0, 0.28));
    animation: stageLogoEnter 1.2s cubic-bezier(0.16, 1, 0.3, 1) both,
               stageLogoFloat 6s ease-in-out 1.2s infinite;
}

@keyframes stageLogoEnter {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(12px);
        filter: drop-shadow(0 0 0 rgba(139, 0, 0, 0));
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: drop-shadow(0 0 30px rgba(139, 0, 0, 0.28));
    }
}

@keyframes stageLogoFloat {
    0%, 100% { transform: translateY(0); }
    50%     { transform: translateY(-6px); }
}

.stage-divider {
    width: 60px;
    height: 1px;
    margin: 1.5rem auto 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: stageDividerEnter 0.8s ease 1s both;
}

@keyframes stageDividerEnter {
    from { width: 0; opacity: 0; }
    to   { width: 60px; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .stage-glow-orb,
    .stage-logo,
    .stage-divider {
        animation: none;
    }
}
.stage-coming-soon {
    margin: 0.3rem 0 0;
    font-family: var(--font-display);
    font-variant-caps: all-small-caps;
    letter-spacing: 0.45em;
    text-indent: 0.45em;
    font-size: 0.85rem;
    color: var(--text);
}

/* --- Heading: Welcome to the Hoard + One Treasure Available --- */
.stage-heading { margin: var(--stage-section-gap) 0; flex-shrink: 0; }
.stage-title {
    margin: 0;
    font-family: var(--font-display);
    font-variant-caps: petite-caps;
    font-feature-settings: "smcp", "c2sc";
    font-weight: 600;
    font-size: clamp(2.2rem, 4.8vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: #fff;
}
.stage-availability {
    margin: 0.35rem 0 0;
    font-family: var(--font-display);
    font-variant-caps: all-small-caps;
    letter-spacing: 0.32em;
    text-indent: 0.32em;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

/* --- Generic flexible middle content for stage layout --- */
.stage-content {
    /* 1 1 auto (not flex:1 / basis 0) — avoids overflow painting over nav on some mobile browsers */
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    text-align: left;
}
.stage-content > .notice { text-align: center; }
.stage-content .lead { margin: 0 auto 1rem; max-width: 60ch; }
.stage-contact {
    max-width: 720px;
    text-align: center;
    padding-bottom: clamp(1rem, 2.5vh, 1.75rem);
}
.stage-contact .lead,
.stage-contact > p {
    margin-left: auto;
    margin-right: auto;
}
.stage-contact .form {
    text-align: left;
    margin: 1.4rem auto 0;
}
.stage-contact .form .stage-cta-btn {
    justify-self: center;
    margin-top: 0.25rem;
}

/* Stable grid row for AJAX status line (keeps submit button from jumping / layout quirks) */
.stage-contact .form > p#contactStatus {
    margin: 0;
    min-height: 1.1rem;
}

/* --- Readable text content (about, FAQ, legal pages) --- */
.stage-text {
    max-width: 880px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
    text-align: left;
    color: var(--text-dim);
    line-height: 1.65;
}
.stage-text > h1 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    margin: 0 0 1.4rem;
    color: #fff;
    text-align: center;
}
.stage-text h2 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 1.05rem;
    margin: 1.8rem 0 0.6rem;
    color: var(--text);
}
.stage-text h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 1.2rem 0 0.4rem;
    color: var(--text);
    font-size: 1rem;
}
.stage-text p { margin: 0.4rem 0 0.9rem; }
.stage-text ul,
.stage-text ol { padding-left: 1.4rem; margin: 0.4rem 0 1rem; }
.stage-text li { margin: 0.3rem 0; color: var(--text-dim); }
.stage-text a { color: rgba(255,255,255,0.9); text-decoration: underline; text-underline-offset: 3px; }
.stage-text a:hover { color: #fff; }
.stage-text .lead {
    font-size: 1.15rem;
    color: var(--text);
    margin: 0 auto 1.4rem;
    max-width: 60ch;
}
.stage-text .muted {
    color: var(--text-faint);
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
}
.stage-text code {
    background: rgba(255,255,255,0.08);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 0.9em;
}
.stage-text .faq-section { margin-bottom: 1.5rem; }
.stage-text details.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    margin: 0.5rem 0;
    background: rgba(255,255,255,0.02);
}
.stage-text details.faq-item summary {
    cursor: pointer;
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    color: var(--text);
}
.stage-text details.faq-item[open] summary { color: #fff; }
.stage-text details.faq-item .faq-body { margin-top: 0.5rem; color: var(--text-dim); }

/* --- Product: image + card --- */
.stage-product {
    flex: 0 1 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.4rem);
    align-items: center;
    align-content: center;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto var(--stage-section-gap);
}
.stage-product.is-empty-lair {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    max-width: 40rem;
    min-height: min(42vh, 22rem);
}
@media (max-width: 880px) {
    .stage-product { grid-template-columns: 1fr; gap: 1.2rem; }
    .stage-product.is-empty-lair { min-height: auto; }
}

.stage-product-live {
    display: contents;
}
/* display:contents + [hidden] leaves hoisted children visible in several engines — force the subtree off. */
.stage-product-live[hidden] {
    display: none !important;
}
.shop-empty-lair[hidden] {
    display: none !important;
}
@media (max-width: 880px) {
    .stage-product-live { display: block; }
    .stage-product-live[hidden] {
        display: none !important;
    }
}

.stage-product[aria-busy='true'] {
    min-height: min(42vh, 22rem);
}

/* Between-drop state: themed “lair” message */
.shop-empty-lair {
    position: relative;
    width: 100%;
    max-width: 34rem;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 1.75rem);
    border-radius: 16px;
    border: 1px solid rgba(220, 90, 60, 0.22);
    background: linear-gradient(165deg, rgba(40, 12, 10, 0.55) 0%, rgba(18, 8, 12, 0.75) 100%);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.35) inset,
        0 18px 48px rgba(0,0,0,0.4);
    text-align: center;
    animation: shop-empty-fade-in 0.85s ease-out both;
}
.shop-empty-lair__ember {
    position: absolute;
    inset: -30% -20% auto;
    height: 70%;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(230, 90, 55, 0.14), transparent 70%);
    pointer-events: none;
    animation: shop-empty-ember-pulse 4.2s ease-in-out infinite;
}
.shop-empty-lair__sigil {
    position: relative;
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1;
    color: rgba(255, 180, 120, 0.55);
    text-shadow: 0 0 22px rgba(230, 95, 70, 0.35);
    animation: shop-empty-sigil-float 3.2s ease-in-out infinite;
}
.shop-empty-lair__title {
    position: relative;
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.25rem, 3.2vw, 1.65rem);
    letter-spacing: 0.06em;
    line-height: 1.15;
    color: #fff;
}
.shop-empty-lair__lead {
    position: relative;
    margin: 0 0 0.65rem;
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    line-height: 1.55;
    color: var(--text-dim);
}
.shop-empty-lair__note {
    position: relative;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--text-mute, rgba(235, 220, 210, 0.55));
}
.shop-empty-lair__retry {
    position: relative;
    margin-top: 1.25rem;
    width: 100%;
    max-width: 16rem;
}
@keyframes shop-empty-fade-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes shop-empty-ember-pulse {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}
@keyframes shop-empty-sigil-float {
    0%, 100% { transform: translateY(0); opacity: 0.55; }
    50% { transform: translateY(-5px); opacity: 0.95; }
}

.stage-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-height: 52vh;
    margin: 0 auto;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.stage-image:not(.stage-carousel) img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }

/* Product image carousel */
.stage-carousel {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.65rem;
    overflow: visible;
    max-height: none;
}
.stage-carousel-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    aspect-ratio: 1 / 1;
    max-height: min(52vh, 100%);
}
.stage-carousel-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}
.stage-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.stage-carousel-nav:hover {
    background: rgba(0,0,0,0.65);
    border-color: rgba(255,255,255,0.22);
}
.stage-carousel-prev { left: 0.35rem; }
.stage-carousel-next { right: 0.35rem; }
.stage-carousel-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    padding: 0 0.25rem 0.15rem;
}
.stage-carousel-thumb {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}
.stage-carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.stage-carousel-thumb:hover { border-color: rgba(255,255,255,0.2); }
.stage-carousel-thumb.is-active {
    border-color: rgba(255,200,120,0.55);
}

.stage-card { text-align: center; }
.stage-product-name {
    margin: 0 0 0.3rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: #fff;
}
.stage-product-sub {
    margin: 0 0 0.9rem;
    font-style: italic;
    color: var(--text-dim);
    font-size: 1.05rem;
}
.stage-desc {
    margin: 0 0 1rem;
    padding: 0.85rem 1.1rem;
    border: none;
    border-radius: 10px;
    background: rgba(0,0,0,0.32);
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.45;
    text-align: left;
}
/* --- Stock meter (health-bar style) --- */
.stock-meter {
    margin: 0.4rem 0 1.1rem;
    width: 100%;
}
.stock-meter-bar {
    position: relative;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.45);
}
.stock-meter-bar .fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #8a000d, #d62a3a);
    box-shadow: 0 0 14px rgba(214, 42, 58, 0.55);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.stock-meter-label {
    margin: 0.5rem 0 0;
    font-family: var(--font-display);
    font-variant-caps: all-small-caps;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: center;
}
.stock-meter.is-empty .stock-meter-bar .fill { width: 0; }
.stock-meter.is-empty .stock-meter-label { color: var(--red-bright); }

.stage-buy-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}
.stage-buy-row .stage-cta-btn { padding: 0.75rem 2rem; }
.stage-price-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45em;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 999px;
    background: rgba(0,0,0,0.32);
}
.stage-price-pill .lbl,
.stage-price-pill .unit {
    font-family: var(--font-display);
    font-variant-caps: all-small-caps;
    letter-spacing: 0.22em;
    font-size: 0.92rem;
    color: var(--text-dim);
}
.stage-price-pill .val {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.55rem;
    color: #fff;
}
.stage-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border: 1px solid rgba(255,210,210,0.4);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(176,0,18,0.55), rgba(50,0,0,0.7));
    color: #fff;
    font-family: var(--font-display);
    font-variant-caps: all-small-caps;
    letter-spacing: 0.22em;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(176,0,18,0.3);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.stage-cta-btn:hover {
    background: linear-gradient(180deg, rgba(214,42,58,0.6), rgba(70,0,0,0.85));
    box-shadow: 0 0 38px rgba(214,42,58,0.45);
}
.stage-cta-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* --- Rule between main content and footer (replaces bottom nav) --- */
.stage-content-rule {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto var(--stage-section-gap);
    padding: 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.35);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* --- Foot: link row + Follow + copyright --- */
.stage-foot {
    padding: 0 0 0.2rem;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.stage-foot .foot-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.4rem;
    margin: 0 0 0.7rem;
    font-family: var(--font-display);
    font-variant-caps: all-small-caps;
    letter-spacing: 0.18em;
    font-size: 0.95rem;
}
.stage-foot .foot-links a {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    color: rgba(255,255,255,0.62);
    transition: color 0.2s ease;
}
.stage-foot .foot-links a:hover { color: #fff; }
.stage-foot .foot-links a small {
    font-family: 'EB Garamond', Georgia, serif;
    font-variant-caps: normal;
    text-transform: none;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    font-size: 0.88rem;
}
.stage-foot .follow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-family: var(--font-display);
    font-variant-caps: all-small-caps;
    letter-spacing: 0.32em;
    font-size: 0.95rem;
    color: var(--text-faint);
}
.stage-foot .socials {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.stage-foot .socials a {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s ease, transform 0.2s ease;
}
.stage-foot .socials a:hover { color: #fff; transform: translateY(-1px); }
.stage-foot .socials svg { width: 18px; height: 18px; }
.stage-foot .copy {
    margin: 0.45rem 0 0;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.32);
}
.stage-foot .copy a { color: rgba(255,255,255,0.55); }
.stage-foot .copy a:hover { color: #fff; }

/* ---------- Vault login (/login) — same atmosphere as landing + shop ---------- */
body.login-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
    background:
        radial-gradient(700px 500px at 50% 30%, rgba(176, 0, 18, 0.18), transparent 62%),
        radial-gradient(900px 600px at 80% 0%, rgba(139, 0, 0, 0.20), transparent 60%),
        radial-gradient(700px 500px at 60% 100%, rgba(139, 0, 0, 0.14), transparent 60%),
        radial-gradient(ellipse at 50% 40%, rgba(30, 15, 8, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(20, 10, 5, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(25, 12, 6, 0.4) 0%, transparent 45%),
        #0a0a0a;
    background-attachment: fixed;
    color: var(--text);
    font-family: 'EB Garamond', Georgia, serif;
    line-height: 1.55;
}

.login-shell {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.login-brand .stage-divider {
    margin-top: 1.5rem;
}

.login-vault-title {
    margin: 1.25rem 0 0;
    max-width: 100%;
    font-size: clamp(1.15rem, 3.6vw, 1.85rem);
    line-height: 1.12;
}

.login-panel {
    width: 100%;
    margin-top: 1.35rem;
    padding: 1.35rem 1.25rem 1.15rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid var(--border);
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.login-panel .form {
    max-width: none;
    margin: 0;
    gap: 0.85rem;
}

.login-panel .stage-cta-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.2rem;
}

.login-panel .stage-cta-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.login-panel .error-msg {
    margin: 0;
    font-size: 0.92rem;
}

.login-back {
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-variant-caps: all-small-caps;
    letter-spacing: 0.2em;
    color: var(--text-faint);
    text-decoration: none;
    transition: color 0.2s ease;
}
.login-back:hover { color: #fff; }

/* Page transitions ↔ landing (see page-transition.js) */
@media (prefers-reduced-motion: no-preference) {
    body.login-page.page-transition--exiting.page-transition--exit-back {
        animation: rdLoginExitToHome 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    body.login-page.page-transition--entering.page-transition--enter-forward {
        animation: rdLoginEnterFromHome 0.52s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    }
}
@keyframes rdLoginExitToHome {
    to {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(8px);
    }
}
@keyframes rdLoginEnterFromHome {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
        filter: blur(10px);
    }
}

/* ---------- Misc ---------- */
.notice {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
    background: var(--surface);
    color: var(--text-dim);
}
.muted { color: var(--text-faint); }
