/* =====================================================================
   FIRE MONKEY THEME: light, warm, flame accents (driven by theme vars)
   Loaded after store.css.
   ===================================================================== */
:root { --accent3: #c2410c; --shadow-warm: 0 18px 40px -18px color-mix(in srgb, var(--accent) 45%, transparent); }
body.mode-light { --shadow-lg: 0 24px 50px -20px rgb(120 50 10 / .28), 0 8px 18px -10px rgb(120 50 10 / .16); --shadow-sm: 0 1px 2px rgb(120 50 10 / .06), 0 6px 18px -8px rgb(120 50 10 / .14); }
body.mode-light .err { color: #d70015; }
body.mode-light .totals .disc, body.mode-light .ok-text { color: #1a8f3c; }
body.mode-light .warn-box { color: #8a4b00; }
body.mode-light .stock::before { background: #1fa64a; }
body.mode-light .drawer-backdrop { background: rgb(60 25 5 / .32); }
/* warm ambient glow behind the whole page */
body.flames { background-image: radial-gradient(900px 500px at 100% -10%, color-mix(in srgb, var(--accent2) 16%, transparent), transparent 70%), radial-gradient(700px 500px at -10% 30%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); background-repeat: no-repeat; background-attachment: fixed; }

.fire-text { background: linear-gradient(100deg, var(--accent3) 0%, var(--accent) 45%, var(--accent2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand img { height: 38px; width: 38px; border-radius: 11px; object-fit: cover; box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--accent) 60%, transparent); }
.brand-name { font-weight: 800; letter-spacing: -0.025em; }
.btn.gradient { background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%); box-shadow: var(--shadow-warm); }
.btn.gradient:hover { filter: brightness(1.05) saturate(1.1); }
.placeholder { background: radial-gradient(260px 180px at 70% 20%, color-mix(in srgb, var(--accent2) 30%, transparent), transparent), color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.placeholder img { width: 46%; height: auto; border-radius: 22%; opacity: .9; box-shadow: var(--shadow-warm); }
.line .thumb .placeholder img { width: 70%; }
.empty-mascot { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 16px; object-fit: cover; box-shadow: var(--shadow-warm); }

/* ---------- Mascot hero ---------- */
.hero-mascot { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.hero-mascot.h-large { min-height: min(86vh, 760px); }
.hero-mascot.h-medium { min-height: 560px; }
.hero-mascot.h-small { min-height: 420px; }
.flame-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.flame-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.flame-bg i:nth-child(1) { width: 560px; height: 560px; right: -120px; top: -140px; background: var(--accent2); }
.flame-bg i:nth-child(2) { width: 460px; height: 460px; right: 18%; bottom: -220px; background: var(--accent); opacity: .35; }
.flame-bg i:nth-child(3) { width: 380px; height: 380px; left: -160px; top: 30%; background: color-mix(in srgb, var(--accent2) 60%, #fff); opacity: .35; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; width: 100%; }
.hero-grid.centered { grid-template-columns: 1fr; text-align: center; }
.hero-grid.centered .hero-art { display: none; }
.hero-grid.centered .hero-actions, .hero-grid.centered .trust { justify-content: center; }
.hero-grid.centered .lead { margin-inline: auto; }
.hero-copy .eyebrow { margin: 0 0 14px; font-size: .9375rem; color: var(--accent3); }
.hero-copy .lead { font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.45; letter-spacing: -0.012em; color: var(--muted); max-width: 540px; margin: 20px 0 30px; }
.hero-copy .display { font-weight: 800; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.hero-art { position: relative; justify-self: center; width: min(460px, 100%); }
.hero-art img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 36px; box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--accent3) 70%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent2) 35%, transparent); transform: rotate(2deg); transition: transform .6s var(--spring); }
.hero-art:hover img { transform: rotate(0) scale(1.02); }
.art-glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, var(--accent2), var(--accent) 55%, transparent 72%); filter: blur(40px); opacity: .7; }

/* ---------- Section titles get a flame tick ---------- */
.section-head h2::before { content: ""; display: inline-block; width: 10px; height: 22px; margin-right: 12px; border-radius: 5px; vertical-align: -2px; background: linear-gradient(180deg, var(--accent2), var(--accent)); }
.group-section .section-head h2::before { display: none; }

/* category tiles without photos in light mode */
body.mode-light .cat-tile.noimg { background: radial-gradient(420px 260px at 85% 0%, color-mix(in srgb, var(--accent2) 55%, transparent), transparent), linear-gradient(135deg, var(--accent), var(--accent3)); }

/* ---------- Warehouse bits ---------- */
.ships { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.ships i, .wh-dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; flex: none; }
.wh-dot { margin-right: 6px; vertical-align: 1px; }
.wh-dot.lg { width: 12px; height: 12px; border-radius: 6px; margin-right: 10px; vertical-align: 2px; }
.ship-from { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: .9375rem; }
.ship-from .wh-dot { margin-top: 7px; }
.ship-row > span:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.ship-row small { width: 100%; color: var(--muted); font-size: .75rem; padding-left: 14px; }
.parcel-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 0; font-weight: 600; font-size: .875rem; }

/* ---------- Shop: filters ---------- */
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters-panel { position: sticky; top: 80px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.fp-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 4px; }
.fp-close, .filter-btn, .fp-apply { display: none !important; }
.fp-body { overflow-y: auto; padding: 4px 18px 8px; overscroll-behavior: contain; }
.fp-foot { padding: 12px 18px 16px; display: flex; gap: 8px; border-top: 1px solid var(--border); }
.fp-foot .btn { flex: 1; }
.fgroup { padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h4 { margin: 0 0 10px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fsearch { display: flex; width: 100%; height: 38px; }
.fsearch input { width: 100%; }
.check { position: relative; display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; padding: 7px 6px; margin: 0 -6px; border-radius: 10px; cursor: pointer; font-size: .9375rem; transition: background-color .15s; }
.check:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border); background: var(--bg); display: grid; place-items: center; margin-top: 1px; transition: background-color .15s, border-color .15s, transform .1s ease-out; }
.check:active .box { transform: scale(.88); }
.check input:checked + .box { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; }
.check input:checked + .box::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check input:focus-visible + .box { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; }
.check .ctext { line-height: 1.35; }
.check .ctext small { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.check .cnt { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.price-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; color: var(--muted); }
.price-row .input { height: 40px; }
.shop-bar { margin-bottom: 14px; }
.bar-right { display: flex; gap: 10px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.seg-mini { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--text) 7%, transparent); }
.seg-mini button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 500; color: var(--muted); transition: background-color .25s var(--spring), color .2s, box-shadow .25s; }
.seg-mini button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgb(0 0 0 / .12); font-weight: 600; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.active-filters:empty { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 14px; border-radius: 999px; border: 0; font-size: .8125rem; font-weight: 600; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent3); transition: transform .1s ease-out, background-color .15s; }
.fchip:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.fchip:active { transform: scale(.95); }
.fchip span { font-size: 1rem; line-height: 1; opacity: .7; }
.group-section { margin-bottom: 44px; }
.group-section .section-head { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.group-section h2 { font-size: 1.375rem; }
.shop-main .grid { --cols: var(--shop-cols, 3); }

/* ---------- Footer: flame edge ---------- */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--accent3), var(--accent), var(--accent2), var(--accent)); }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-btn, .fp-close, .fp-apply { display: inline-flex !important; }
  .filters-panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 90; max-height: 86vh; border-radius: 22px 22px 0 0; border: 0;
    background: var(--glass-strong); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
    box-shadow: var(--shadow-lg); transform: translateY(105%); visibility: hidden; transition: transform .45s var(--spring), visibility .45s;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .filters-panel.open { transform: none; visibility: visible; }
  .fp-head::before { content: ""; position: absolute; left: 50%; top: 7px; width: 38px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--text) 22%, transparent); transform: translateX(-50%); }
  .shop-main .grid { --cols: 3; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; }
  .hero-art { order: -1; width: min(260px, 70%); }
  .bar-right { width: 100%; margin-left: 0; }
  .bar-right .select { flex: 1; }
  .shop-main .grid { --cols: 2; }
  .brand-name { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .filters-panel { transition: opacity .2s, visibility .2s !important; }
  .hero-art img { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .filters-panel { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Ship-to country ---------- */
.shipto-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--text) 7%, transparent); font-size: .8125rem; font-weight: 600; transition: background-color .15s, transform .1s ease-out; }
.shipto-btn:hover { background: color-mix(in srgb, var(--text) 12%, transparent); }
.shipto-btn:active { transform: scale(.95); }
.flag { font-size: 1.1em; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.cty-list { display: grid; gap: 2px; padding-bottom: 20px; }
.cty { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: none; text-align: left; font-size: .9375rem; transition: background-color .12s; }
.cty:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.cty:active { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cty.on { background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 600; }
.cty small { margin-left: auto; color: var(--muted); }
.cty:disabled { opacity: .45; cursor: not-allowed; }
.dest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; padding: 10px 12px; margin-bottom: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: .8125rem; text-align: left; }
.dest .link { margin-left: auto; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent3); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ship-from.no-ship { border-color: color-mix(in srgb, #d70015 35%, var(--border)); background: color-mix(in srgb, #d70015 5%, var(--surface)); }
select.select-input { appearance: none; padding-right: 36px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
@media (max-width: 760px) { .shipto-btn .cc { display: none; } .shipto-btn { padding: 0 10px; } }

/* ---------- Checkout crypto estimate ---------- */
.crypto-est { margin: 4px 0; min-height: 4px; }
.crypto-est:empty { display: none; }
.est-loading { font-size: .8125rem; color: var(--muted); padding: 10px 14px; }
.est-amt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.est-amt span { font-size: .8125rem; color: var(--muted); }
.est-amt b { font: 700 1.25rem/1 var(--font-head); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--accent3); }
.est-sub { font-size: .75rem; color: var(--muted); padding: 6px 14px 0; }
.est-sub.err { color: #d70015; }

/* ---------- Category page background banner ---------- */
.shop-head.has-bg {
  position: relative; background-size: cover; background-position: center; border-radius: var(--radius);
  padding: 48px 32px; margin-bottom: 8px; overflow: hidden; isolation: isolate;
  box-shadow: var(--shadow-sm);
}
.shop-head.has-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(20 8 2 / .78) 0%, rgb(20 8 2 / .5) 60%, rgb(20 8 2 / .28) 100%);
}
.shop-head.has-bg .shop-head-inner { color: #fff; position: relative; }
.shop-head.has-bg #shopTitle { color: #fff; }
.shop-head.has-bg #shopDesc { color: rgb(255 255 255 / .85) !important; }
@media (max-width: 760px) { .shop-head.has-bg { padding: 32px 20px; } }
@media (prefers-reduced-transparency: reduce) { .shop-head.has-bg::after { background: rgb(20 8 2 / .8); } }

/* ---------- Checkout option checkbox ---------- */
.opt-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; padding: 4px 0; }
.opt-check input { position: absolute; opacity: 0; pointer-events: none; }
.opt-check .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--border); background: var(--bg); display: grid; place-items: center; margin-top: 1px; transition: background-color .15s, border-color .15s, transform .1s ease-out; }
.opt-check:active .box { transform: scale(.9); }
.opt-check input:checked + .box { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; }
.opt-check input:checked + .box::after { content: ""; width: 11px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.opt-check input:focus-visible + .box { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; }
.opt-check small { display: block; color: var(--muted); font-size: .8125rem; margin-top: 2px; }

/* ---------- Peptide calculator ---------- */
.calc { max-width: 920px; margin: 0 auto; padding: 48px 22px 24px; display: grid; gap: 26px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.calc-form { display: grid; gap: 16px; }
.unit-in { display: flex; align-items: stretch; gap: 8px; }
.unit-in .input { flex: 1; }
.unit-in > span { display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--text) 7%, transparent); font-weight: 600; color: var(--muted); }
.unit-in select { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 0 12px; font-weight: 600; }
.calc-out { display: grid; gap: 16px; align-content: start; min-height: 120px; }
.calc-hero { display: grid; gap: 2px; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent2) 14%, transparent)); }
.calc-hero span { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.calc-hero b { font: 800 2.25rem/1 var(--font-head); letter-spacing: -0.03em; color: var(--accent3); font-variant-numeric: tabular-nums; }
.calc-hero small { color: var(--muted); font-size: .8125rem; margin-top: 4px; }
.calc-rows { display: grid; gap: 1px; background: var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.calc-rows > div { background: var(--surface); padding: 12px 16px; display: grid; gap: 1px; }
.calc-rows span { font-size: .8125rem; color: var(--muted); }
.calc-rows b { font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-rows small { color: var(--muted); font-size: .8125rem; }
@media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr; } }

/* ---------- Shop category chooser ---------- */
.cat-choose { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 14px; margin-bottom: 4px; }
.cat-choose::-webkit-scrollbar { display: none; }
.cat-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .875rem; transition: border-color .15s, background-color .15s, transform .1s ease-out; }
.cat-pill:first-child { padding-left: 16px; }
.cat-pill:hover { border-color: var(--accent); }
.cat-pill:active { transform: scale(.96); }
.cat-pill.on { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; color: #fff; }
.cat-pill img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.cat-pill-dot { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.cat-pill small { font-weight: 600; opacity: .6; font-variant-numeric: tabular-nums; }
.cat-pill.on small { opacity: .85; }

/* ---------- Stack builder ---------- */
.stack-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-bottom: 24px; }
.stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.stk-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.stk-media { position: relative; aspect-ratio: 1; background: var(--surface); display: block; }
.stk-media img { width: 100%; height: 100%; object-fit: cover; }
.stk-info { padding: 12px; display: grid; gap: 8px; }
.stk-name { font-weight: 600; font-size: .9375rem; line-height: 1.3; letter-spacing: -0.01em; }
.stk-info .price { font-size: .9375rem; }
.stk-opt { height: 38px; }
.stk-info .btn { margin-top: 2px; }
.stack-summary { position: sticky; top: 80px; align-content: start; }
.stack-summary h3 { margin-bottom: 8px; }
.stack-summary .line { grid-template-columns: 56px 1fr auto; }
.stack-summary .thumb { width: 56px; height: 56px; }
@media (max-width: 900px) { .stack-layout { grid-template-columns: 1fr; } .stack-summary { position: static; order: -1; } }
