/* =====================================================================
   O2 — Bioactive Innovation & Regeneration
   Design system: azure #267db2 / yellow #FFD700 / white, scientific tone.
   Vanilla CSS, mobile-first, responsive.
   ===================================================================== */

/* ---- Tokens ---- */
:root {
  /* brand */
  --azure:        #267db2;
  --azure-ink:    #1c6a9c;   /* text-safe azure for small text/links */
  --azure-deep:   #123a55;   /* deep navy for headings */
  --azure-050:    #f2f8fc;
  --azure-100:    #e2eff8;
  --azure-200:    #c3ddee;
  --yellow:       #ffd700;
  --yellow-deep:  #b8930b;   /* text-safe gold on white */

  /* neutrals */
  --bg:           #ffffff;
  --surface:      #f7fafc;
  --surface-2:    #eef4f9;
  --ink:          #0f1b24;   /* near-black body */
  --ink-soft:     #46586a;   /* secondary text, >=4.5 on white */
  --ink-faint:    #7a8a99;
  --border:       #dce6ee;
  --border-strong:#c2d2df;

  /* type */
  --font-display: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-body:    "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, Consolas, monospace;

  /* scale */
  --r-sm: 8px;  --r-md: 12px;  --r-lg: 18px;  --r-pill: 999px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --maxw: 1200px;

  --header-h: 67px; /* 66px min-height + 1px bottom border */

  --shadow-sm: 0 1px 2px rgba(18,58,85,.06), 0 1px 3px rgba(18,58,85,.08);
  --shadow-md: 0 6px 16px rgba(18,58,85,.10), 0 2px 6px rgba(18,58,85,.06);
  --shadow-lg: 0 18px 40px rgba(18,58,85,.14), 0 6px 14px rgba(18,58,85,.08);
  --ring: 0 0 0 3px rgba(38,125,178,.35);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset ---- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--azure-ink); text-decoration: none; }
a:hover { color: var(--azure-deep); }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--azure-deep);
  line-height: 1.14; letter-spacing: -0.015em; margin: 0; font-weight: 600; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--sp-4); }
@media (min-width: 768px){ .container { padding-inline: var(--sp-5); } }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ---- Research-use top strip ---- */
.ruo-strip {
  background: var(--azure-deep); color: #dbeafe;
  font-size: 12.5px; letter-spacing: .01em;
}
.ruo-strip .container { display:flex; gap:var(--sp-2); align-items:center;
  justify-content:center; padding-block: 7px; text-align:center; }
.ruo-strip svg { flex:0 0 auto; color: var(--yellow); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display:flex; align-items:center; gap:var(--sp-4);
  min-height: 66px; }
.brand { display:flex; align-items:center; gap:var(--sp-3); margin-right:auto;
  color: var(--azure-deep); min-height:44px; }
.brand img { height: 42px; width:auto; }
.brand__fallback { display:flex; flex-direction:column; line-height:1.05; }
.brand__fallback b { font-family: var(--font-display); font-size: 18px;
  letter-spacing:-.02em; }
.brand__fallback span { font-size: 10.5px; letter-spacing:.14em;
  text-transform: uppercase; color: var(--azure-ink); font-weight:600; }

/* language toggle */
.lang { display:inline-flex; border:1px solid var(--border-strong);
  border-radius: var(--r-pill); overflow:hidden; background:#fff; }
.lang button { border:0; background:transparent; color:var(--ink-soft);
  padding: 7px 14px; font-size:13px; font-weight:600; letter-spacing:.03em;
  transition: background .15s var(--ease), color .15s var(--ease); }
.lang button[aria-pressed="true"] { background: var(--azure); color:#fff; }
.lang button:not([aria-pressed="true"]):hover { background: var(--azure-050); color: var(--azure-deep); }

/* ---- Buttons ---- */
.btn { display:inline-flex; align-items:center; justify-content:center;
  gap:var(--sp-2); border:1px solid transparent; border-radius: var(--r-md);
  padding: 12px 20px; font-weight:600; font-size:15px; letter-spacing:.01em;
  transition: transform .12s var(--ease), box-shadow .15s var(--ease),
    background .15s var(--ease), border-color .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--yellow); color: var(--azure-deep);
  box-shadow: var(--shadow-sm); }
.btn--primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px);
  background:#ffe14d; color: var(--azure-deep); }
