:root {
  --bg: #0b0b0f;          /* near-black page */
  --bg-elev: #15151b;     /* cards */
  --bg-elev-2: #1d1d25;   /* inputs / raised */
  --line: #2a2a34;
  --ink: #ffffff;         /* headings */
  --text: #c8c6d4;        /* body */
  --muted: #8a879a;
  --flame-1: #ffc23d;
  --flame-2: #ff7a18;
  --flame-3: #e8391a;
  --accent: #ff7a18;
  --accent-soft: rgba(255,122,24,.14);
  --grad-flame: linear-gradient(180deg, #ffc23d 0%, #ff7a18 55%, #e8391a 100%);
  --grad-flame-h: linear-gradient(120deg, #ffb02e, #ff6a15);
  --radius: 16px;
  --shadow: 0 12px 30px rgba(0,0,0,.4);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; color: var(--ink); }

.container { width: min(1180px, 92%); margin: 0 auto; }
a { text-decoration: none; color: inherit; }

/* Anything marked hidden must stay hidden, even against display rules like flex/grid.
   This keeps the admin panel fully gated until login. */
[hidden] { display: none !important; }

/* When a modal/drawer is open, lock the page behind it — only the modal scrolls. */
body.no-scroll { overflow: hidden; }

/* ---------- Logo (flame spire) ---------- */
.logo { display: flex; align-items: center; gap: .6rem; }
.logo .flame { width: 26px; height: 32px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: row; align-items: center; gap: .42rem; line-height: 1; font-family: 'Sora', sans-serif; }
.logo-text b, .logo-text strong { font-weight: 800; color: var(--ink); letter-spacing: .02em; font-size: 1.05rem; }
.logo-text span.sub { font-weight: 600; color: var(--muted); letter-spacing: .24em; font-size: .62rem; margin-top: 0; }
.logo-img { height: 46px; width: auto; display: block; }
.logo-img-lg { height: 100px; }
.logo-flame-img { height: 38px; width: auto; display: block; }

/* ---------- Discount mailbox ---------- */
.mail-btn { display: inline-flex; align-items: center; gap: .45rem; background: var(--accent-soft); border: 1px solid rgba(255,122,24,.4); color: #ffd9bd; border-radius: 999px; padding: .5rem .9rem; font-size: .85rem; font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif; white-space: nowrap; transition: all .15s ease; }
.mail-btn:hover, .mail-btn.active { background: var(--grad-flame-h); color: #1a0d00; border-color: transparent; }
.mail-ico { font-size: 1.05rem; animation: mailwiggle 3.2s ease-in-out infinite; }
@keyframes mailwiggle { 0%,92%,100% { transform: rotate(0); } 94% { transform: rotate(-12deg); } 96% { transform: rotate(12deg); } 98% { transform: rotate(-6deg); } }
.mail-text { min-width: 118px; }

.mail-popup { position: fixed; top: 50%; left: 50%; width: 300px; max-width: calc(100% - 28px); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem 1.4rem 1.5rem; box-shadow: var(--shadow-lg); z-index: 260; text-align: center; opacity: 0; transform: translate(-50%, -50%) scale(.94); pointer-events: none; transition: opacity .22s ease, transform .22s cubic-bezier(.4,0,.2,1); }
.mail-popup.open { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.mail-close { position: absolute; top: .7rem; right: .8rem; background: none; border: none; color: var(--muted); font-size: 1rem; cursor: pointer; }
.mail-ico-lg { font-size: 2.4rem; margin-bottom: .4rem; }
.mail-popup h3 { font-size: 1.2rem; }
.mail-popup p { color: var(--muted); font-size: .9rem; margin: .35rem 0 1.1rem; }
.mail-form { display: flex; flex-direction: column; gap: .6rem; }
.mail-form input { padding: .7rem 1rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; font-size: .9rem; outline: none; text-align: center; }
.mail-form input::placeholder { color: var(--muted); }
.mail-form input:focus { border-color: var(--accent); }
.mail-reveal p { color: var(--ink); margin-bottom: .6rem; }
.mail-code { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: .14em; background: var(--grad-flame); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; border: 2px dashed rgba(255,122,24,.5); border-radius: 12px; padding: .7rem; }
.mail-reveal small { display: block; color: var(--muted); margin-top: .6rem; }

/* ---------- Postcode lookup (saved delivery details) ---------- */
.pc-row { display: flex; gap: .5rem; align-items: stretch; }
.pc-row input { flex: 1; min-width: 0; }
.pc-btn { flex: 0 0 auto; white-space: nowrap; padding: 0 1rem; }
.pc-msg { font-size: .84rem; margin: .1rem 0 .2rem; font-weight: 600; }
.pc-msg.ok { color: #1faf52; }
.pc-msg.err { color: #e8391a; }

/* ---------- Top loading bar ---------- */
.load-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.load-bar.show { opacity: 1; }
.load-bar-fill { height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center; background: linear-gradient(90deg, #ffb02e, #ff6a15, #e8391a); box-shadow: 0 0 8px rgba(255,122,24,.7), 0 0 4px rgba(255,122,24,.5); transition: transform .3s cubic-bezier(.2,.6,.3,1); }

/* ---------- Saved delivery address (read-only) ---------- */
.saved-addr-card { display: flex; gap: .8rem; align-items: flex-start; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.saved-addr-ico { font-size: 1.6rem; line-height: 1; }
.saved-addr-card strong { font-size: .95rem; color: var(--ink); }
.saved-addr-card p { color: var(--text); margin: .4rem 0 0; line-height: 1.5; }
.saved-addr-phone { color: var(--muted); font-size: .88rem; }
.saved-addr-note { color: var(--muted); font-size: .82rem; margin-top: .7rem; }
.saved-addr-empty { color: var(--muted); line-height: 1.6; padding: 1rem 0; }

/* ---------- Profile photo cropper ---------- */
.crop-box { width: min(380px, 100%); text-align: center; }
.crop-help { color: var(--muted); font-size: .88rem; margin: .3rem 0 1rem; }
.crop-stage { position: relative; width: 260px; height: 260px; max-width: 78vw; max-height: 78vw; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #000; touch-action: none; cursor: grab; user-select: none; }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; -webkit-user-drag: none; pointer-events: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2000px rgba(0,0,0,.45); pointer-events: none; }
.crop-zoom { width: 100%; margin: 1.1rem 0 .4rem; accent-color: var(--accent); }
.crop-actions { display: flex; gap: .6rem; margin-top: .8rem; }
.crop-actions button { flex: 1; }

/* Always-visible "back to shop" button (e.g. account/admin headers) */
.acct-back { display: inline-flex; align-items: center; gap: .35rem; background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: .5rem .95rem; font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.acct-back:hover { border-color: var(--accent); }

/* ---------- Promotions inbox (bottom sheet, slide down to dismiss) ---------- */
.inbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 255; opacity: 0; transition: opacity .25s ease; }
.inbox-overlay.open { opacity: 1; }
.inbox-popup { position: fixed; left: 50%; bottom: 0; width: min(460px, 100%); transform: translateX(-50%) translateY(110%); background: var(--bg-elev); border: 1px solid var(--line); border-bottom: none; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg); z-index: 260; max-height: 82vh; display: flex; flex-direction: column; transition: transform .32s cubic-bezier(.4,0,.2,1); }
.inbox-popup.open { transform: translateX(-50%) translateY(0); }
.inbox-grip { padding: .7rem 0 .3rem; display: grid; place-items: center; cursor: grab; touch-action: none; }
.inbox-grip span { width: 42px; height: 4px; border-radius: 4px; background: var(--line); display: block; }
.inbox-head { display: flex; align-items: center; justify-content: space-between; padding: .2rem 1.2rem .7rem; touch-action: none; }
.inbox-head h3 { font-size: 1.15rem; }
.inbox-close { background: none; border: none; color: var(--muted); font-size: 1.15rem; cursor: pointer; line-height: 1; }
.inbox-list { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: .1rem .9rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; }
.inbox-msg { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 2.1rem .9rem 1rem; display: flex; gap: .8rem; align-items: flex-start; will-change: transform; }
.inbox-msg .im-ico { font-size: 1.5rem; flex: 0 0 auto; line-height: 1.1; }
.inbox-msg .im-body { flex: 1; min-width: 0; }
.im-title { font-weight: 700; color: var(--ink); font-size: .95rem; }
.im-text { color: var(--muted); font-size: .84rem; margin: .2rem 0 0; line-height: 1.35; }
.im-cta { display: inline-block; margin-top: .65rem; background: var(--accent); color: #241000; font-weight: 700; font-size: .82rem; padding: .45rem .9rem; border-radius: 9px; text-decoration: none; }
.im-dismiss { position: absolute; top: .5rem; right: .55rem; background: none; border: none; color: var(--muted); font-size: .95rem; cursor: pointer; line-height: 1; padding: .2rem; }
.im-dismiss:hover { color: var(--ink); }
.im-form { display: flex; gap: .4rem; margin-top: .65rem; }
.im-form input { flex: 1; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); border-radius: 9px; font-size: .84rem; outline: none; }
.im-form input:focus { border-color: var(--accent); }
.im-form button { background: var(--accent); color: #241000; border: none; border-radius: 9px; padding: .55rem .8rem; font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.im-reveal { margin-top: .65rem; font-size: .84rem; color: var(--ink); }
.im-code { font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: .12em; color: var(--accent); }
.inbox-empty { text-align: center; color: var(--muted); padding: 2rem 1rem 2.6rem; font-size: .95rem; }
.inbox-badge { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #e8391a; color: #fff; font-size: .66rem; font-weight: 800; margin-left: .35rem; line-height: 1; }
/* On desktop the inbox is a centered pop-up window, not a full-width sheet */
@media (min-width: 700px) {
  .inbox-popup { top: 50%; bottom: auto; left: 50%; width: min(440px, 92vw); max-height: 78vh; border: 1px solid var(--line); border-radius: 18px; transform: translate(-50%, -50%) scale(.96); opacity: 0; transition: transform .24s cubic-bezier(.34,1.2,.5,1), opacity .2s ease; }
  .inbox-popup.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .inbox-grip { display: none; }
  .inbox-head { padding-top: 1rem; }
}
/* ---------- Header menu ---------- */
.menu-btn { position: relative; background: var(--bg-elev); border: 1px solid var(--line); color: transparent; border-radius: 10px; width: 46px; height: 44px; font-size: 0; cursor: pointer; transition: width .2s ease, height .2s ease; }
/* Perfectly-centred hamburger (drawn, not a glyph — glyphs sit high) */
.menu-btn::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 19px; height: 2px; border-radius: 2px; background: var(--ink); box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }
.menu-btn:hover, .menu-btn.open { border-color: var(--accent); }
.menu-panel { position: absolute; top: calc(100% + 14px); right: max(4vw, calc((100vw - min(1180px, 92vw)) / 2)); width: 236px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: .5rem; box-shadow: var(--shadow-lg); z-index: 70; display: flex; flex-direction: column; gap: .05rem; }
.menu-link { display: flex; align-items: center; gap: .55rem; text-align: left; background: none; border: none; color: var(--text); padding: .7rem .8rem; border-radius: 9px; font-size: .92rem; font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif; text-decoration: none; width: 100%; }
.menu-link:hover { background: var(--bg-elev-2); color: var(--ink); }
.menu-cta { color: var(--accent); font-weight: 700; }
.menu-div { height: 1px; background: var(--line); margin: .35rem .3rem; }
.menu-item-btn .mail-ico { animation: mailwiggle 3.2s ease-in-out infinite; }

/* ---------- Shrink header on scroll (search box stays full-size) ---------- */
.header-inner { transition: padding .22s ease; }
.logo-flame-img { transition: height .22s ease; }
.logo-text { transition: opacity .18s ease, max-width .22s ease; overflow: hidden; }
.search-bar input, .cart-btn { transition: padding .2s ease; }
.site-header.scrolled .header-inner { padding: .55rem 0 .55rem; gap: .7rem; }
.site-header.scrolled .logo-flame-img { height: 24px; }
.site-header.scrolled .logo-text .sub { display: none; } /* keep the SPIRE name, hide only the small sub line */
.site-header.scrolled .search-bar input { padding: .46rem 1rem; }
.site-header.scrolled .search-bar button { padding: 0 .9rem; }
.site-header.scrolled .cart-btn { padding: .38rem .58rem; font-size: .95rem; }
.site-header.scrolled .menu-btn { height: 40px; width: 44px; font-size: 1.3rem; }

/* ---------- Light theme ---------- */
html.theme-light {
  --bg: #f5f4f8;
  --bg-elev: #ffffff;
  --bg-elev-2: #efedf4;
  --line: #e4e1ec;
  --ink: #18141f;
  --text: #45414f;
  --muted: #79758a;
  --accent-soft: rgba(255,122,24,.12);
  --shadow: 0 10px 30px rgba(20,15,30,.08);
  --shadow-lg: 0 20px 50px rgba(20,15,30,.16);
}
html.theme-light .hero p, html.theme-light .hero-stats span { color: var(--muted); }
html.theme-light .site-header { background: rgba(255,255,255,.85); }

@media (max-width: 780px) {
  .mail-text { display: none; }
}

/* ---------- Mobile polish ---------- */
html { overflow-x: clip; }  /* clip on html only — clipping <body> breaks the sticky header */
@media (max-width: 640px) {
  .header-inner { gap: .4rem; padding: .6rem 0 .8rem; align-items: center; }
  .header-nav { gap: .35rem; margin-left: auto; flex-wrap: nowrap; }
  .header-nav a:not(.tiktok-link):not(.shop-dd-item):not(.acct-back) { display: none; }
  .tiktok-link { display: none; } /* stays in footer */
  .account-dd { display: none; } /* on phones, account lives in the ☰ menu — keeps the bar clean */
  .cart-btn, .mail-btn { padding: .42rem .5rem; font-size: .8rem; }
  .cart-btn { font-size: 1.05rem; }
  .logo-flame-img { height: 26px; }
  .logo-text b { font-size: .92rem; }
  .logo-text .sub { font-size: .5rem; letter-spacing: .14em; }   /* full name, one line, fits phones */
  .site-header.scrolled .logo-text .sub { display: inline; }

  .hero { padding: 2.8rem 0 1.4rem; }
  .hero h1 { font-size: 2.15rem; }
  .hero p { font-size: 1rem; margin: .9rem 0 1.5rem; }
  .hero-stats { gap: 1.1rem; margin-top: 1.8rem; }
  .hero-stats strong { font-size: 1.35rem; }
  .hero-badge { font-size: .78rem; }

  .section-title { font-size: 1.4rem; }
  .categories { padding: 1.4rem 0 .4rem; }
  .deals { padding: 2rem 0 2.8rem; }

  #categories .category-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  #categories .category-card { padding: 1rem .4rem; }
  #categories .category-card .emoji { font-size: 1.55rem; margin-bottom: .3rem; }
  #categories .category-card span.name { font-size: .78rem; }
  #categories .category-card small { font-size: .66rem; }

  .deals-head { gap: .7rem; }
  .newsletter-inner { padding: 1.8rem 1.4rem; }
  .newsletter-form input { min-width: 0; flex: 1; }
  .footer-links { gap: 1.8rem; }
  .footer-inner { gap: 1.6rem; }
}

/* ---------- Amazon Discounts page ---------- */
.az-hero { padding: 3.5rem 0 1.5rem; text-align: center; background: radial-gradient(60% 90% at 50% 0%, rgba(255,153,0,.14), transparent 60%), var(--bg); }
.az-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.az-hero p { color: var(--muted); max-width: 520px; margin: .8rem auto 0; }
.az-btn { display: block; text-align: center; margin-top: .45rem; background: #ffd814; color: #0f1111; border: none; border-radius: 8px; padding: .42rem; font-weight: 700; font-size: .72rem; cursor: pointer; font-family: 'Inter', sans-serif; transition: background .15s ease; }
.az-btn:hover { background: #f7ca00; }
.az-disclosure { color: var(--muted); font-size: .78rem; text-align: center; margin-top: 2.5rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.active-link { color: var(--accent) !important; font-weight: 700; }

/* ---------- Account page ---------- */
.account-body { background: var(--bg); }
.acct-loading { text-align: center; color: var(--muted); padding: 4rem 0; }
.acct-auth-wrap { display: flex; justify-content: center; padding: 3rem 0; }
.acct-main { display: grid; grid-template-columns: 250px 1fr; gap: 1.5rem; padding: 2rem 0 4rem; align-items: start; }
.acct-nav { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; position: sticky; top: 90px; display: flex; flex-direction: column; gap: .25rem; }
.acct-user { display: flex; align-items: center; gap: .7rem; padding: .5rem .5rem 1rem; border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.acct-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-flame); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.acct-user-info { min-width: 0; }
.acct-user-info strong { display: block; color: var(--ink); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-user-info span { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.acct-tab-btn { text-align: left; background: none; border: none; color: var(--text); padding: .7rem .8rem; border-radius: 10px; font-size: .92rem; font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif; }
.acct-tab-btn:hover { background: var(--bg-elev-2); color: var(--ink); }
.acct-tab-btn.active { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.acct-logout { margin-top: .6rem; text-align: left; background: none; border: 1px solid var(--line); color: var(--muted); padding: .6rem .8rem; border-radius: 10px; cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600; }
.acct-logout:hover { border-color: #ff6b6b; color: #ff9a9a; }

.acct-content { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; min-height: 400px; }
.acct-sec h2 { font-size: 1.5rem; }
.acct-sub { color: var(--muted); margin: .3rem 0 1.6rem; font-size: .92rem; }
.acct-form { display: flex; flex-direction: column; gap: 1rem; max-width: 520px; }
.acct-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .85rem; color: var(--text); }
.acct-form input, .acct-form textarea, .acct-form select { padding: .75rem 1rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; font-size: .95rem; font-family: 'Inter', sans-serif; outline: none; font-weight: 400; }
.acct-form input:focus, .acct-form textarea:focus, .acct-form select:focus { border-color: var(--accent); }
.acct-form input:disabled { color: var(--muted); }
.acct-form textarea { resize: vertical; }
.acct-form .btn-primary { align-self: flex-start; }
.acct-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.acct-card-inner { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem; margin-bottom: 1.3rem; }
.acct-card-inner h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.acct-check { flex-direction: row !important; align-items: center; gap: .6rem !important; font-weight: 500 !important; }
.acct-check input { width: auto; }
.acct-saved { color: var(--flame-1); font-weight: 600; font-size: .88rem; }
.acct-err { color: #ff9a9a; font-weight: 500; font-size: .88rem; }

.acct-empty-box { text-align: center; color: var(--muted); padding: 2.5rem 1rem; border: 1px dashed var(--line); border-radius: 14px; }
.acct-empty-ico { font-size: 2.6rem; margin-bottom: .5rem; }
.acct-empty-box small { display: block; max-width: 320px; margin: .4rem auto 0; }
.order-card { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: .8rem; }
.order-head { display: flex; justify-content: space-between; color: var(--ink); font-family: 'Sora', sans-serif; }
.order-items { color: var(--muted); font-size: .88rem; margin-top: .4rem; }

.faq { border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; overflow: hidden; }
.faq summary { padding: .9rem 1.1rem; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 1.1rem 1rem; color: var(--text); font-size: .9rem; }
.faq a { color: var(--accent); }
.acct-help-links { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.acct-help-links a { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.acct-help-links a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 760px) {
  .acct-main { grid-template-columns: 1fr; }
  .acct-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .acct-user { flex-basis: 100%; }
  .acct-tab-btn { flex: 1; text-align: center; min-width: 44%; }
  .acct-logout { flex-basis: 100%; text-align: center; }
  .acct-content { padding: 1.4rem; }
  .acct-row2 { grid-template-columns: 1fr; }
}

/* ---------- Account button + auth modal ---------- */
.account-btn { background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: .5rem 1.1rem; font-size: .9rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.account-btn .acc-ico { font-size: 1rem; line-height: 1; }
.account-btn:hover, .account-btn.open { border-color: var(--accent); }

/* ---- Top-bar Account dropdown ---- */
.account-dd { position: relative; }
.account-dd-menu { position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: .4rem; box-shadow: var(--shadow-lg); z-index: 90; min-width: 236px; display: flex; flex-direction: column; gap: .1rem; }
.acc-head { display: flex; align-items: center; gap: .6rem; padding: .55rem .65rem .7rem; }
.acc-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; color: var(--ink); overflow: hidden; flex: 0 0 auto; }
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-who { min-width: 0; }
.acc-name { font-weight: 700; font-size: .95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 165px; }
.acc-sub { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 165px; }
.acc-nav-lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: .3rem .7rem .15rem; }
.acc-item { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 10px; font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 600; color: var(--text); text-decoration: none; background: none; border: none; width: 100%; text-align: left; cursor: pointer; }
.acc-item:hover { background: var(--accent-soft); color: var(--ink); }
.acc-cta { color: var(--accent); font-weight: 700; }
.acc-logout { color: #e8391a; }
.acc-logout:hover { background: rgba(232,57,26,.12); color: #e8391a; }
.acc-div { height: 1px; background: var(--line); margin: .35rem .3rem; }
@media (max-width: 560px) { .acc-label { display: none; } .account-btn { padding: .5rem .62rem; } }
.auth-tabs { display: flex; gap: .5rem; margin-bottom: 1.4rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .3rem; }
.auth-tab { flex: 1; background: transparent; border: none; color: var(--muted); padding: .55rem; border-radius: 999px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; font-size: .9rem; transition: all .15s ease; }
.auth-tab.active { background: var(--grad-flame-h); color: #1a0d00; }
.auth-form .form-row:last-of-type { margin-bottom: 1rem; }
.auth-msg { margin-top: 1rem; font-size: .88rem; text-align: center; }
.auth-msg.ok { color: var(--flame-1); }
.auth-msg.err { color: #ff9a9a; }
.auth-account { text-align: center; }
.auth-account h3 { margin-bottom: .3rem; }
.auth-account p { color: var(--muted); margin-bottom: 1.4rem; }
.auth-account .acc-email { color: var(--ink); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-family: 'Inter', sans-serif;
  border-radius: 999px; padding: .78rem 1.6rem; cursor: pointer;
  border: none; font-size: .95rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
}
.btn-primary { background: var(--grad-flame-h); color: #1a0d00; font-weight: 700; box-shadow: 0 8px 24px rgba(255,122,24,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,122,24,.5); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid rgba(255,255,255,.25); }
.btn-secondary:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); }
.btn-ghost { background: transparent; padding: .5rem 1rem; color: var(--text); }
.btn-ghost:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 115;
  background: #000;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; padding: .9rem 0 1rem; }
.header-inner > * { align-self: center; }  /* keep logo, search, nav all on the same centre line */
.logo { align-self: center; }
.search-bar { flex: 1; display: flex; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; max-width: 680px; margin-right: .4rem; }
.search-bar input { flex: 1; border: none; background: transparent; padding: .88rem 1.3rem; font-size: .98rem; outline: none; color: var(--ink); }
.search-bar input::placeholder { color: var(--muted); }
.search-bar button { border: none; background: transparent; padding: 0 1.1rem; cursor: pointer; font-size: 1rem; filter: grayscale(.2); }
.header-nav { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.desk-link { display: inline-flex; align-items: center; gap: .3rem; font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 600; color: var(--text); background: none; border: none; cursor: pointer; white-space: nowrap; text-decoration: none; padding: .3rem .1rem; transition: color .15s ease; }
.desk-link:hover { color: var(--ink); }
.desk-promo { color: var(--accent); }
.desk-promo:hover { color: var(--accent-2, var(--accent)); }
@media (max-width: 920px) { .desk-link { display: none; } }
.header-nav a { font-weight: 500; font-size: .95rem; color: var(--text); }
.header-nav a:hover { color: var(--ink); }
.tiktok-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink) !important; }
.tiktok-link:hover { color: var(--accent) !important; }
.cart-btn { position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; padding: .5rem .8rem; font-size: 1.05rem; cursor: pointer; }
.cart-btn:hover { border-color: var(--accent); }
.cart-count { position: absolute; top: -7px; right: -7px; background: var(--grad-flame); color: #1a0d00; font-size: .76rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(60% 70% at 50% -8%, rgba(255,122,24,.32), transparent 62%),
    radial-gradient(40% 40% at 85% 10%, rgba(255,58,26,.12), transparent 60%),
    var(--bg);
  color: var(--ink); padding: 5.5rem 0 5rem; overflow: hidden;
}
.hero-text { max-width: 660px; }
.hero-badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--accent-soft); border: 1px solid rgba(255,122,24,.3); color: var(--ink); padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.03; }
.hero h1 .flame-word { background: var(--grad-flame); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.72); margin: 1.2rem 0 2rem; max-width: 540px; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.2rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Sora', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--ink); }
.hero-stats span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section-title { font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.categories { padding: 4rem 0 1rem; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.category-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1rem; text-align: center; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--bg-elev-2); }
.category-card .emoji { font-size: 1.8rem; display: block; margin-bottom: .5rem; }
.category-card span.name { font-weight: 600; font-size: .95rem; color: var(--ink); }
.category-card small { display: block; color: var(--muted); font-size: .8rem; }
/* Homepage category cards: single-line horizontally scrollable row (iOS-safe inline-flow) */
#categoryGrid {
  display: block; white-space: nowrap;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scrollbar-width: none; scroll-snap-type: x proximity;
  margin-top: 1.4rem; padding: .2rem .1rem .5rem;
}
#categoryGrid::-webkit-scrollbar { display: none; }
#categoryGrid .category-card {
  display: inline-block; vertical-align: top; white-space: normal;
  width: 140px; box-sizing: border-box; margin-right: .7rem; scroll-snap-align: start;
}
#categoryGrid .category-card:last-child { margin-right: 0; }
@media (max-width: 560px) { #categoryGrid .category-card { width: 118px; margin-right: .55rem; } }

/* ---------- Deals ---------- */
.deals { padding: 3.2rem 0 4rem; }
.deals-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem; }
/* Category filter buttons — single-line, horizontally scrollable bar.
   Uses inline-flow (not a flex container) because iOS Safari is unreliable
   at touch-scrolling an overflowing flex row. */
.filter-pills {
  display: block; white-space: nowrap;
  min-width: 0; max-width: 100%;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;    /* momentum swipe on iOS */
  overscroll-behavior-x: contain;       /* don't trigger iOS back-swipe */
  scrollbar-width: none;                 /* hide scrollbar: Firefox */
  scroll-snap-type: x proximity;
  padding: .35rem .1rem .55rem; margin: 0 -.1rem;
}
.filter-pills::-webkit-scrollbar { display: none; }   /* hide scrollbar: WebKit */
.pill {
  display: inline-flex; align-items: center; gap: .4rem; vertical-align: middle;
  scroll-snap-align: start; margin-right: .55rem;
  background: var(--bg-elev); border: 1px solid var(--line); color: var(--text);
  padding: .5rem 1.05rem; border-radius: 999px;
  font-family: 'Sora', sans-serif; font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.pill:last-child { margin-right: 0; }
.pill:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--ink); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.pill:active { transform: translateY(0); }
.pill.active { background: var(--grad-flame-h); color: #1a0d00; border-color: transparent; font-weight: 700; box-shadow: 0 8px 20px rgba(255,122,24,.32); }
.pill.active:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,122,24,.42); }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 620px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: .9rem; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(5, 1fr); gap: 1.1rem; } }
.product-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #3a3a46; }
.product-thumb { position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; background: linear-gradient(135deg, #1c1c24, #14141a); }
.product-thumb.has-img { background: var(--ink); padding: 0; }
.product-thumb.has-img img { width: 100%; height: 100%; object-fit: cover; }
/* Amazon deal photos are studio shots on white — show the WHOLE product (like the popup), not a zoomed crop */
#amazonGrid .product-thumb.has-img { background: #fff; }
#amazonGrid .product-thumb.has-img img { object-fit: contain; padding: .6rem; box-sizing: border-box; }
.discount-badge { position: absolute; top: 0; left: 0; background: linear-gradient(135deg, #ff4d4d, #d40000); color: #fff; font-family: 'Sora', sans-serif; font-weight: 800; font-size: .92rem; padding: .34rem .72rem; border-radius: var(--radius) 0 14px 0; z-index: 2; box-shadow: 2px 2px 9px rgba(0,0,0,.25); }
.product-body { padding: .5rem .55rem .6rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { display: none; }
.product-name { font-weight: 600; font-size: .74rem; margin: 0 0 .35rem; color: var(--ink); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.1em; }
.product-rating { display: none; }
.price-row { display: flex; align-items: baseline; gap: .3rem; margin-top: auto; flex-wrap: wrap; }
.price-now { font-size: .92rem; font-weight: 700; color: var(--ink); font-family: 'Sora', sans-serif; }
.price-was { font-size: .68rem; color: var(--muted); text-decoration: line-through; }
.price-save { display: none; }
.price-off { font-family: 'Sora', sans-serif; font-weight: 800; font-size: .68rem; color: #fff; background: linear-gradient(135deg,#ff3b30,#c40000); padding: .1rem .4rem; border-radius: 6px; letter-spacing: .01em; }
.ship-note { display: none; }
.product-btn { margin-top: .45rem; background: var(--grad-flame-h); color: #1a0d00; border: none; border-radius: 8px; padding: .4rem; font-weight: 700; font-size: .72rem; cursor: pointer; font-family: 'Inter', sans-serif; transition: transform .15s ease, box-shadow .15s ease; }
.product-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(255,122,24,.35); }
.no-results { text-align: center; color: var(--muted); padding: 3rem 0; font-size: 1.05rem; }

/* ---------- Trust badges strip ---------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.5rem 0; background: var(--bg-elev); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.trust-item { display: flex; align-items: center; gap: .8rem; }
.trust-ico { font-size: 1.6rem; flex-shrink: 0; }
.trust-item strong { display: block; color: var(--ink); font-size: .92rem; }
.trust-item small { color: var(--muted); font-size: .8rem; }
/* Minimal one-line trust bar at the very top of the store page */
.trust-mini { border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.trust-mini-inner {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  white-space: nowrap; overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: .5rem 0;
}
.trust-mini-inner::-webkit-scrollbar { display: none; }
.tm-item { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 500; color: var(--muted); }
@media (max-width: 560px) { .trust-mini-inner { justify-content: flex-start; gap: 1.1rem; } .tm-item { font-size: .72rem; } }

/* ---------- Reviews ---------- */
.reviews { padding: 3.5rem 0 1rem; }
.reviews-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
/* On phones the header wraps — keep the "Write a review" button on the right */
@media (max-width: 560px) {
  .reviews-head .section-title { flex: 1 1 100%; }
  .reviews-head #writeReviewBtn { margin-left: auto; }
}
.review-form { max-width: 520px; margin: 1.8rem auto 0; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .7rem; }
.review-form h3 { font-size: 1.1rem; }
.review-form input, .review-form textarea { padding: .7rem 1rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; font-size: .95rem; font-family: 'Inter', sans-serif; outline: none; }
.review-form input::placeholder, .review-form textarea::placeholder { color: var(--muted); }
.review-form input:focus, .review-form textarea:focus { border-color: var(--accent); }
.review-form textarea { resize: vertical; }
.review-form .btn-primary { align-self: flex-start; }
.star-pick { font-size: 1.6rem; color: #3a3a46; cursor: pointer; user-select: none; width: max-content; }
.star-pick span { transition: color .1s ease; }
.star-pick span.on { color: #ffc23d; }
.rv-msg { font-size: .88rem; font-weight: 600; }
.rv-msg.ok { color: var(--flame-1); }
.rv-msg.err { color: #ff9a9a; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.review-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.stars { color: #ffc23d; letter-spacing: .1em; margin-bottom: .6rem; }
.review-card p { color: var(--text); font-size: .92rem; line-height: 1.6; }
.reviewer { display: flex; align-items: center; gap: .6rem; margin-top: 1.1rem; }
.rv-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-flame); color: #1a0d00; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.reviewer strong { display: block; color: var(--ink); font-size: .88rem; }
.reviewer small { color: var(--accent-2); font-size: .76rem; }

/* ---------- TikTok social proof ---------- */
.tiktok-band { padding: 3rem 0; }
.tiktok-band-inner { background: radial-gradient(90% 130% at 100% 0%, rgba(255,122,24,.2), transparent 55%), var(--bg-elev); border: 1px solid var(--line); border-radius: 24px; padding: 2.4rem 2.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.tt-tag { display: inline-block; background: var(--accent-soft); border: 1px solid rgba(255,122,24,.3); color: var(--accent); padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; margin-bottom: .7rem; }
.tiktok-band-inner h2 { font-size: 1.6rem; color: var(--ink); }
.tiktok-band-inner p { color: var(--muted); margin-top: .3rem; }

/* ---------- Feedback ---------- */
.feedback { padding: 1rem 0 3rem; }
.feedback-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 24px; padding: 2.4rem; }
.feedback-copy h2 { font-size: 1.6rem; }
.feedback-copy p { color: var(--muted); margin-top: .5rem; }
.feedback-form { display: flex; flex-direction: column; gap: .7rem; }
.feedback-form input, .feedback-form textarea { padding: .75rem 1rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; font-size: .95rem; font-family: 'Inter', sans-serif; outline: none; }
.feedback-form input::placeholder, .feedback-form textarea::placeholder { color: var(--muted); }
.feedback-form input:focus, .feedback-form textarea:focus { border-color: var(--accent); }
.feedback-form textarea { resize: vertical; }
.feedback-form .btn-primary { align-self: flex-start; }
.fb-msg { font-size: .88rem; font-weight: 600; }
.fb-msg.ok { color: var(--flame-1); }
.fb-msg.err { color: #ff9a9a; }

@media (max-width: 760px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .tiktok-band-inner { padding: 1.8rem; text-align: center; justify-content: center; }
  .feedback-inner { grid-template-columns: 1fr; padding: 1.6rem; }
}

/* ---------- Newsletter ---------- */
.newsletter { padding: 3.5rem 0; }
.newsletter-inner {
  position: relative; overflow: hidden;
  background: radial-gradient(80% 120% at 0% 0%, rgba(255,122,24,.22), transparent 55%), var(--bg-elev);
  border: 1px solid var(--line); color: var(--ink);
  border-radius: 24px; padding: 2.8rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.newsletter-inner h2 { font-size: 1.7rem; }
.newsletter-inner p { color: rgba(255,255,255,.7); margin-top: .3rem; }
.newsletter-actions { display: flex; flex-direction: column; gap: .7rem; align-items: stretch; }
.newsletter-actions .tt-follow { text-align: center; justify-content: center; }
.tt-ico { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -.18em; margin-right: .1rem; flex: 0 0 auto; }
/* TikTok brand button (top bar) — white pill so the logo shows on the black header */
.tt-btn { display: inline-flex; align-items: center; gap: .4rem; background: #fff; color: #010101; border-radius: 999px; padding: .46rem 1rem; font-family: 'Sora', sans-serif; font-weight: 700; font-size: .86rem; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,.28); transition: transform .15s ease, box-shadow .2s ease; }
.tt-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.34); color: #010101; }
.tt-btn .tt-ico { width: 1.15em; height: 1.15em; margin-right: 0; fill: #010101; filter: drop-shadow(1.1px 0 #FE2C55) drop-shadow(-1.1px 0 #25F4EE); }
/* beat .header-nav a colour so the black "TikTok" text stays visible on the white pill */
.header-nav a.tt-btn, .tt-btn.desk-link, .tt-btn.desk-link:hover { color: #010101; }
@media (max-width: 920px) { .tt-btn.desk-link { display: none; } }
.newsletter-account { display: inline-block; margin-top: 1rem; color: var(--accent); font-weight: 600; font-size: .9rem; text-decoration: none; }
.newsletter-account:hover { text-decoration: underline; }
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-form input { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: .8rem 1.3rem; font-size: .95rem; min-width: 240px; outline: none; }
.newsletter-form input::placeholder { color: var(--muted); }

/* ---------- Join / account promo ---------- */
.join-promo { padding: 2rem 0; }
.join-inner { background: radial-gradient(80% 130% at 0% 0%, rgba(255,122,24,.18), transparent 55%), var(--bg-elev); border: 1px solid var(--line); border-radius: 24px; padding: 2.4rem 2.8rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.join-tag { display: inline-block; background: var(--accent-soft); border: 1px solid rgba(255,122,24,.3); color: var(--accent); padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; margin-bottom: .8rem; }
/* darker orange in light theme so these pills stay readable on the pale background */
html.theme-light .tt-tag, html.theme-light .join-tag { color: #b8480a; border-color: rgba(184,72,10,.35); }
.join-copy h2 { font-size: 1.6rem; color: var(--ink); }
.join-perks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.4rem; margin-top: 1rem; }
.join-perks li { color: var(--text); font-size: .9rem; }
.join-promo .btn-primary { white-space: nowrap; }
@media (max-width: 640px) { .join-inner { padding: 1.8rem; text-align: left; } .join-perks { grid-template-columns: 1fr; } }

/* ---------- Install app banner ---------- */
.install-banner { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 250; width: min(440px, calc(100% - 24px)); display: flex; align-items: center; gap: .8rem; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--shadow-lg); }
.ib-ico { font-size: 1.5rem; }
.ib-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ib-text strong { color: var(--ink); font-size: .9rem; }
.ib-text span { color: var(--muted); font-size: .78rem; }
.ib-install { background: var(--grad-flame-h); color: #1a0d00; border: none; border-radius: 999px; padding: .5rem 1rem; font-weight: 700; font-size: .82rem; cursor: pointer; font-family: 'Inter', sans-serif; white-space: nowrap; }
.ib-close { background: none; border: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: .2rem .3rem; }

/* ---------- Footer ---------- */
/* Footer is always dark — fixed light text in BOTH themes (light-theme vars made it dark-on-black). */
.site-footer { background: #08080b; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.72); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.footer-brand { max-width: 280px; }
.footer-brand p { color: rgba(255,255,255,.62); margin-top: .7rem; font-size: .9rem; }
.footer-social { display: flex; gap: .8rem; margin-top: 1rem; }
.footer-social a { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .4rem .9rem; font-size: .82rem; font-weight: 600; color: #fff; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-links { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-links h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.footer-links a { display: block; font-size: .9rem; color: rgba(255,255,255,.68); margin-bottom: .45rem; transition: color .15s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.4rem; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.62); }
.admin-link { color: rgba(255,255,255,.72); text-decoration: underline; }
.admin-link:hover { color: #fff; }

/* ---------- Overlay ---------- */
.overlay { position: fixed; top: var(--header-h, 0px); left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }

/* ---------- Cart drawer ---------- */
.cart-drawer { position: fixed; top: var(--header-h, 0px); right: 0; height: calc(100dvh - var(--header-h, 0px)); width: min(400px, 90vw); background: var(--bg-elev); border-left: 1px solid var(--line); border-top-left-radius: 18px; z-index: 95; box-shadow: -20px 0 60px rgba(0,0,0,.5); transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; will-change: transform; }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); }
.cart-drawer-head h3 { font-size: 1.2rem; }
.cart-drawer-head button { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 3rem 0; }
.cart-item { display: flex; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.cart-item-thumb { width: 52px; height: 52px; border-radius: 10px; background: linear-gradient(135deg,#1c1c24,#14141a); display: grid; place-items: center; font-size: 1.5rem; overflow: hidden; flex-shrink: 0; }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); }
.cart-item-price { color: var(--accent); font-weight: 700; font-size: .9rem; }
.qty { display: flex; align-items: center; gap: .5rem; }
.qty button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; font-size: 1rem; line-height: 1; }
.qty button:hover { border-color: var(--accent); color: var(--accent); }
.cart-foot { border-top: 1px solid var(--line); padding: 1.3rem 1.5rem; }
.cart-discount-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; font-size: .9rem; color: var(--flame-1); font-weight: 600; }
.cart-discount-row .disc-amt { color: var(--accent-2); }
.cart-discount-row .member-cta { color: var(--accent); font-weight: 600; }
.cart-discount-row .member-cta:hover { text-decoration: underline; }
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 1.1rem; color: var(--ink); }
.cart-total-row strong { font-family: 'Sora', sans-serif; }
.cart-checkout { width: 100%; }

/* ---------- Checkout modal ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility 0s linear .22s; }
.modal.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .22s ease; }
/* Product popups sit just below the top bar (not vertically centred), so the gap to the
   bar is small and consistent on every shop instead of floating in the middle. */
.modal:has(.pm-box) { align-items: flex-start; }
.modal-box { position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; width: min(460px, 100%); max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--shadow-lg); transform: scale(.94); opacity: .6; transition: transform .34s cubic-bezier(.34, 1.26, .5, 1), opacity .25s ease; }
.modal.open .modal-box { transform: scale(1); opacity: 1; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--muted); }
.modal-box h3 { font-size: 1.4rem; }
.modal-sub { color: var(--muted); margin: .3rem 0 1.2rem; font-size: .95rem; }
.form-row { margin-bottom: .7rem; }
.form-row input { width: 100%; padding: .75rem 1rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; font-size: .95rem; font-family: 'Inter', sans-serif; outline: none; }
.form-row input::placeholder { color: var(--muted); }
.form-row input:focus { border-color: var(--accent); }
.form-row-split { display: flex; gap: .6rem; }
.checkout-summary { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin: 1rem 0; font-size: .9rem; }
.sum-row { display: flex; justify-content: space-between; padding: .2rem 0; }
.sum-total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .5rem; font-weight: 700; font-family: 'Sora', sans-serif; color: var(--ink); }
.pay-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: .8rem; }
.order-confirm { text-align: center; padding: 1rem 0; }
.confirm-check { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; background: var(--grad-flame); color: #1a0d00; font-size: 1.8rem; display: grid; place-items: center; }
.order-confirm p { color: var(--muted); margin: .5rem 0 1.3rem; }

/* ---------- Product detail modal ---------- */
.pm-box { width: min(840px, 100%); padding: 2.2rem; }
.pm-top { display: flex; gap: 1.6rem; margin-bottom: 1.2rem; }
.pm-img { width: 320px; height: 320px; border-radius: 16px; overflow: hidden; background: #fff; display: grid; place-items: center; font-size: 3.4rem; flex-shrink: 0; cursor: zoom-in; position: relative; padding: .7rem; box-sizing: border-box; }
html:not(.theme-light) .pm-img { background: var(--bg-elev-2, #242424); }
.pm-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.pm-img:hover img { transform: scale(1.22); }

/* Image lightbox */
.img-lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .28s ease, visibility 0s linear .28s; cursor: zoom-out; }
.img-lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .28s ease; }
.img-lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; background: #fff; border-radius: 10px; transform: scale(.85); transition: transform .32s cubic-bezier(.34, 1.26, .5, 1); }
.img-lightbox.open img { transform: scale(1); }
.lb-close { position: absolute; top: 1rem; right: 1.2rem; background: rgba(255,255,255,.14); border: none; color: var(--ink); width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 2; }
.lb-close:hover { background: rgba(255,255,255,.28); }
.pm-details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 1.3rem; }
.pm-details summary { padding: .8rem 1rem; cursor: pointer; font-weight: 600; color: var(--ink); font-size: .9rem; list-style: none; }
.pm-details summary::-webkit-details-marker { display: none; }
.pm-details summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.pm-details[open] summary::after { content: "−"; }
.pm-details p { padding: 0 1rem 1rem; color: var(--text); font-size: .88rem; line-height: 1.6; white-space: pre-line; }
.pm-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); font-weight: 700; }
.pm-head h3 { font-size: 1.45rem; line-height: 1.25; margin: .4rem 0 .7rem; }
.pm-price-row { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.pm-price { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--ink); }
.pm-was s { color: var(--muted); font-size: .95rem; }
.pm-off { color: #d40000; font-weight: 700; font-size: .85rem; }
.pm-info { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; margin: 0 0 1.3rem; padding: .9rem 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.pm-info li { font-size: .82rem; color: var(--text); }
.pm-label { display: block; font-weight: 600; font-size: .85rem; color: var(--text); margin-bottom: .8rem; }
.pm-label select { width: 100%; margin-top: .4rem; padding: .75rem 1rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; font-size: .95rem; font-family: 'Inter', sans-serif; outline: none; }
.pm-label select:focus { border-color: var(--accent); }
.pm-stock { font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
.pm-stock.in { color: var(--accent-2); }
.pm-stock.low { color: var(--flame-1); }
.pm-stock.out { color: #ff9a9a; }
/* reviews inside modal */
.pm-reviews { margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.pm-rev-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.pm-rev-head h4 { font-size: 1rem; }
.btn-mini2 { background: var(--bg-elev-2); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: .4rem .8rem; font-size: .78rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-mini2:hover { border-color: var(--accent); }
.pm-rev-empty { color: var(--muted); font-size: .88rem; padding: .4rem 0 1rem; }
.pm-rev { border-bottom: 1px solid var(--line); padding: .7rem 0; }
.pm-rev:last-child { border-bottom: none; }
.pm-rev-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.pm-rev-top .stars { color: #ffc23d; font-size: .85rem; letter-spacing: .08em; }
.pm-rev-top strong { color: var(--ink); font-size: .85rem; }
.pm-rev p { color: var(--text); font-size: .88rem; }
.pm-rev-form { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.pm-rev-form input, .pm-rev-form textarea { padding: .65rem .9rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; font-size: .9rem; font-family: 'Inter', sans-serif; outline: none; }
.pm-rev-form input:focus, .pm-rev-form textarea:focus { border-color: var(--accent); }
.pm-rev-msg { font-size: .85rem; font-weight: 600; }
.pm-rev-msg.ok { color: var(--flame-1); }
.pm-rev-msg.err { color: #ff9a9a; }
@media (max-width: 560px) {
  .modal-box { padding: 1.3rem; border-radius: 18px; }
  .pm-box { max-height: 94vh; }
  .pm-box::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 4px; background: var(--line); margin: -.6rem auto 1rem; }
  .pm-top { flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
  .pm-img { width: 100%; max-width: 340px; height: auto; aspect-ratio: 1 / 1; }
  .pm-price-row { justify-content: center; }
  .pm-head h3 { font-size: 1.25rem; }
  .pm-price { font-size: 1.6rem; }
}

/* ---------- Admin page ---------- */
.admin-body { background: var(--bg); }
.admin-tag { font-weight: 600; color: var(--accent); margin-left: .5rem; }
.admin-main { padding: 2.5rem 0 4rem; }
.admin-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: start; }
.admin-head-actions { display: flex; align-items: center; gap: .5rem; }
.btn-mini { background: var(--bg-elev-2); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: .35rem .7rem; font-size: .78rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-mini:hover { border-color: var(--accent); }
.admin-list-scroll { max-height: 340px; overflow-y: auto; padding-right: .3rem; }
.admin-list-scroll::-webkit-scrollbar { width: 8px; }
.admin-list-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

/* Full-window product view */
.fw-modal { position: fixed; inset: 0; background: var(--bg); z-index: 200; display: flex; flex-direction: column; }
.fw-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.6rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fw-head h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .6rem; }
.fw-head-actions { display: flex; align-items: center; gap: .8rem; }
.fw-head-actions input { padding: .55rem 1rem; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); border-radius: 999px; font-size: .9rem; outline: none; min-width: 220px; }
.fw-head-actions input:focus { border-color: var(--accent); }
.fw-close { background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.fw-close:hover { border-color: var(--accent); }
.fw-body { flex: 1; overflow-y: auto; padding: 1.6rem; }
.fw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .8rem; max-width: 1200px; margin: 0 auto; align-items: start; }
.fw-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.fw-item .admin-item { border: none; border-radius: 0; }
.fw-stock-btn { width: 100%; text-align: left; background: var(--bg); border: none; border-top: 1px solid var(--line); color: var(--accent); padding: .55rem .8rem; font-size: .82rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; }
.fw-stock-btn:hover { background: var(--bg-elev-2); }
.fw-vars { background: var(--bg); border-top: 1px solid var(--line); padding: .4rem .6rem; }
.fw-var { display: flex; align-items: center; gap: .6rem; padding: .35rem .3rem; border-bottom: 1px solid var(--line); font-size: .82rem; }
.fw-var:last-child { border-bottom: none; }
.fw-var-name { flex: 1; color: var(--ink); }
.fw-var-stock { font-weight: 600; color: var(--muted); font-size: .78rem; }
.fw-var-stock.in { color: var(--accent-2); }
.fw-var-stock.out { color: #ff9a9a; }
.fw-var-del { background: none; border: none; cursor: pointer; opacity: .6; font-size: .9rem; }
.fw-var-del:hover { opacity: 1; }
.admin-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.admin-card h1 { font-size: 1.5rem; }
.admin-card h2 { font-size: 1.25rem; }
.admin-help { color: var(--muted); font-size: .9rem; margin: .4rem 0 1.4rem; }
.admin-card label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .9rem; color: var(--text); }
.admin-card input, .admin-card select, .admin-card textarea { width: 100%; margin-top: .35rem; padding: .7rem .9rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; font-size: .95rem; font-family: 'Inter', sans-serif; outline: none; font-weight: 400; box-sizing: border-box; }
.admin-card textarea { resize: vertical; min-height: 3.4rem; line-height: 1.4; }
.admin-card input::placeholder, .admin-card textarea::placeholder { color: var(--muted); }
.admin-card input:focus, .admin-card select:focus, .admin-card textarea:focus { border-color: var(--accent); }
.admin-split { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.admin-preview { display: flex; align-items: center; gap: 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: 1.2rem; }
.admin-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.admin-preview strong { color: var(--ink); }
.preview-price { margin-top: .3rem; }
.pp-now { font-weight: 700; color: var(--ink); }
.pp-was { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.pp-off { color: var(--accent); font-weight: 700; font-size: .8rem; }
.admin-saved { color: var(--flame-1); font-weight: 600; text-align: center; margin-top: .9rem; }
.profit-box { border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.2rem; font-size: .85rem; line-height: 1.5; }
.profit-box.ok { background: rgba(22,199,132,.12); border: 1px solid rgba(22,199,132,.35); color: #b8f0d8; }
.profit-box.loss { background: rgba(255,80,80,.12); border: 1px solid rgba(255,80,80,.4); color: #ffb3b3; }
.profit-box strong { color: var(--ink); }
/* Live "% off" hint under the price fields in the admin add-product forms */
.off-hint { font-size: .82rem; font-weight: 600; padding: .5rem .75rem; border-radius: 10px; margin: -.2rem 0 .4rem; }
.off-hint.ok { background: rgba(22,199,132,.12); border: 1px solid rgba(22,199,132,.35); color: #16a34a; }
.off-hint.warn { background: rgba(255,153,0,.12); border: 1px solid rgba(255,153,0,.35); color: #b8480a; }
.off-hint strong { color: inherit; }
.admin-list-head { display: flex; align-items: center; justify-content: space-between; }
.admin-count { background: var(--grad-flame); color: #1a0d00; font-size: .8rem; font-weight: 800; padding: .1rem .6rem; border-radius: 999px; }
.admin-list { display: flex; flex-direction: column; gap: .6rem; }
.admin-empty { color: var(--muted); text-align: center; padding: 2rem 0; }
.admin-item { display: flex; align-items: center; gap: .8rem; border: 1px solid var(--line); border-radius: 12px; padding: .7rem; }
.admin-item-thumb { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg,#1c1c24,#14141a); font-size: 1.3rem; flex-shrink: 0; }
.admin-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-item-info { flex: 1; min-width: 0; }
.admin-item-info strong { display: block; font-size: .9rem; color: var(--ink); }
.admin-cj { display: inline-block; margin-top: .28rem; font-size: .72rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.admin-cj:hover { text-decoration: underline; }
.admin-item-info span { font-size: .82rem; color: var(--muted); }
.admin-item-info s { color: var(--muted); }
.admin-del { background: none; border: none; cursor: pointer; font-size: 1rem; opacity: .6; }
.admin-del:hover { opacity: 1; }
.admin-edit { background: none; border: none; cursor: pointer; font-size: .95rem; opacity: .7; }
.admin-edit:hover { opacity: 1; }
#editModal { background: rgba(0,0,0,.68); backdrop-filter: blur(2px); }
#editModal .modal-box { width: min(560px, 100%); }
.btn-secondary-dark { background: var(--bg-elev-2); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1.4rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-secondary-dark:hover { border-color: var(--accent); }

/* ---------- Quick import ---------- */
.quick-import { margin-bottom: 1.5rem; border-color: rgba(255,122,24,.35); }
.quick-import h1 { font-size: 1.35rem; }
.quick-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.quick-row input { flex: 1; min-width: 240px; padding: .8rem 1rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; font-size: .95rem; font-family: 'Inter', sans-serif; outline: none; }
.quick-row input::placeholder { color: var(--muted); }
.quick-row input:focus { border-color: var(--accent); }
.quick-row .btn-primary { white-space: nowrap; }
.quick-status { margin-top: .9rem; font-size: .88rem; color: var(--muted); }
.quick-status.ok { color: var(--flame-1); }
.quick-status.err { color: #ff9a9a; }

/* ---------- Admin login gate ---------- */
.login-wrap { display: flex; justify-content: center; padding: 4rem 0; }
.login-card { max-width: 380px; width: 100%; text-align: center; }
.login-card h1 { font-size: 1.5rem; margin-top: .5rem; }
.login-card .flame { width: 40px; height: 48px; }
.login-card form { text-align: left; margin-top: 1rem; }
.login-error { color: #ff6b6b; font-size: .85rem; margin-top: .8rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .search-bar { order: 3; max-width: none; flex-basis: 100%; }
  .header-inner { flex-wrap: wrap; }
  .header-nav { margin-left: auto; }
  .hero-stats { gap: 1.5rem; }
  .newsletter-inner { text-align: center; justify-content: center; }
  .admin-grid { grid-template-columns: 1fr; }
}

/* ---------- Support / refund page ---------- */
.support-hero { padding: 3rem 0 1rem; text-align: center; background: radial-gradient(60% 90% at 50% 0%, rgba(255,122,24,.14), transparent 60%), var(--bg); }
.support-hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; }
.support-hero p { color: var(--muted); max-width: 540px; margin: .8rem auto 0; }
.support-main { display: grid; grid-template-columns: 1.4fr .9fr; gap: 1.8rem; padding: 2rem 0 4rem; align-items: start; }
.support-form { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.support-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .85rem; color: var(--text); }
.support-form input, .support-form textarea, .support-form select { padding: .75rem 1rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; font-size: .95rem; font-family: 'Inter', sans-serif; outline: none; font-weight: 400; }
.support-form input:focus, .support-form textarea:focus, .support-form select:focus { border-color: var(--accent); }
.support-form textarea { resize: vertical; }
.sf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sf-photos { border: 1px dashed var(--line); border-radius: 12px; padding: 1rem; }
.sf-photo-label { font-weight: 600; font-size: .82rem; color: var(--text); display: block; }
.sf-previews { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.sf-thumb { position: relative; width: 74px; height: 74px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.sf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sf-thumb button { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.6); color: #fff; border: none; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: .7rem; line-height: 1; }
.sf-photos .btn-secondary-dark { margin-top: .7rem; }
.sf-msg { font-size: .9rem; font-weight: 600; }
.sf-msg.ok { color: var(--accent-2); }
.sf-msg.err { color: #ff9a9a; }
.sf-note { color: var(--muted); font-size: .78rem; text-align: center; }
.support-help { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.support-help h3 { font-size: 1.05rem; margin-bottom: 1rem; }
@media (max-width: 760px) { .support-main { grid-template-columns: 1fr; } .sf-row2 { grid-template-columns: 1fr; } }

/* ---------- Load more (page 2) + reward ---------- */
.load-more-wrap { display: flex; justify-content: center; margin-top: 2rem; }
.btn-loadmore { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: .12rem; padding: .95rem 2.6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem; cursor: pointer; overflow: hidden; transition: transform .15s ease, border-color .2s ease, box-shadow .25s ease; }
.btn-loadmore:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,122,24,.22); }
.btn-loadmore:active { transform: translateY(0) scale(.98); }
.btn-loadmore .lm-sub { font-family: 'Inter', sans-serif; font-weight: 500; font-size: .74rem; color: var(--muted); }
.btn-loadmore::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 32%, rgba(255,255,255,.16) 50%, transparent 68%); transform: translateX(-130%); }
.btn-loadmore:hover::after { animation: lmShine .9s ease; }
@keyframes lmShine { to { transform: translateX(130%); } }

@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(.94); } to { opacity: 1; transform: none; } }
.product-card.card-enter { animation: cardIn .55s cubic-bezier(.2,.75,.3,1) both; }
@media (prefers-reduced-motion: reduce) { .product-card.card-enter { animation: none; } }

.deal-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 26px); z-index: 95; background: var(--grad-flame, linear-gradient(120deg,#ff7a18,#ff3d7f)); color: #1a0d00; font-family: 'Sora', sans-serif; font-weight: 800; font-size: .95rem; padding: .72rem 1.35rem; border-radius: 999px; box-shadow: 0 14px 36px rgba(255,61,127,.42); opacity: 0; pointer-events: none; transition: transform .42s cubic-bezier(.2,1.25,.3,1), opacity .35s ease; }
.deal-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Categories popup ---------- */
.cat-modal-box { width: min(680px, 100%); padding: 2rem 2rem 2.2rem; }
.cat-modal-title { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.cat-modal-sub { color: var(--muted); font-size: .9rem; margin: .3rem 0 1.3rem; }
.cat-modal-grid { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; }
.cat-modal-grid .category-card { animation: cardIn .4s cubic-bezier(.2,.75,.3,1) both; }
@media (max-width: 480px) { .cat-modal-grid { grid-template-columns: 1fr 1fr; } .cat-modal-box { padding: 1.6rem 1.3rem 1.8rem; } }
@media (prefers-reduced-motion: reduce) { .cat-modal-grid .category-card { animation: none; } }

/* ---------- Hero: two-column with rotating product advert ---------- */
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.hero-text { max-width: 620px; min-width: 0; }
.hero-legal { font-size: .78rem; color: var(--muted); margin: 1.6rem 0 0; opacity: .85; max-width: 460px; }

.hero-spotlight { display: flex; flex-direction: column; align-items: center; gap: .9rem; min-width: 0; width: 100%; }
.spot-label { font-family: 'Sora', sans-serif; font-weight: 700; font-size: .85rem; color: var(--accent); letter-spacing: .02em; }
.spot-card { position: relative; width: 100%; max-width: 420px; appearance: none; -webkit-appearance: none; font-family: inherit; color: inherit; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem; cursor: pointer; text-align: left; box-shadow: var(--shadow-lg); transition: transform .2s ease, border-color .2s ease; overflow: hidden; }
.spot-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.spot-card.in { animation: spotIn .5s cubic-bezier(.2,.75,.3,1); }
@keyframes spotIn { from { opacity: .2; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.spot-badge { position: absolute; top: 1rem; left: 1rem; z-index: 3; background: linear-gradient(135deg, #ff3b30, #c40000); color: #fff; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.6rem; line-height: 1; padding: .5rem .75rem; border-radius: 14px; box-shadow: 0 8px 22px rgba(196,0,0,.5); letter-spacing: -.02em; }
.spot-img { display: grid; place-items: center; min-height: 280px; background: #fff; border-radius: 14px; overflow: hidden; font-size: 4rem; padding: .8rem; }
.spot-img img { max-width: 100%; max-height: 300px; width: auto; height: auto; object-fit: contain; display: block; }
.spot-info { display: block; margin-top: 1rem; }
.spot-name { display: block; font-weight: 600; font-size: 1rem; color: var(--ink); line-height: 1.35; margin-bottom: .5rem; min-height: 2.6em; }
.spot-prices { display: flex; align-items: baseline; gap: .55rem; }
.spot-now { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.spot-was { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.spot-cta { display: block; margin-top: .9rem; color: var(--accent); font-weight: 700; font-size: .9rem; }
.spot-dots { display: flex; gap: .4rem; }
.spot-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--line); transition: background .25s ease, width .25s ease; }
.spot-dot.on { background: var(--accent); width: 18px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero-text { max-width: none; }
  .hero-spotlight { width: 100%; }
  .spot-card { max-width: 460px; margin: 0 auto; }
  .spot-img { min-height: 240px; }
}
@media (max-width: 480px) {
  .hero-spotlight { gap: .7rem; }
  .spot-card { max-width: 100%; padding: 1rem; border-radius: 18px; }
  .spot-img { min-height: 190px; border-radius: 12px; } .spot-img img { max-height: 210px; }
  .spot-badge { font-size: 1.35rem; padding: .38rem .58rem; top: .8rem; left: .8rem; border-radius: 11px; }
  .spot-info { margin-top: .85rem; }
  .spot-name { font-size: .98rem; min-height: 0; margin-bottom: .4rem; }
  .spot-prices { gap: .5rem; }
  .spot-now { font-size: 1.45rem; }
  .spot-cta { margin-top: .7rem; }
  .spot-label { font-size: .82rem; }
}

/* Spotlight badge pulse on each slide change */
@keyframes badgePulse { 0% { transform: scale(1); } 32% { transform: scale(1.2); } 62% { transform: scale(.95); } 100% { transform: scale(1); } }
.spot-badge.pulse { animation: badgePulse .6s cubic-bezier(.3,1.5,.4,1); }
@media (prefers-reduced-motion: reduce) { .spot-badge.pulse { animation: none; } }

/* ---------- Hero engagement panel (left side) ---------- */
.live-badge { gap: .5rem; }
.live-badge b { color: var(--ink); font-weight: 800; }
.live-dot { width: 8px; height: 8px; border-radius: 999px; background: #ff3b30; display: inline-block; animation: livePulse 1.5s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,48,.55); } 70% { box-shadow: 0 0 0 8px rgba(255,59,48,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); } }

.live-ticker { margin-top: 1.7rem; display: flex; align-items: center; min-height: 1.4rem; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.1rem; max-width: 520px; font-size: .86rem; color: var(--text); overflow: hidden; }
.live-ticker .lt-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-ticker.in .lt-text { animation: tickerIn .5s ease; }
@keyframes tickerIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.lt-text b { color: var(--ink); font-weight: 700; }

.hero-hooks { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }
.hook { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1.15rem; min-width: 128px; }
.hook-num { display: block; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.55rem; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.hook-num.timer { color: var(--accent); }
.hook-lbl { display: block; font-size: .72rem; color: var(--muted); margin-top: .35rem; }
.hook-num.bump { animation: numBump .45s ease; }
@keyframes numBump { 0% { transform: scale(1); } 40% { transform: scale(1.16); color: var(--accent); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) { .live-dot, .live-ticker.in .lt-text, .hook-num.bump { animation: none; } }
@media (max-width: 480px) { .hook { flex: 1; min-width: 0; padding: .7rem .6rem; text-align: center; } .hook-num { font-size: 1.25rem; } .live-ticker { font-size: .8rem; } }

/* ---------- Shop switcher ---------- */
.shop-switch { background: var(--bg-elev); border-bottom: 1px solid var(--line); padding: .6rem 0; }
.shop-switch-inner { display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap; }
.shop-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.15rem; border-radius: 999px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: .88rem; border: 1.5px solid transparent; text-decoration: none; white-space: nowrap; transition: transform .15s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.shop-tab:hover { transform: translateY(-1px); }
.shop-spire { color: #ff9147; border-color: rgba(255,122,24,.4); }
.shop-spire.active { background: linear-gradient(135deg,#ffb03d,#ff6a00); color: #241000; border-color: transparent; }
.shop-amazon { color: #ff9900; border-color: rgba(255,153,0,.45); }
.shop-amazon.active { background: #ff9900; color: #131a22; border-color: transparent; }
.shop-second { color: #34c366; border-color: rgba(34,197,94,.45); }
.shop-second.active { background: linear-gradient(135deg,#3ddc74,#16a34a); color: #04250f; border-color: transparent; }
@media (max-width: 420px) { .shop-tab { font-size: .8rem; padding: .45rem .85rem; } .shop-switch-inner { gap: .4rem; } }

/* ---------- 2nd hand shop ---------- */
.sh-hero { position: relative; padding: 3.2rem 0 1.4rem; text-align: center; background: radial-gradient(60% 80% at 50% -8%, rgba(34,197,94,.26), transparent 62%), var(--bg); }
.sh-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
.green-word { background: linear-gradient(135deg,#3ddc74,#16a34a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sh-hero p { color: var(--muted); max-width: 560px; margin: .9rem auto 0; }
.sh-badge { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.35); color: #7ee6a3; }
.sh-thumb { background: #fff; }
/* beat the shared `.product-thumb.has-img { background: var(--ink) }` so contained photos sit on white */
#shGrid .product-thumb.has-img { background: #fff; }
.sh-thumb.has-img img { object-fit: contain; padding: .5rem; }
.condition-badge { position: absolute; top: .45rem; right: .45rem; background: linear-gradient(135deg,#3ddc74,#16a34a); color: #04250f; font-family: 'Sora', sans-serif; font-weight: 800; font-size: .72rem; padding: .2rem .48rem; border-radius: 7px; z-index: 2; box-shadow: 0 3px 10px rgba(22,163,74,.35); }
.sold-tag { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: .12em; z-index: 3; }
.product-card.is-sold { opacity: .72; }
.sh-desc { color: var(--muted); font-size: .82rem; line-height: 1.4; margin: .1rem 0 .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-size { color: var(--accent); font-weight: 800; }

/* ---------- Amazon page accents ---------- */
.az-hero { position: relative; padding: 3.2rem 0 1.4rem; text-align: center; background: radial-gradient(60% 80% at 50% -8%, rgba(255,153,0,.22), transparent 62%), var(--bg); }
.az-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
.az-hero .flame-word { background: linear-gradient(135deg,#ffb84d,#ff9900); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.az-btn { display: inline-block; margin-top: .5rem; background: #ff9900; color: #131a22; font-weight: 700; padding: .55rem 1rem; border-radius: 9px; text-decoration: none; font-size: .86rem; transition: background .15s ease; }
.az-btn:hover { background: #ffab2e; }
.az-disclosure { color: var(--muted); font-size: .76rem; margin-top: 2rem; text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Shop switcher dropdown ---------- */
.shop-switch-inner { align-items: center; gap: .7rem; }
.shop-switch-label { color: var(--muted); font-size: .85rem; font-weight: 500; }
.shop-dd { position: relative; }
.shop-dd-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1.25rem; border-radius: 999px; border: none; font-family: 'Sora', sans-serif; font-weight: 800; font-size: .92rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: transform .15s ease, box-shadow .2s ease; }
.shop-dd-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.24); }
.shop-dd-arrow { font-size: .7rem; transition: transform .2s ease; }
.shop-dd-btn.open .shop-dd-arrow { transform: rotate(180deg); }
.shop-dd-btn.shop-spire { background: linear-gradient(135deg,#ffb03d,#ff6a00); color: #241000; }
.shop-dd-btn.shop-amazon { background: #ff9900; color: #131a22; }
.shop-dd-btn.shop-second { background: linear-gradient(135deg,#3ddc74,#16a34a); color: #04250f; }

.shop-dd-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: .4rem; box-shadow: var(--shadow-lg); z-index: 60; display: flex; flex-direction: column; gap: .25rem; min-width: 210px; }
.shop-dd-item { display: flex; align-items: center; gap: .5rem; padding: .65rem .85rem; border-radius: 10px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: .9rem; text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; }
.shop-dd-item.shop-spire { color: #ff9147; }
.shop-dd-item.shop-spire:hover, .shop-dd-item.shop-spire.active { background: rgba(255,122,24,.14); border-color: rgba(255,122,24,.4); }
.shop-dd-item.shop-amazon { color: #ff9900; }
.shop-dd-item.shop-amazon:hover, .shop-dd-item.shop-amazon.active { background: rgba(255,153,0,.14); border-color: rgba(255,153,0,.4); }
.shop-dd-item.shop-second { color: #34c366; }
.shop-dd-item.shop-second:hover, .shop-dd-item.shop-second.active { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.4); }
.shop-dd-item.active::after { content: "✓"; margin-left: auto; font-size: .85rem; }
@media (max-width: 420px) { .shop-switch-label { display: none; } .shop-dd-btn { font-size: .88rem; padding: .5rem 1.05rem; } }

/* ---------- Shop dropdown in header + seamless page swap (overrides) ---------- */
html { background: var(--bg); }               /* no white flash between shop pages */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn .22s ease both; }
body.page-leaving { opacity: 0; transition: opacity .22s ease; animation: none; }
@media (prefers-reduced-motion: reduce) { body, body.page-leaving { animation: none; transition: none; opacity: 1; } }

.shop-dd-btn .sdd-emoji { font-size: 1.15rem; }
.shop-dd-btn { padding: .6rem 1.4rem; font-size: 1rem; }
.site-header.scrolled .shop-dd-btn { padding: .48rem 1.1rem; font-size: .92rem; }
.shop-dd-menu { left: 50%; right: auto; transform: translateX(-50%); }

/* Picker is its own header element: desktop = right side (where "Deals" was); phone = its own centered row */
.header-inner.has-picker .logo { order: 0; }
.header-inner.has-picker .search-bar { order: 1; }
.header-inner.has-picker .shop-dd { order: 2; margin-left: auto; }
.header-inner.has-picker .header-nav { order: 3; margin-left: 0; }
@media (max-width: 780px) {
  /* Phone: logo (left) · shop picker (centered in the gap) · cart + menu (right); search on its own row.
     Everything below is sized so all four fit on ONE line and never wrap. */
  /* even vertical rhythm: same space above the row, between row & search, and below */
  .header-inner.has-picker { flex-wrap: wrap; column-gap: .5rem; row-gap: .6rem; padding: .6rem 0; }
  .header-inner.has-picker .logo { order: 1; }
  .header-inner.has-picker .shop-dd { order: 2; margin: 0 auto; }        /* normal pill, centered in the gap */
  .header-inner.has-picker .header-nav { order: 3; margin-left: 0; gap: .45rem; }
  .header-inner.has-picker .search-bar { order: 4; }
  /* Amazon page: no cart, so push the picker to the right next to the menu */
  .header-inner.has-picker.az-hdr .shop-dd { margin-left: auto; margin-right: 0; }
  .header-inner.has-picker.az-hdr .shop-dd-menu { left: auto; right: 0; transform: none; }
  .header-inner.has-picker .logo-flame-img { height: 24px; }
  .header-inner.has-picker .logo-text b { font-size: .82rem; }
  .header-inner.has-picker .logo-text .sub { font-size: .42rem; letter-spacing: .06em; }
  .header-inner.has-picker .shop-dd-btn { padding: .42rem 1.05rem; font-size: .82rem; gap: .3rem; }
  .header-inner.has-picker .shop-dd-btn .sdd-emoji { display: inline; font-size: 1rem; }
  .header-inner.has-picker .cart-btn { padding: .4rem .55rem; font-size: .95rem; }
  .header-inner.has-picker .menu-btn { width: 40px; height: 40px; font-size: 1.2rem; }
  .header-inner.has-picker .shop-dd-menu { top: calc(100% + 8px); bottom: auto; left: 50%; right: auto; transform: translateX(-50%); min-width: 190px; }
}

/* ---------- Curated shop grids (Amazon + 2nd hand): roomy on both sides ---------- */
#amazonGrid, #shGrid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 700px) { #amazonGrid, #shGrid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
@media (min-width: 1100px) { #amazonGrid, #shGrid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Light theme polish ---------- */
html.theme-light .product-thumb,
html.theme-light .cart-item-thumb,
html.theme-light .admin-item-thumb { background: linear-gradient(135deg, #f1eff7, #e7e4ef); }
html.theme-light .site-header { border-bottom-color: var(--line); }
html.theme-light .spot-card { box-shadow: 0 18px 40px rgba(20,15,30,.12); }
html.theme-light .live-badge b, html.theme-light .lt-text b { color: var(--ink); }
html.theme-light .deal-toast { color: #2a1200; }
html.theme-light .hero p { color: var(--text); }

/* ---------- Three discount shops band ---------- */
.shops-band { padding: 3.2rem 0 1rem; }
.shops-sub { color: var(--muted); text-align: center; max-width: 580px; margin: .4rem auto 2rem; }
.shops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.shop-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.8rem; border-radius: 20px; border: 1.5px solid var(--line); background: var(--bg-elev); text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.shop-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.shop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--c); }
.sc-emoji { font-size: 2.3rem; }
.shop-card h3 { font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 800; }
.shop-card p { color: var(--text); font-size: .92rem; line-height: 1.5; }
.shop-card p b { color: var(--c); }
.sc-go { margin-top: auto; padding-top: .4rem; font-weight: 800; color: var(--c); font-size: .92rem; font-family: 'Sora', sans-serif; }
.sc-spire { --c: #ff7a18; }
.sc-amazon { --c: #ff9900; }
.sc-second { --c: #1faf52; }
@media (max-width: 780px) { .shops-grid { grid-template-columns: 1fr; gap: 1rem; } .shop-card { padding: 1.5rem; } }

/* ---------- Keep the top bar dark in every theme ---------- */
html.theme-light .site-header {
  --bg-elev: #1a1a1a; --bg-elev-2: #242424; --line: #333333;
  --ink: #ffffff; --text: #c8c6d4; --muted: #8a879a;
  background: #000;
}

/* ---------- iOS PWA: black top bar fills the status-bar / Dynamic Island area ---------- */
html { background: var(--bg); }                  /* page-coloured (no black flash when switching shops) */
.site-header { padding-top: env(safe-area-inset-top, 0px); }

/* ---------- Popups: dim covers the full screen, the top bar stays pinned & bright
     above it, and the box is pushed below the bar — so the header is always visible. ---------- */
.modal { padding-top: calc(var(--header-h, 0px) + 1rem); }
.modal .modal-box { max-height: calc(100dvh - var(--header-h, 0px) - 2rem); }
/* A sticky header DETACHES once the scroll container becomes overflow:hidden during a scroll
   lock (it falls back to the top of the document, off-screen when scrolled). Pinning it as
   fixed keeps the bar visible above any open modal at every scroll position, on every page. */
body.no-scroll .site-header,
body[data-locked] .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 120; }

/* ---------- Three shops = main feature (big) ---------- */
.shops-band { padding: 3.4rem 0 2.2rem; }
.shops-head { text-align: center; margin-bottom: 2rem; }
.shops-head h2 { font-family: 'Sora', sans-serif; font-size: clamp(1.8rem, 4.5vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; }
.shops-head p { color: var(--muted); margin-top: .5rem; font-size: 1.05rem; }
.shops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.shop-card { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; padding: 2.3rem; border-radius: 24px; border: 1.5px solid var(--line); background: var(--bg-elev); color: var(--ink); text-decoration: none; position: relative; overflow: hidden; min-height: 250px; transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease; }
.shop-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 90% at 0% 0%, var(--tint), transparent 62%); pointer-events: none; }
.shop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--c); }
.sc-icon { font-size: 3rem; line-height: 1; position: relative; }
.shop-card h3 { font-family: 'Sora', sans-serif; font-size: 1.7rem; font-weight: 800; position: relative; }
.shop-card p { color: var(--text); font-size: 1rem; line-height: 1.55; position: relative; }
.shop-card p b { color: var(--c); }
.sc-btn { margin-top: auto; display: inline-block; padding: .7rem 1.5rem; border-radius: 999px; background: var(--c); color: var(--btn-ink); font-family: 'Sora', sans-serif; font-weight: 800; font-size: .95rem; position: relative; }
.sc-spire { --c: #ff7a18; --tint: rgba(255,122,24,.16); --btn-ink: #241000; }
.sc-amazon { --c: #ff9900; --tint: rgba(255,153,0,.16); --btn-ink: #241000; }
.sc-second { --c: #16a34a; --tint: rgba(22,163,74,.16); --btn-ink: #ffffff; }
@media (max-width: 820px) { .shops-grid { grid-template-columns: 1fr; gap: 1.1rem; } .shop-card { min-height: 0; padding: 1.8rem; } }

/* ---------- Shops band: marketing polish ---------- */
.shops-kicker { display: inline-block; font-family: 'Sora', sans-serif; font-weight: 800; font-size: .72rem; letter-spacing: .1em; color: var(--accent); background: var(--accent-soft); padding: .42rem .95rem; border-radius: 999px; margin-bottom: 1rem; }
.sc-top { display: flex; align-items: center; justify-content: space-between; width: 100%; position: relative; margin-bottom: .2rem; }
.sc-stat { font-family: 'Sora', sans-serif; font-weight: 800; font-size: .76rem; color: var(--c); background: var(--tint); padding: .38rem .75rem; border-radius: 999px; white-space: nowrap; }
.sc-btn { transition: gap .15s ease, transform .15s ease, box-shadow .2s ease; box-shadow: 0 6px 16px -4px var(--c); }
.shop-card:hover .sc-btn { transform: translateX(2px); box-shadow: 0 10px 22px -4px var(--c); }
html.theme-light .shop-card { box-shadow: 0 6px 20px rgba(20,15,30,.05); }

/* ---------- Shops band = landing hero feel ---------- */
.shops-band { background: radial-gradient(75% 55% at 50% -8%, var(--accent-soft), transparent 62%); padding-top: 2.6rem; }
.shops-band .shop-card { animation: cardIn .5s cubic-bezier(.2,.75,.3,1) both; }
.shops-band .shop-card:nth-child(2) { animation-delay: .09s; }
.shops-band .shop-card:nth-child(3) { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) { .shops-band .shop-card { animation: none; } }

/* ---------- Compact 3-shop row (top of site) ---------- */
.shops-band { padding: 1.6rem 0 1.2rem; }
.shops-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; max-width: 760px; margin: 0 auto; }
.shop-tile { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.3rem .5rem; border-radius: 18px; border: 1.6px solid var(--line); background: var(--bg-elev); text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease; }
.shop-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.shop-tile:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: var(--shadow); }
.st-icon { font-size: 2.2rem; line-height: 1; }
.st-name { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1rem; color: var(--ink); text-align: center; }
@media (max-width: 560px) { .shops-row { gap: .55rem; } .shop-tile { padding: 1rem .4rem; } .st-icon { font-size: 1.9rem; } .st-name { font-size: .8rem; } }

/* shop row now sits inside the hero, under the stats */
.hero-text .shops-row { margin-top: 1.4rem; max-width: none; }


/* ---------- Admin photo upload control ---------- */
.img-upload { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; flex-wrap: wrap; }
.img-upload-btn { background: var(--bg-elev-2); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: .5rem .85rem; font-size: .82rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; white-space: nowrap; }
.img-upload-btn:hover { border-color: var(--accent); }
.img-upload-btn:disabled { opacity: .6; cursor: default; }
.img-upload-msg { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* ---------- Forgot-password link ---------- */
.auth-link { display: block; margin: .85rem auto 0; background: none; border: none; color: var(--accent); font-family: 'Inter', sans-serif; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: underline; }
.auth-link:hover { color: var(--ink); }
.auth-link:disabled { opacity: .6; cursor: default; text-decoration: none; }

/* ---------- Order cards + order detail modal ---------- */
.order-card { display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; margin-bottom: .8rem; cursor: pointer; font-family: 'Inter', sans-serif; transition: border-color .15s ease, transform .15s ease, box-shadow .2s ease; }
.order-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.order-info { flex: 1; min-width: 0; }
.order-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.order-head strong { color: var(--ink); font-size: .95rem; }
.order-status { font-size: .7rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.st-delivered { background: rgba(34,197,94,.16); color: #16a34a; }
.st-shipped { background: rgba(255,153,0,.16); color: #cf7a00; }
.st-processing { background: rgba(120,120,140,.16); color: var(--muted); }
.order-items { color: var(--text); font-size: .82rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-total { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--ink); margin-top: .35rem; font-size: 1rem; }
.order-thumb { width: 66px; height: 66px; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; font-size: 1.7rem; flex-shrink: 0; }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }

.om-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.om-head h3 { font-size: 1.2rem; color: var(--ink); }
.om-date { color: var(--muted); font-size: .85rem; margin: .35rem 0 1.3rem; }
.om-section { margin-bottom: 1.3rem; }
.om-section h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .7rem; }
.omi { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.omi:last-child { border-bottom: none; }
.omi-thumb { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; background: #fff; display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.omi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.omi-info { display: flex; flex-direction: column; }
.omi-info strong { color: var(--ink); font-size: .9rem; }
.omi-info span { color: var(--muted); font-size: .8rem; }
.om-addr { color: var(--text); font-size: .9rem; line-height: 1.55; }
.om-total { display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; border-top: 1px solid var(--line); margin-bottom: 1.1rem; }
.om-total span { color: var(--text); font-weight: 600; }
.om-total strong { font-family: 'Sora', sans-serif; font-size: 1.35rem; color: var(--ink); }
.om-help { display: block; text-align: center; text-decoration: none; width: 100%; }

/* keep the order status badge clear of the ✕ close button */
.om-head { padding-right: 2rem; }

/* order detail action buttons */
.om-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: .3rem; }
.om-actions .btn-primary, .om-actions .btn-ghost { width: 100%; text-align: center; text-decoration: none; }
.om-actions .btn-ghost { padding: .7rem; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-weight: 600; }
.om-actions .btn-ghost:hover { border-color: var(--accent); color: var(--ink); }

/* ---------- Profile photo + Google sign-in ---------- */
.acct-avatar { overflow: hidden; }
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.6rem; }
.profile-avatar { width: 86px; height: 86px; border-radius: 50%; background: var(--grad-flame); display: grid; place-items: center; font-size: 2.3rem; color: #fff; overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.avatar-msg { font-size: .8rem; color: var(--muted); font-weight: 600; }

.auth-divider { display: flex; align-items: center; gap: .8rem; margin: 1.1rem 0; color: var(--muted); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; padding: .78rem; background: #fff; border: 1px solid #dcdae4; border-radius: 10px; color: #3c4043; font-weight: 600; font-family: 'Inter', sans-serif; font-size: .95rem; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.btn-google:hover { background: #f6f6fa; border-color: #c7c5d2; }

/* Apple sign-in button */
.btn-apple { display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; padding: .78rem; background: #000; border: 1px solid #000; border-radius: 10px; color: #fff; font-weight: 600; font-family: 'Inter', sans-serif; font-size: .95rem; cursor: pointer; margin-top: .55rem; transition: background .15s ease; }
.btn-apple:hover { background: #1c1c1e; }
.btn-apple svg { margin-top: -2px; }

/* ---------- About page ---------- */
.about-hero { padding: 3.2rem 0 1.4rem; text-align: center; background: radial-gradient(60% 80% at 50% -8%, var(--accent-soft), transparent 62%), var(--bg); }
.about-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.about-hero p { color: var(--muted); max-width: 540px; margin: .9rem auto 0; font-size: 1.05rem; }
.about-main { max-width: 820px; padding: 2rem 0 4rem; display: flex; flex-direction: column; gap: 1.4rem; }
.about-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.about-card h2 { font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 800; margin-bottom: .8rem; }
.about-card > p { color: var(--text); line-height: 1.65; }
.about-shops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.about-ico { font-size: 1.9rem; display: block; margin-bottom: .3rem; }
.about-shops strong { display: block; font-family: 'Sora', sans-serif; font-size: 1.05rem; margin-bottom: .3rem; color: var(--ink); }
.about-shops p { font-size: .9rem; color: var(--text); line-height: 1.5; }
.about-values { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.about-values li { color: var(--text); line-height: 1.5; }
.about-values strong { color: var(--ink); }
.about-cta { text-align: center; padding: 2.6rem 1.5rem; background: radial-gradient(80% 130% at 50% 0%, var(--accent-soft), transparent 60%), var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); }
.about-cta h2 { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 800; }
.about-cta p { color: var(--muted); margin: .5rem 0 1.4rem; }
.about-cta .btn-primary, .about-cta .btn-secondary { margin: .3rem; }
@media (max-width: 640px) { .about-shops { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Legal / About shared pages ---------- */
.legal-hero { padding: 2.8rem 0 1rem; text-align: center; background: radial-gradient(60% 80% at 50% -8%, var(--accent-soft), transparent 62%), var(--bg); }
.legal-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.legal-updated { color: var(--muted); font-size: .85rem; margin-top: .5rem; }
.legal-content { max-width: 780px; padding: 2rem 0 4rem; }
.legal-content h2 { font-family: 'Sora', sans-serif; font-size: 1.2rem; font-weight: 800; margin: 1.8rem 0 .7rem; color: var(--ink); }
.legal-content p, .legal-content li { color: var(--text); line-height: 1.7; font-size: .96rem; }
.legal-content ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .5rem; margin: .3rem 0; }
.legal-content a { color: var(--accent); font-weight: 600; }
.legal-content strong { color: var(--ink); }
.legal-contact { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
