/* Premium Peptides — storefront
   Editorial-clinical design: near-black type on white, hairline rules, tinted
   image panels, no card chrome, pill controls. Blue is used only where the eye
   should go (links, actions, active state). */
:root {
  --bg: #ffffff;
  --surface: #f4f6fa;        /* tinted panels behind product imagery */
  --surface-2: #eef1f6;
  --line: #e5e9f0;           /* hairlines */
  --line-strong: #d3dae5;
  --ink: #0a0f1c;            /* near-black — headings */
  --text: #232c3d;
  --muted: #6b7688;
  --faint: #9aa4b5;
  --accent: #1447e6;         /* electric blue — actions only */
  --accent-ink: #0e33ad;
  --accent-soft: #edf2ff;
  --danger: #d92d20;
  --warn: #b45309;
  --ok: #0f9d58;
  --radius: 16px;
  --radius-sm: 10px;
  --pill: 999px;
  --shadow: 0 18px 40px -22px rgba(10, 15, 28, .30);
  --max: 1280px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

/* The hidden attribute must always win, even over rules that set display
   (e.g. .cart-drawer { display: flex }) — without this the cart drawer,
   its backdrop and the cart badge render permanently. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); line-height: 1.12; letter-spacing: -.03em; font-weight: 650; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Small uppercase label that sits above section headings. */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}