.btn--azure { background: var(--azure); color:#fff; }
.btn--azure:hover { background:#2f8cc4; color:#fff; transform: translateY(-1px);
  box-shadow: var(--shadow-md); }
.btn--ghost { background:#fff; color:var(--azure-deep); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--azure); background: var(--azure-050); }
.btn--block { width:100%; }

/* ---- Hero ---- */
.hero { position: relative; overflow:hidden;
  background:
    radial-gradient(60% 120% at 50% -20%, var(--azure-050), transparent 60%),
    linear-gradient(180deg,#fff, #fbfdff);
  border-bottom: 1px solid var(--border); }
.hero__inner { padding-block: var(--sp-8) var(--sp-7); text-align:center;
  max-width: 780px; margin-inline:auto; }
.hero h1 { font-size: clamp(30px, 6vw, 54px); font-weight:600; }
.hero h1 .accent { color: var(--azure); }
.hero p.lead { color: var(--ink-soft); font-size: clamp(16px,2.4vw,19px);
  margin: var(--sp-4) auto 0; max-width: 60ch; }
.hero__meta { display:flex; flex-wrap:wrap; gap:var(--sp-2) var(--sp-5);
  justify-content:center; margin-top: var(--sp-5); color: var(--ink-soft);
  font-size: 13.5px; }
.hero__meta b { color: var(--azure-deep); font-family:var(--font-mono);
  font-weight:600; }
.hero__deco { position:absolute; inset:0; pointer-events:none; opacity:.5;
  color: var(--azure-200); }

/* ---- Controls (search + filters) ---- */
.controls { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
  padding-block: var(--sp-4); }
.search { position: relative; }
.search svg { position:absolute; left:14px; top:50%; transform: translateY(-50%);
  color: var(--ink-faint); }
.search input { width:100%; padding: 13px 16px 13px 44px; font-size:15px;
  border:1px solid var(--border-strong); border-radius: var(--r-pill);
  background:#fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.search input::placeholder { color: var(--ink-faint); }
.search input:focus-visible { border-color: var(--azure); box-shadow: var(--ring); }
.filters { display:flex; gap:var(--sp-2); margin-top: var(--sp-3);
  overflow-x:auto; scrollbar-width:none; padding-bottom:2px; }
.filters::-webkit-scrollbar { display:none; }
.chip { flex:0 0 auto; border:1px solid var(--border-strong); background:#fff;
  color: var(--ink-soft); border-radius: var(--r-pill); padding: 8px 15px;
  font-size:13.5px; font-weight:600; white-space:nowrap;
  transition: all .15s var(--ease); }
.chip:hover { border-color: var(--azure); color: var(--azure-deep); background: var(--azure-050); }
.chip[aria-pressed="true"] { background: var(--azure); border-color: var(--azure); color:#fff; }
.chip .n { opacity:.7; font-family: var(--font-mono); font-size:12px; margin-left:4px; }

/* ---- Result meta ---- */
.result-meta { color: var(--ink-soft); font-size: 14px; margin: var(--sp-5) 0 var(--sp-3); }
.result-meta b { color: var(--azure-deep); }

/* ---- Product grid ---- */
.grid { display:grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  padding-bottom: var(--sp-8); }
.card { display:flex; flex-direction:column; background:#fff;
  border:1px solid var(--border); border-radius: var(--r-lg); overflow:hidden;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
    border-color .18s var(--ease); will-change: transform; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--azure-200); }
.card:focus-within { box-shadow: var(--ring); }
.card__media { position:relative; aspect-ratio: 1/1; background: var(--surface-2);
  overflow:hidden; }
.card__body { padding: var(--sp-4); display:flex; flex-direction:column;
  gap: var(--sp-2); flex:1; }
.card__cat { font-size: 11.5px; font-weight:700; letter-spacing:.06em;
  text-transform: uppercase; color: var(--azure-ink); }
.card__name { font-size: 18px; }
.card__name a { color: var(--azure-deep); }
.card__name a::after { content:""; position:absolute; inset:0; }
.card__tag { color: var(--ink-soft); font-size: 13.5px; margin:0;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card__foot { margin-top:auto; display:flex; align-items:baseline;
  justify-content:space-between; padding-top: var(--sp-3);
  border-top:1px solid var(--border); }
.card__price { font-family: var(--font-mono); color: var(--azure-deep); font-weight:600; }
.card__price small { color: var(--ink-faint); font-weight:500; font-size:11px;
  text-transform:uppercase; letter-spacing:.05em; display:block; }
.card__price b { font-size: 18px; }
.card__variants { font-size: 12px; color: var(--ink-faint); font-family:var(--font-mono); }

/* placeholder molecular media */
.ph-media { position:absolute; inset:0; display:flex; align-items:center;
  justify-content:center; color: var(--azure-200);
  background: radial-gradient(120% 100% at 30% 10%, var(--azure-050), var(--surface-2)); }
.ph-media__tag { position:absolute; bottom:8px; right:10px; font-size:10.5px;
  letter-spacing:.08em; text-transform:uppercase; color: var(--ink-faint); font-weight:600; }

/* empty state */
.empty { text-align:center; padding: var(--sp-8) var(--sp-4); color: var(--ink-soft); }
.empty svg { color: var(--azure-200); margin-bottom: var(--sp-3); }
.empty h3 { color: var(--azure-deep); margin-bottom: var(--sp-2); }

/* =====================================================================
   PRODUCT PAGE
   ===================================================================== */
.pdp { padding-block: var(--sp-5) var(--sp-8); }
.crumbs { display:flex; align-items:center; gap:var(--sp-2); font-size:13.5px;
  color: var(--ink-faint); margin-bottom: var(--sp-5); }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--azure-deep); }
.pdp__grid { display:grid; gap: var(--sp-6); }
@media (min-width: 900px){
  .pdp__grid { grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); align-items:start; }
  .pdp__media-wrap { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
}
.pdp__media { aspect-ratio: 1/1; border-radius: var(--r-lg); overflow:hidden;
  border:1px solid var(--border); position:relative; background: var(--surface-2); }
.pdp__cat { font-size: 12px; font-weight:700; letter-spacing:.07em;
  text-transform:uppercase; color: var(--azure-ink); }
.pdp h1 { font-size: clamp(26px,4.5vw,40px); margin-top: var(--sp-2); }
.pdp__tagline { color: var(--ink-soft); font-size: 17px; margin-top: var(--sp-3);
  max-width: 46ch; }

/* variant selector */
.selector { margin-top: var(--sp-5); }
.selector__label { font-size: 12.5px; font-weight:700; letter-spacing:.05em;
  text-transform:uppercase; color: var(--ink-soft); margin-bottom: var(--sp-2); }
.variants { display:flex; flex-wrap:wrap; gap: var(--sp-2); }
.variant { border:1.5px solid var(--border-strong); background:#fff; color: var(--azure-deep);
  border-radius: var(--r-md); padding: 10px 16px; font-family: var(--font-mono);
  font-weight:600; font-size:14px; transition: all .14s var(--ease); }
.variant:hover { border-color: var(--azure); background: var(--azure-050); }
.variant[aria-pressed="true"] { border-color: var(--azure); background: var(--azure);
  color:#fff; box-shadow: var(--shadow-sm); }

/* price block */
.price-block { display:flex; align-items:flex-end; gap: var(--sp-3);
  margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-lg);
  background: var(--azure-050); border:1px solid var(--azure-100); }
.price-block .amount { font-family: var(--font-mono); font-weight:700;
  font-size: clamp(30px,6vw,40px); color: var(--azure-deep); line-height:1; }
.price-block .unit { color: var(--ink-soft); font-size: 13.5px; padding-bottom:4px; }
.price-block .unit b { color: var(--azure-deep); font-family:var(--font-mono); }

.pdp__cta { margin-top: var(--sp-5); display:flex; flex-wrap:wrap; gap: var(--sp-3); }
.pdp__ruo { margin-top: var(--sp-4); font-size: 12.5px; color: var(--ink-faint);
  display:flex; gap: var(--sp-2); align-items:flex-start; }
.pdp__ruo svg { flex:0 0 auto; color: var(--yellow-deep); margin-top:2px; }

/* description sections */
.sections { margin-top: var(--sp-7); display:grid; gap: var(--sp-5); }
.section { }
.section h2 { font-size: 20px; margin-bottom: var(--sp-2);
  display:flex; align-items:center; gap: var(--sp-2); }
.section h2 svg { color: var(--azure); }
.section p { color: var(--ink); max-width: 72ch; }

/* safety information reads as advisory, not decorative */
.section--caution { background: #fffbea; border: 1px solid #f3e4a8;
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); }
.section--caution h2 svg { color: var(--yellow-deep); }
.section--caution p { color: #4a3d15; }

/* order steps */
.order { margin-top: var(--sp-7); border-top:1px solid var(--border); padding-top: var(--sp-6); }
.order h2 { font-size: 22px; margin-bottom: var(--sp-4); }
.steps { display:grid; gap: var(--sp-3); counter-reset: step; margin-bottom: var(--sp-5); }
@media(min-width:700px){ .steps { grid-template-columns: repeat(3,1fr); } }
.step { position:relative; padding: var(--sp-4); padding-top: var(--sp-6);
  background: var(--surface); border:1px solid var(--border); border-radius: var(--r-md);
  color: var(--ink-soft); font-size: 14px; }
.step::before { counter-increment: step; content: counter(step);
  position:absolute; top: var(--sp-3); left: var(--sp-4);
  font-family: var(--font-mono); font-weight:700; color: var(--azure);
  background: var(--azure-050); border:1px solid var(--azure-100);
  width:28px; height:28px; border-radius: var(--r-pill);
  display:flex; align-items:center; justify-content:center; font-size:13px; }
.step b { color: var(--azure-deep); display:block; margin-bottom:2px; font-size:14.5px; }

/* wallet + session */
.pay { display:grid; gap: var(--sp-4); }
@media(min-width:820px){ .pay { grid-template-columns: 1fr auto; align-items:start; } }

/* session block with QR */
.session-box { display:flex; gap: var(--sp-4); align-items:center; flex-wrap:wrap;
  background:#fff; border:1px solid var(--border-strong); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); }
.session-qr { width:118px; height:118px; border-radius: var(--r-sm); flex:0 0 auto;
  border:1px solid var(--border); background:#fff; }
.session-box__side { display:flex; flex-direction:column; gap: var(--sp-3);
  min-width:0; flex:1 1 220px; }
.session-id__label { font-size: 11.5px; text-transform:uppercase; letter-spacing:.06em;
  color: var(--ink-faint); font-weight:700; display:block; margin-bottom:4px; }
.session-id .wallet__addr { font-size:12px; }
@media(max-width:480px){
  .session-box { justify-content:center; }
  .session-qr { width:150px; height:150px; }
  .session-box__side { flex-basis:100%; }
}
.wallet { background:#fff; border:1px solid var(--border-strong); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); }
.wallet__label { font-size: 11.5px; text-transform:uppercase; letter-spacing:.06em;
  color: var(--ink-faint); font-weight:700; margin-bottom: 4px; }
.wallet__row { display:flex; align-items:center; gap: var(--sp-3); }
.wallet__addr { font-family: var(--font-mono); font-size: 13.5px; color: var(--azure-deep);
  word-break: break-all; flex:1; }
.copy-btn { flex:0 0 auto; border:1px solid var(--border-strong); background:#fff;
  color: var(--azure-ink); border-radius: var(--r-sm); padding: 7px 10px; font-size:12.5px;
  font-weight:600; display:inline-flex; gap:6px; align-items:center; transition: all .14s; }
.copy-btn:hover { border-color: var(--azure); background: var(--azure-050); }
.copy-btn.copied { border-color: #1f9d55; color:#1f7a44; background:#eafaf0; }

/* related */
.related { margin-top: var(--sp-8); }
.related h2 { font-size: 20px; margin-bottom: var(--sp-4); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--azure-deep); color:#cfe0ec; margin-top: var(--sp-8);
  padding-block: var(--sp-7) var(--sp-6); }
.site-footer a { color:#eaf3fa; }
.footer__top { display:grid; gap: var(--sp-6); }
@media(min-width:760px){ .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand b { font-family:var(--font-display); font-size:19px; color:#fff;
  display:block; letter-spacing:-.02em; }
.footer__brand span { font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:#8fb6d1; }
.footer__brand p { margin-top: var(--sp-3); font-size:14px; color:#a9c6dc; max-width: 40ch; }
.site-footer h4 { color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:.08em;
  margin-bottom: var(--sp-3); font-family: var(--font-body); font-weight:600; }
.site-footer ul { list-style:none; margin:0; padding:0; display:grid; gap: 2px;
  font-size:14px; }
/* comfortable touch targets for footer links */
.site-footer ul a { display:inline-block; padding: 8px 0; }
.site-footer ul a:hover { color: var(--yellow); }
.footer__addr { padding-block: 5px; }
.footer__addr { font-family:var(--font-mono); font-size:12px; color:#9fc0d8;
  word-break:break-all; }
.footer__ruo { margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top:1px solid rgba(255,255,255,.14); font-size:12px; color:#8fb6d1;
  display:grid; gap: var(--sp-2); }
.footer__ruo strong { color: var(--yellow); }
.footer__bottom { margin-top: var(--sp-4); font-size:12.5px; color:#7ea7c6;
  display:flex; flex-wrap:wrap; gap:var(--sp-3); justify-content:space-between; }

/* section heading (home) */
.section-title { margin: var(--sp-6) 0 var(--sp-4); }

/* ---- motion ---- */
@media (prefers-reduced-motion: no-preference){
  .reveal { opacity:0; transform: translateY(14px) scale(.985); }
  .reveal.in { opacity:1; transform:none;
    transition: opacity .5s var(--ease), transform .5s var(--ease); }
}
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior:auto; }
  * { animation:none !important; transition:none !important; }
}

/* ---- contact block (Session + email) ---- */
.contact-alt { background:#fff; border:1px solid var(--border-strong);
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); }
.or-sep { display:none; }
@media(min-width:820px){
  .or-sep { display:flex; align-items:center; justify-content:center;
    position:absolute; left:-30px; top:50%; transform:translateY(-50%);
    width:26px; height:26px; border-radius:var(--r-pill);
    background:var(--surface-2); color:var(--ink-faint);
    font-size:11px; font-weight:700; text-transform:uppercase; }
  .contact-alt { position:relative; }
}
.contact-alt .wallet__label { margin-bottom:4px; }
.contact-alt .wallet__addr { font-size:13.5px; }

/* newcomer note — honest path for buyers with no crypto experience */
.newcomer { margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4);
  background: var(--azure-050); border:1px solid var(--azure-100);
  border-radius: var(--r-md); font-size:14px; color: var(--ink-soft); }
.newcomer b { color: var(--azure-deep); display:block; margin-bottom:2px;
  font-family: var(--font-display); font-size:15px; }

/* =====================================================================
   CART + CHECKOUT
   ===================================================================== */
.cart-link { position:relative; display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:var(--r-md); color:var(--azure-deep);
  transition: background .15s var(--ease); }
.cart-link:hover { background: var(--azure-050); color: var(--azure-deep); }
.cart-badge { position:absolute; top:4px; right:2px; min-width:18px; height:18px;
  padding:0 5px; border-radius:var(--r-pill); background:var(--azure); color:#fff;
  font-size:11px; font-weight:700; line-height:18px; text-align:center;
  font-family:var(--font-mono); }

.co-title { font-size: clamp(26px,4.5vw,38px); margin-bottom: var(--sp-3); }
.co-lead { color: var(--ink-soft); max-width: 62ch; margin-bottom: var(--sp-6); }
.co-grid { display:grid; gap: var(--sp-6); padding-bottom: var(--sp-8); }
@media(min-width:940px){ .co-grid { grid-template-columns: minmax(0,1fr) 340px; align-items:start; }
  .co-side { position:sticky; top: calc(var(--header-h) + var(--sp-5)); } }
.co-main h2 { font-size:20px; margin-bottom: var(--sp-4); }

/* order table */
.table-wrap { overflow-x:auto; border:1px solid var(--border); border-radius: var(--r-md); }
.co-table { width:100%; border-collapse:collapse; min-width:460px; }
.co-table td { padding: var(--sp-3) var(--sp-4); border-bottom:1px solid var(--border);
  vertical-align:middle; font-size:14.5px; }
.co-table tr:last-child td { border-bottom:0; }
.co-table a { color: var(--azure-deep); font-weight:600; }
.ln-cat { display:block; font-size:11.5px; color:var(--ink-faint);
  text-transform:uppercase; letter-spacing:.05em; font-weight:600; margin-top:2px; }
.ln-mg { color: var(--azure-deep); font-weight:600; white-space:nowrap; }
.ln-qty { white-space:nowrap; }
.ln-qty span { display:inline-block; min-width:26px; text-align:center; font-weight:600; }
.qty-btn { width:28px; height:28px; border:1px solid var(--border-strong); background:#fff;
  border-radius:var(--r-sm); color:var(--azure-deep); font-size:15px; line-height:1;
  transition: all .14s var(--ease); }
.qty-btn:hover { border-color:var(--azure); background:var(--azure-050); }
.ln-total { font-weight:600; color:var(--azure-deep); white-space:nowrap; }
.ln-rm { border:0; background:transparent; color:var(--ink-faint); font-size:20px;
  line-height:1; padding:4px 6px; border-radius:var(--r-sm); transition: all .14s; }
.ln-rm:hover { color:#c0392b; background:#fdf0ee; }

.co-total { display:flex; justify-content:space-between; align-items:baseline;
  margin-top: var(--sp-4); padding: var(--sp-4) var(--sp-5);
  background: var(--azure-050); border:1px solid var(--azure-100);
  border-radius: var(--r-md); }
.co-total span { font-size:13px; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; color:var(--ink-soft); }
.co-total b { font-size: 26px; color: var(--azure-deep); }

/* form fields */
.fields { display:grid; gap: var(--sp-3); }
@media(min-width:620px){ .fields { grid-template-columns:1fr 1fr; }
  .fld--wide { grid-column:1/-1; } }
.fld { display:flex; flex-direction:column; gap:5px; }
.fld > span { font-size:12.5px; font-weight:600; color:var(--ink-soft); }
.fld input, .fld textarea { width:100%; padding:11px 13px; font:inherit; font-size:15px;
  border:1px solid var(--border-strong); border-radius:var(--r-sm); background:#fff;
  color:var(--ink); transition: border-color .15s, box-shadow .15s; }
.fld input:focus-visible, .fld textarea:focus-visible {
  border-color:var(--azure); box-shadow:var(--ring); }
.fld textarea { resize:vertical; }

/* payment options */
.co-note { color:var(--ink-soft); font-size:14px; margin-bottom:var(--sp-4); max-width:62ch; }
.pm-list { display:grid; gap: var(--sp-2); }
.pm { display:flex; gap:var(--sp-3); align-items:flex-start; cursor:pointer;
  padding: var(--sp-3) var(--sp-4); border:1.5px solid var(--border);
  border-radius:var(--r-md); background:#fff; transition: all .15s var(--ease); }
.pm:hover { border-color: var(--azure-200); background: var(--azure-050); }
.pm input { margin-top:3px; accent-color: var(--azure); width:17px; height:17px;
  flex:0 0 auto; }
.pm:has(input:checked) { border-color: var(--azure); background: var(--azure-050); }
.pm__body { display:flex; flex-direction:column; gap:2px; }
.pm__body b { color: var(--azure-deep); font-size:15px; }
.pm__body span { color: var(--ink-soft); font-size:13.5px; }

/* submit panel */
.co-box { background:#fff; border:1px solid var(--border-strong);
  border-radius:var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-sm); }
.co-box h3 { font-size:18px; margin-bottom: var(--sp-2); }
.co-box > p { color:var(--ink-soft); font-size:14px; margin-bottom: var(--sp-4); }
.co-or { display:flex; align-items:center; gap:var(--sp-3); margin: var(--sp-3) 0;
  color:var(--ink-faint); font-size:12px; text-transform:uppercase; letter-spacing:.08em; }
.co-or::before, .co-or::after { content:""; flex:1; height:1px; background:var(--border); }
.co-hint { font-size:12.5px; color:var(--ink-faint); margin-top:var(--sp-3); }
.co-status { margin-top:var(--sp-3); font-size:13.5px; font-weight:500; }
.co-status:empty { display:none; }
.co-status--ok  { color:#1f7a44; }
.co-status--err { color:#c0392b; }
.co-status--info{ color:var(--ink-soft); }

/* =====================================================================
   CARD ACTIONS (size picker + add)
   ===================================================================== */
.card__actions { display:flex; gap:var(--sp-2); margin-top:var(--sp-3);
  position:relative; z-index:2; }
.card__size { flex:0 0 auto; min-width:82px; max-width:104px; padding:8px 10px;
  font:inherit; font-family:var(--font-mono); font-size:13px; font-weight:600;
  color:var(--azure-deep); background:#fff; border:1px solid var(--border-strong);
  border-radius:var(--r-sm); cursor:pointer;
  transition:border-color .15s var(--ease); }
.card__size:hover { border-color:var(--azure); }
.card__size:focus-visible { border-color:var(--azure); box-shadow:var(--ring); }
.card__size--fixed { display:flex; align-items:center; justify-content:center;
  cursor:default; color:var(--ink-soft); background:var(--surface); }
.card__add { flex:1; display:inline-flex; align-items:center; justify-content:center;
  gap:6px; padding:8px 12px; font-size:13.5px; font-weight:600;
  color:var(--azure-deep); background:var(--yellow); border:1px solid transparent;
  border-radius:var(--r-sm); white-space:nowrap;
  transition:background .15s var(--ease), transform .12s var(--ease); }
.card__add:hover { background:#ffe14d; transform:translateY(-1px); }
.card__add:active { transform:translateY(0); }
.card__add svg { width:16px; height:16px; }
/* the card-wide link must not swallow clicks on the controls */
.card__name a::after { z-index:1; }

/* =====================================================================
   MINI-CART DRAWER
   ===================================================================== */
.dw { position:fixed; inset:0; z-index:120; }
.dw[hidden] { display:none; }
.dw-overlay { position:absolute; inset:0; background:rgba(18,58,85,.42);
  opacity:0; transition:opacity .22s var(--ease); }
.dw--in .dw-overlay { opacity:1; }
.dw-panel { position:absolute; top:0; right:0; height:100%; width:min(400px,100%);
  background:#fff; display:flex; flex-direction:column;
  box-shadow:-18px 0 48px rgba(18,58,85,.20);
  transform:translateX(100%); transition:transform .24s var(--ease); }
.dw--in .dw-panel { transform:none; }
.dw-head { display:flex; align-items:center; justify-content:space-between;
  padding:var(--sp-4) var(--sp-5); border-bottom:1px solid var(--border); }
.dw-head h2 { font-size:19px; }
.dw-x { border:0; background:transparent; color:var(--ink-faint); font-size:26px;
  line-height:1; padding:2px 8px; border-radius:var(--r-sm);
  transition:all .14s var(--ease); }
.dw-x:hover { color:var(--azure-deep); background:var(--surface-2); }
.dw-body { flex:1; overflow-y:auto; padding:var(--sp-3) var(--sp-5); }
.dw-line { padding:var(--sp-3) 0; border-bottom:1px solid var(--border); }
.dw-line:last-child { border-bottom:0; }
.dw-line__main { display:flex; align-items:baseline; justify-content:space-between;
  gap:var(--sp-3); }
.dw-line__main a { color:var(--azure-deep); font-weight:600; font-size:14.5px; }
.dw-line__mg { flex:0 0 auto; font-size:12.5px; color:var(--ink-soft); }
.dw-line__row { display:flex; align-items:center; gap:var(--sp-3);
  margin-top:var(--sp-2); }
.dw-qty { display:inline-flex; align-items:center; gap:2px; }
.dw-qty span { min-width:24px; text-align:center; font-weight:600; font-size:14px; }
.dw-line__row b { margin-left:auto; color:var(--azure-deep); font-size:14.5px; }
.dw-empty { text-align:center; color:var(--ink-soft); padding:var(--sp-8) var(--sp-4); }
.dw-empty svg { color:var(--azure-200); margin-bottom:var(--sp-2); }
.dw-foot { border-top:1px solid var(--border); padding:var(--sp-4) var(--sp-5);
  display:grid; gap:var(--sp-2); background:var(--surface); }
.dw-total { display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom:var(--sp-2); }
.dw-total span { font-size:12.5px; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; color:var(--ink-soft); }
.dw-total b { font-size:23px; color:var(--azure-deep); }
.dw-cont { padding-block:9px; font-size:14px; }
@media (prefers-reduced-motion: reduce){
  .dw-panel, .dw-overlay { transition:none; }
}

/* =====================================================================
   CHECKOUT — narrow screens
   A grid item defaults to min-width:auto, so the 460px-wide order table
   was stretching the whole page instead of scrolling inside its wrapper.
   Pinning the track to minmax(0,1fr) contains it, and under 560px the
   table stops being a table so nothing needs that width at all.
   ===================================================================== */
.co-grid { grid-template-columns: minmax(0, 1fr); }
.co-main, .co-side { min-width: 0; }

@media (max-width: 560px) {
  .table-wrap { overflow-x: visible; }
  .co-table { min-width: 0; }
  .co-table, .co-table tbody, .co-table tr, .co-table td { display: block; width: 100%; }
  .co-table tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "name name rm" "mg qty total";
    gap: var(--sp-2) var(--sp-3);
    align-items: center;
    padding: var(--sp-4);
    border-bottom: 1px solid var(--border);
  }
  .co-table tr:last-child { border-bottom: 0; }
  .co-table td { border: 0; padding: 0; }
  .co-table td:nth-child(1) { grid-area: name; }
  .co-table td:nth-child(2) { grid-area: mg; }
  .co-table td:nth-child(3) { grid-area: qty; }
  .co-table td:nth-child(4) { grid-area: total; text-align: right; font-size: 16px; }
  .co-table td:nth-child(5) { grid-area: rm; text-align: right; }

  /* long payment descriptions must wrap, never widen the page */
  .pm__body { min-width: 0; }
  .pm__body b, .pm__body span { overflow-wrap: anywhere; }
  .co-box, .co-main, .fields { min-width: 0; }
  .fld input, .fld textarea { max-width: 100%; }
}

/* =====================================================================
   ORDER CONFIRMATION
   ===================================================================== */
.ok { max-width: 760px; margin-inline: auto; padding-block: var(--sp-6) var(--sp-8); }
.ok-badge { width: 56px; height: 56px; border-radius: var(--r-pill);
  background: #eafaf0; color: #1f7a44; display: flex; align-items: center;
  justify-content: center; margin-bottom: var(--sp-4); }
.ok-badge svg { width: 26px; height: 26px; }
.ok h1 { font-size: clamp(24px, 4.6vw, 34px); }
.ok-ref { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2);
  margin-top: var(--sp-3); color: var(--ink-soft); font-size: 14px; }
.ok-ref b { font-size: 17px; color: var(--azure-deep);
  background: var(--azure-050); border: 1px solid var(--azure-100);
  border-radius: var(--r-sm); padding: 3px 10px; letter-spacing: .04em; }

.ok-card { margin-top: var(--sp-5); padding: var(--sp-5);
  border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
.ok-card h2 { font-size: 18px; margin-bottom: var(--sp-3); }
.ok-card h2 em { font-style: normal; color: var(--azure); font-family: var(--font-body);
  font-size: 15px; font-weight: 600; }
.ok-card > p { color: var(--ink-soft); font-size: 14.5px; max-width: 66ch; }
.ok-card .btn { margin-top: var(--sp-4); }

.ok-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: okstep;
  display: grid; gap: var(--sp-3); }
.ok-steps li { position: relative; padding-left: 38px; color: var(--ink);
  font-size: 14.5px; line-height: 1.55; }
.ok-steps li::before { counter-increment: okstep; content: counter(okstep);
  position: absolute; left: 0; top: -1px; width: 26px; height: 26px;
  border-radius: var(--r-pill); background: var(--azure-050);
  border: 1px solid var(--azure-100); color: var(--azure);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }

.ok-warn { display: flex; gap: var(--sp-2); align-items: flex-start;
  margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4);
  background: #fffbea; border: 1px solid #f3e4a8; border-radius: var(--r-md);
  color: #4a3d15; font-size: 13.5px; }
.ok-warn svg { flex: 0 0 auto; margin-top: 2px; color: var(--yellow-deep); }

.ok-lines { list-style: none; margin: 0; padding: 0; display: grid; }
.ok-lines li { display: flex; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.ok-lines li:last-child { border-bottom: 0; }
.ok-lines b.mono { color: var(--azure-deep); }
.ok-total { display: flex; justify-content: space-between; align-items: baseline;
  margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 2px solid var(--border); }
.ok-total span { font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-soft); }
.ok-total b { font-size: 22px; color: var(--azure-deep); }

.ok-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
@media (max-width: 560px) {
  .ok-actions .btn { width: 100%; }
  .ok-card { padding: var(--sp-4); }
}

/* =====================================================================
   NO-JAVASCRIPT FALLBACK
   The catalog, cart and checkout are rendered client-side, so without JS
   these pages would otherwise be blank. Say so instead of showing nothing.
   ===================================================================== */
.noscript { max-width: 640px; margin: var(--sp-8) auto; padding: var(--sp-5);
  border: 1px solid #f3e4a8; background: #fffbea; border-radius: var(--r-lg);
  color: #4a3d15; font-size: 15px; line-height: 1.6; }
.noscript strong { display: block; color: var(--azure-deep);
  font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; }
.noscript span { display: block; }
.noscript hr { border: 0; border-top: 1px solid #f3e4a8; margin: var(--sp-4) 0; }

/* the contact email is never printed on screen - only reachable via the button */
.contact-alt__hint { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-faint);
  line-height: 1.45; }

/* =====================================================================
   UTILITIES — replace inline style attributes so the CSP can stay strict
   (no 'unsafe-inline' in style-src)
   ===================================================================== */
.is-hidden   { display: none !important; }
.mt-3        { margin-top: var(--sp-3); }
.mt-4        { margin-top: var(--sp-4); }
.mt-5        { margin-top: var(--sp-5); }
.mt-6        { margin-top: var(--sp-6); }
.pad-block-9 { padding-block: var(--sp-9); }
.grid-full   { grid-column: 1 / -1; }

/* product photography fills its media box */
.pmedia { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp__media .pmedia { object-fit: contain; background: #fff; }