/* ------------------------------------------------------------- header */
.topbar-note {
  text-align: center; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
  font-weight: 600; padding: 9px 16px; background: var(--ink); color: #a9b4c6;
}
.topbar-note strong { color: #fff; font-weight: 700; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 22px; height: 74px; }

.brand { display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; display: block; }

.main-nav { display: flex; gap: 26px; font-size: 14px; font-weight: 550; margin-left: 8px; }
.main-nav a { color: var(--muted); position: relative; padding: 4px 0; transition: color .18s var(--ease); white-space: nowrap; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active { color: var(--ink); font-weight: 650; }
.main-nav a.active::after { transform: scaleX(1); background: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.search { position: relative; display: flex; }
.search input {
  width: 200px; padding: 10px 38px 10px 16px;
  background: var(--surface); border: 1px solid transparent; border-radius: var(--pill);
  color: var(--text); font-size: 13.5px; outline: none;
  transition: width .24s var(--ease), background .18s, border-color .18s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { width: 260px; background: #fff; border-color: var(--line-strong); }
.search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px;
}
.search button:hover { color: var(--ink); }

.cart-btn {
  position: relative; background: none; border: 0; color: var(--ink);
  width: 40px; height: 40px; border-radius: var(--pill);
  display: grid; place-items: center; cursor: pointer; transition: background .18s;
}
.cart-btn:hover { background: var(--surface); }
.cart-count {
  position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: var(--pill);
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid #fff;
}

.burger { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.burger span { display: block; height: 1.5px; background: var(--ink); margin: 5px 9px; border-radius: 2px; }

/* --------------------------------------------------------------- main */
main { flex: 1; padding: 30px 24px 110px; }

.page-head { margin: 8px 0 34px; max-width: 68ch; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); }
.page-lead { color: var(--muted); font-size: 16.5px; margin: 0; }
.breadcrumbs { font-size: 12.5px; color: var(--faint); margin-bottom: 14px; letter-spacing: .01em; }
.breadcrumbs a:hover { color: var(--ink); }

/* --------------------------------------------------------------- hero */
.hero { margin: 0 0 46px; }
.hero-shot { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.hero-shot img { width: 100%; height: auto; display: block; }
.hero-fallback { display: none; }

/* Shown when the banner is missing, and on phones where its baked-in text
   would be far too small to read. */
.hero--noimg .hero-shot { display: none; }
.hero--noimg .hero-fallback { display: block; }
.hero-fallback {
  padding: clamp(40px, 7vw, 84px) clamp(24px, 5vw, 60px);
  border-radius: var(--radius); background: var(--surface); text-align: left;
}
.hero-fallback h1 { font-size: clamp(32px, 5.6vw, 56px); max-width: 16ch; margin-bottom: .3em; }
.hero-fallback h1 em { font-style: normal; color: var(--accent); }
.hero-fallback p { color: var(--muted); max-width: 50ch; font-size: 16.5px; margin: 0 0 28px; }

/* --------------------------------------------------------- trust strip */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.trust { padding: 22px 26px 22px 0; border-right: 1px solid var(--line); }
.trust:last-child { border-right: 0; }
.trust b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 650; margin-bottom: 3px; letter-spacing: -.01em; }
.trust span { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--pill); border: 1px solid transparent;
  font-size: 14px; font-weight: 650; cursor: pointer; font-family: inherit;
  letter-spacing: -.005em;
  transition: background .18s var(--ease), color .18s, border-color .18s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 32px; font-size: 15px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------- section heads */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin: 76px 0 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: clamp(22px, 2.8vw, 32px); margin: 0; }
.see-all {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-size: 13.5px; font-weight: 650; color: var(--ink);
  padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: var(--pill);
  transition: background .18s, color .18s, border-color .18s;
}
.see-all span { transition: transform .22s var(--ease); }
.see-all:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.see-all:hover span { transform: translateX(3px); }

/* -------------------------------------------------------- filter chips */
.filter-bar {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filter-bar::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--pill); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 550; color: var(--text); white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s;
}
.chip i { font-style: normal; font-size: 11.5px; color: var(--faint); font-weight: 600; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.active i { color: rgba(255, 255, 255, .6); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.toolbar .muted { font-size: 13.5px; }
.toolbar select {
  background: #fff; border: 1px solid var(--line-strong); color: var(--ink);
  padding: 9px 15px; border-radius: var(--pill); font-size: 13.5px; font-family: inherit; cursor: pointer;
}
.toolbar select:focus { outline: none; border-color: var(--ink); }

/* ---------------------------------------------------------- product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 26px; }

/* No borders, no shadows: the tinted image panel is the only chrome. */
.card { display: flex; flex-direction: column; }
.card-media {
  position: relative; display: block; aspect-ratio: 1;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  transition: background .22s var(--ease);
}
.card:hover .card-media { background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 26px; transition: transform .45s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }

.tag-row { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pill {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--pill); background: #fff; color: var(--ink);
}
.pill-sale { background: var(--ink); color: #fff; }
.pill-new { background: var(--accent); color: #fff; }
.pill-best { background: #fff; color: var(--ink); }
.pill-out { background: #fff; color: var(--muted); }

/* Add-to-cart slides up out of the image panel on hover. */
.add-btn {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: var(--ink); color: #fff; border: 0; border-radius: var(--pill);
  padding: 12px; font-size: 13px; font-weight: 650; font-family: inherit; cursor: pointer;
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), background .18s;
}
.card:hover .add-btn, .add-btn:focus-visible { opacity: 1; transform: none; }
.add-btn:hover:not(:disabled) { background: var(--accent); }
.add-btn:disabled { background: var(--line-strong); color: var(--muted); cursor: not-allowed; }

.card-body { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 6px; }
.card-cat { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 650; }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); letter-spacing: -.012em; }
.card-title:hover { color: var(--accent); }
.price { display: flex; align-items: baseline; gap: 9px; margin-top: 2px; }
.price .now { font-size: 16px; font-weight: 650; color: var(--ink); letter-spacing: -.015em; }
.price .was { font-size: 13px; color: var(--faint); text-decoration: line-through; }
.price .ask { font-size: 14px; color: var(--warn); font-weight: 600; }

/* ------------------------------------------------------ product page */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 60px; align-items: start; margin-top: 6px; }
.product-gallery {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  position: sticky; top: 100px;
}
.product-gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 52px; }

.product-info h1 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: .3em; }
.product-brand { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.product-lead { color: var(--muted); font-size: 16px; margin: 0 0 28px; }

.price-box { padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-box .now { font-size: 36px; font-weight: 650; color: var(--ink); letter-spacing: -.03em; }
.price-box .was { font-size: 17px; color: var(--faint); text-decoration: line-through; }
.price-box .ask { font-size: 26px; color: var(--warn); font-weight: 650; }
.save-pill { background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: var(--pill); letter-spacing: .04em; }
.vat-note { font-size: 12.5px; color: var(--faint); margin-top: 10px; }

.stock-line { display: flex; align-items: center; gap: 9px; font-size: 13.5px; margin-bottom: 22px; color: var(--text); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(15, 157, 88, .16); }
.dot.off { background: var(--faint); box-shadow: 0 0 0 3px rgba(154, 164, 181, .18); }

.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--pill); overflow: hidden; }
.qty button { width: 46px; height: 100%; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; transition: color .14s; }
.qty button:hover { color: var(--ink); }
.qty input { width: 44px; text-align: center; background: none; border: 0; color: var(--ink); font-size: 15px; font-weight: 650; font-family: inherit; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.usp-list { list-style: none; padding: 0; margin: 34px 0 0; font-size: 14px; color: var(--text); }
.usp-list li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.usp-list li:first-child { border-top: 1px solid var(--line); }
.usp-list svg { color: var(--accent); flex: none; margin-top: 3px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.tag { font-size: 11.5px; color: var(--muted); background: var(--surface); padding: 5px 12px; border-radius: var(--pill); }

.product-desc { margin-top: 86px; padding-top: 0; max-width: 74ch; }
.product-desc h2 { font-size: clamp(20px, 2.2vw, 26px); margin: 46px 0 .55em; }
.product-desc h3 { font-size: 17px; margin: 30px 0 .5em; }
.product-desc p, .product-desc li { color: var(--text); font-size: 15.5px; line-height: 1.75; }
.product-desc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.product-desc a:hover { color: var(--accent-ink); }
.product-desc ul, .product-desc ol { padding-left: 20px; }
.product-desc li { margin-bottom: 6px; }
.product-desc table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.product-desc th, .product-desc td { border-bottom: 1px solid var(--line); padding: 11px 12px; text-align: left; }
.product-desc th { background: var(--surface); font-weight: 650; color: var(--ink); }
.product-desc img { border-radius: var(--radius-sm); margin: 16px 0; }

/* --------------------------------------------------------------- cart */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10, 15, 28, .35); backdrop-filter: blur(2px); z-index: 90; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: #fff; z-index: 100;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  animation: slide-in .28s var(--ease);
}
@keyframes slide-in { from { transform: translateX(100%); } }
.cart-drawer header { display: flex; align-items: center; justify-content: space-between; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
.cart-drawer header h3 { margin: 0; font-size: 17px; }
.cart-drawer header button {
  background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1;
  cursor: pointer; width: 40px; height: 40px; margin: -8px -10px -8px 0; border-radius: var(--pill);
}
.cart-drawer header button:hover { background: var(--surface); color: var(--ink); }
#cart-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.cart-items { flex: 1; overflow-y: auto; padding: 6px 26px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: var(--surface); border-radius: var(--radius-sm); padding: 7px; }
.cart-item-name { font-size: 13.5px; line-height: 1.4; margin-bottom: 6px; font-weight: 600; color: var(--ink); display: block; }
.cart-item-name:hover { color: var(--accent); }
.cart-qty { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.cart-qty button {
  width: 26px; height: 26px; border-radius: var(--pill); border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink); cursor: pointer; line-height: 1; font-size: 13px;
}
.cart-qty button:hover { border-color: var(--ink); }
.cart-line-total { font-weight: 650; font-size: 14px; white-space: nowrap; color: var(--ink); }
.cart-remove { display: block; background: none; border: 0; color: var(--faint); font-size: 11.5px; cursor: pointer; padding: 5px 0 0; }
.cart-remove:hover { color: var(--danger); }

.cart-foot { border-top: 1px solid var(--line); padding: 20px 26px calc(24px + env(safe-area-inset-bottom, 0px)); }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 9px; color: var(--muted); }
.sum-row.total { font-size: 18px; font-weight: 700; color: var(--ink); margin: 14px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ship-hint { font-size: 12.5px; color: var(--accent); font-weight: 650; margin-bottom: 14px; }

.empty-state { text-align: center; padding: 80px 24px; color: var(--muted); }
.empty-state h1 { margin-bottom: .4em; }
.empty-state svg { color: var(--line-strong); margin-bottom: 16px; }
.empty-state p { margin-bottom: 22px; }

/* ----------------------------------------------------------- checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 30px; }
.panel + .panel { margin-top: 18px; }
.panel h3 { font-size: 15.5px; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.panel h3 i {
  width: 24px; height: 24px; border-radius: var(--pill); background: var(--ink);
  color: #fff; display: grid; place-items: center; font-size: 12px; font-style: normal; font-weight: 700;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.field input, .field textarea {
  background: var(--surface); border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 13px 15px; color: var(--ink); font-size: 14.5px; font-family: inherit; outline: none;
  transition: border-color .16s, background .16s;
}
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 92px; }
.field .err { font-size: 12px; color: var(--danger); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); background: #fff; }

.pay-options { display: grid; gap: 10px; }
.pay-option {
  display: flex; gap: 13px; align-items: flex-start; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .16s, background .16s;
}
.pay-option:hover { border-color: var(--line-strong); }
.pay-option input { margin-top: 3px; accent-color: var(--accent); }
.pay-option.selected { border-color: var(--ink); background: var(--surface); }
.pay-option b { display: block; font-size: 14.5px; margin-bottom: 3px; color: var(--ink); font-weight: 650; }
.pay-option span { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.summary { position: sticky; top: 100px; background: var(--surface); border-color: transparent; }
.summary-items { max-height: 300px; overflow-y: auto; margin-bottom: 18px; }
.summary-item { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.summary-item span { color: var(--muted); font-size: 12.5px; }
.summary-item b { color: var(--ink); }

.alert { padding: 14px 17px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }
.alert-error { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }
.alert-info { background: var(--accent-soft); border: 1px solid #cfdcff; color: var(--accent-ink); }

/* -------------------------------------------------- order confirmation */
.confirm { max-width: 640px; margin: 0 auto; text-align: center; padding: 24px 0; }
.confirm-icon { width: 68px; height: 68px; border-radius: var(--pill); background: var(--ink); color: #fff; display: grid; place-items: center; margin: 0 auto 26px; }
.order-no { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: .04em; margin: 10px 0 16px; }
.confirm-panel { text-align: left; margin-top: 26px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.kv b { font-weight: 650; color: var(--ink); }

.status-badge { display: inline-block; padding: 6px 15px; border-radius: var(--pill); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.st-pending { background: #fffaeb; color: #b45309; }
.st-paid, .st-processing { background: var(--accent-soft); color: var(--accent-ink); }
.st-shipped { background: #e0f2fe; color: #0369a1; }
.st-completed { background: #ecfdf3; color: #15803d; }
.st-cancelled, .st-refunded { background: #fef3f2; color: #b42318; }

/* --------------------------------------------------------------- blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 44px 28px; }
.blog-card { display: flex; flex-direction: column; }
.blog-cover { display: block; aspect-ratio: 16 / 10; background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: background .22s var(--ease); }
.blog-card:hover .blog-cover { background: var(--surface-2); }
.blog-cover img { width: 100%; height: 100%; object-fit: contain; padding: 26px; transition: transform .45s var(--ease); }
.blog-card:hover .blog-cover img { transform: scale(1.04); }

.blog-card-body { padding: 18px 2px 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.blog-date { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-weight: 650; }
.blog-title { font-size: 18px; font-weight: 650; line-height: 1.3; color: var(--ink); letter-spacing: -.022em; }
.blog-title:hover { color: var(--accent); }
.blog-excerpt { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.blog-more { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 650; color: var(--accent); }

.post { max-width: 72ch; margin: 0 auto; }
.post-title { font-size: clamp(30px, 4.4vw, 48px); margin: 10px 0 .3em; }
.post-meta { font-size: 13px; color: var(--faint); margin-bottom: 34px; letter-spacing: .02em; }
.post-cover { border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: 40px; }
.post-cover img { width: 100%; max-height: 420px; object-fit: contain; padding: 32px; }
.post-body { margin-top: 0; }
.post-body h2 { font-size: clamp(21px, 2.4vw, 27px); }

/* -------------------------------------------------------- static pages */
.prose { max-width: 72ch; }
.prose h2 { margin: 44px 0 .55em; font-size: clamp(20px, 2.2vw, 25px); }
.prose h3 { margin: 28px 0 .5em; font-size: 16.5px; }
.prose p, .prose li { color: var(--text); font-size: 15.5px; line-height: 1.75; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .panel .kv { font-size: 14px; }

/* -------------------------------------------------------------- misc */
.spinner {
  width: 28px; height: 28px; border: 2px solid var(--line);
  border-top-color: var(--ink); border-radius: 50%;
  animation: spin .7s linear infinite; margin: 90px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast-stack { position: fixed; bottom: 26px; right: 26px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 15px 20px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 550; box-shadow: var(--shadow);
  animation: toast-in .22s var(--ease); max-width: 340px;
}
.toast.err { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* -------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 32px; margin-top: auto; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; }
.footer-grid h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin-bottom: 16px; font-weight: 700; }
.footer-grid p { font-size: 14px; color: var(--muted); }
.footer-grid a { display: block; font-size: 14px; color: var(--muted); padding: 6px 0; transition: color .16s; }
.footer-grid a:hover { color: var(--ink); }
.footer-brand { margin-bottom: 18px; }
.footer-brand .brand-logo { height: 52px; }
.disclaimer {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--faint); line-height: 1.7; max-width: 96ch;
}
.disclaimer strong { color: var(--muted); }
.copy { margin-top: 22px; font-size: 12px; color: var(--faint); }

/* --------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .checkout-layout, .product-layout { grid-template-columns: 1fr; }
  .summary, .product-gallery { position: static; }
  .product-layout { gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust { padding: 18px 20px 18px 0; }
  .trust:nth-child(2) { border-right: 0; }
  .trust:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .topbar-note { font-size: 10.5px; padding: 8px 12px; }
  .tn-extra { display: none; }
  .header-inner { height: 62px; gap: 12px; }
  main { padding: 22px 20px 80px; }
  .wrap { padding: 0 20px; }

  /* The banner's text is baked in at desktop scale and unreadable on a phone. */
  .hero .hero-shot { display: none; }
  .hero .hero-fallback { display: block; }

  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 6px 20px 16px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 15px 2px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .burger { display: block; }

  /* 16px inputs stop iOS Safari from zooming the page on focus. */
  input, select, textarea,
  .field input, .field textarea, .search input,
  .toolbar select, .qty input { font-size: 16px; }

  .section-head { margin-top: 54px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 14px; }
  .blog-grid { gap: 32px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .checkout-layout { gap: 20px; }
  .panel { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer { padding: 48px 0 28px; }
  .toast-stack { left: 18px; right: 18px; bottom: 18px; }
  .toast { max-width: none; }

  /* Touch devices get no hover, so the add button is always visible. */
  .add-btn { opacity: 1; transform: none; padding: 10px; font-size: 12px; }
}

@media (max-width: 560px) {
  .brand-logo { height: 38px; }
  .header-actions { flex: 1; }
  .search { flex: 1; }
  .search input, .search input:focus { width: 100%; }
  .hero-cta .btn, .hero-fallback .btn { width: 100%; }
  .card-media img { padding: 16px; }
}

@media (max-width: 480px) {
  .trust-strip { grid-template-columns: 1fr; }
  .trust { border-right: 0; border-bottom: 1px solid var(--line); padding: 15px 0; }
  .trust:last-child { border-bottom: 0; }
  .price-box .now { font-size: 30px; }
  .buy-row { flex-direction: column; }
  .qty { width: 100%; justify-content: space-between; height: 52px; }
  .buy-row .btn { width: 100%; min-width: 0; padding: 15px; }
  .product-gallery img { padding: 28px; }
  .cart-item { grid-template-columns: 54px 1fr auto; gap: 11px; }
  .cart-item img { width: 54px; height: 54px; }
}
