/* =========================================================================
   KAEVIR — design system
   Built around the Essentials pack system: polished metal, near-black type,
   off-white space. Silver is a material, not a colour accent — it appears as
   product, as hairline and as a single gradient, never as decoration.
   ========================================================================= */

/* ------------------------------------------------------------- 1. tokens */
:root {
  --paper: #ffffff;
  --bg: #f4f4f5;
  --bg-2: #eaeaec;
  --tile: #e4e5e7;          /* product photography ground */
  --ink: #0b0b0c;
  --ink-2: #26282a;
  --ink-60: #5a5d60;
  --ink-40: #8c9094;
  --ink-20: #c4c7ca;

  --line: rgba(11, 11, 12, 0.1);
  --line-soft: rgba(11, 11, 12, 0.06);
  --line-strong: rgba(11, 11, 12, 0.22);

  --chrome: linear-gradient(90deg, #6c7276 0%, #c3c9cd 14%, #ffffff 26%, #d6dbde 40%, #8d9498 54%, #e9edef 70%, #fbfcfc 82%, #9aa1a5 100%);
  --chrome-soft: linear-gradient(90deg, rgba(108,114,118,.5), rgba(255,255,255,.9), rgba(154,161,165,.5));

  --page: 1400px;
  --gutter: clamp(20px, 5vw, 76px);
  --header-h: 66px;
  --bar-h: 32px;

  --shadow-sm: 0 1px 2px rgba(11, 11, 12, .04), 0 10px 30px -22px rgba(11, 11, 12, .4);
  --shadow-md: 0 2px 8px rgba(11, 11, 12, .05), 0 30px 70px -40px rgba(11, 11, 12, .45);
  --shadow-lg: 0 50px 130px -60px rgba(11, 11, 12, .5);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}

/* -------------------------------------------------------- 2. reset/base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: #fff; }
table { border-collapse: collapse; width: 100%; }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.measure { max-width: 900px; }
.measure--sm { max-width: 780px; }
main { min-height: 60vh; display: block; }

/* ------------------------------------------------------- 3. typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.06; margin: 0; text-wrap: balance; }
.display { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.3rem, 7.2vw, 5.6rem); line-height: .96; letter-spacing: -.04em; text-transform: uppercase; overflow-wrap: break-word; }
.h1 { font-size: clamp(1.9rem, 5.4vw, 3.6rem); letter-spacing: -.035em; text-transform: uppercase; overflow-wrap: break-word; }
.h2 { font-size: clamp(1.6rem, 3.4vw, 2.7rem); letter-spacing: -.03em; text-transform: uppercase; }
.h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -.02em; }
.h4 { font-size: 1rem; letter-spacing: -.01em; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .68rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-40); margin: 0 0 16px; display: flex; align-items: flex-start; gap: 12px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; margin-top: .62em; background: var(--ink-20); flex: none; }
.eyebrow--center { justify-content: center; }

.lede { font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.62; color: var(--ink-60); max-width: 60ch; }
.body { color: var(--ink-60); }
.small { font-size: .86rem; }
.micro { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-40); font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }
.link-u { border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .25s; }
.link-u:hover { border-color: var(--ink); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule--chrome { height: 2px; background: var(--chrome); opacity: .65; }

.section { padding-block: clamp(60px, 8.5vw, 130px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--paper { background: var(--paper); }
.section--stone { background: var(--bg-2); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .body, .section--ink .lede { color: rgba(255,255,255,.6); }
.section--ink .eyebrow { color: rgba(255,255,255,.45); }
.section--ink .eyebrow::before { background: rgba(255,255,255,.3); }
.section--ink .micro { color: rgba(255,255,255,.45); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(26px, 4vw, 54px); }
.section-head p { margin: 12px 0 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* --------------------------------------------------- 4. buttons, fields */
.btn {
  --bg-c: var(--ink); --fg-c: #fff; --bd-c: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  background: var(--bg-c); color: var(--fg-c); border: 1px solid var(--bd-c);
  font-family: var(--font-display); font-size: .76rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: none; }
.btn--ghost { --bg-c: transparent; --fg-c: var(--ink); --bd-c: var(--line-strong); }
.btn--ghost:hover { --bd-c: var(--ink); }
.btn--light { --bg-c: #fff; --fg-c: var(--ink); --bd-c: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .68rem; }
.btn--lg { min-height: 58px; padding: 0 36px; }
.btn[disabled], .btn.is-disabled {
  --bg-c: transparent; --fg-c: var(--ink-40); --bd-c: var(--line);
  cursor: not-allowed; transform: none; box-shadow: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.field {
  width: 100%; min-height: 52px; padding: 0 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 0;
  transition: border-color .25s;
}
.field:focus { outline: none; border-color: var(--ink); }
.field::placeholder { color: var(--ink-40); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border: 1px solid var(--line); font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-60); background: var(--paper);
}
.tag--ink { background: var(--ink); border-color: var(--ink); color: #fff; }

/* the one state this shop needs most: a fact we do not have yet */
.pending {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; color: var(--ink-40); font-style: normal;
}
.pending::before { content: ''; width: 6px; height: 6px; border: 1px solid var(--ink-20); flex: none; }
.pending--block { display: flex; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; background: var(--bg-2); border-left: 2px solid var(--ink-20);
  font-size: .86rem; color: var(--ink-60);
}
.notice strong { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------- 5. header */
.announce {
  height: var(--bar-h); display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: rgba(255,255,255,.82);
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; overflow: hidden;
}
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(244,244,245,.86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .35s, background-color .35s;
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(244,244,245,.95); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase;
}
.brand__mark { width: 15px; height: 15px; flex: none; }
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.4vw, 38px); }
.nav a {
  position: relative; font-size: .72rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-60); padding: 6px 0; transition: color .25s; white-space: nowrap;
}
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--ink); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.icon-btn { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: background-color .25s; }
.icon-btn:hover { background: rgba(11,11,12,.05); }
.icon-btn svg { width: 19px; height: 19px; }
.badge { position: absolute; top: 6px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--ink); color: #fff; font-size: .6rem; font-weight: 600; display: none; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.badge.is-on { display: inline-flex; }
.burger { display: none; }

.search-panel {
  position: fixed; inset: 0; z-index: 95; background: rgba(244,244,245,.97); backdrop-filter: blur(8px);
  padding: clamp(24px,8vh,90px) var(--gutter); opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.search-panel.is-open { opacity: 1; visibility: visible; }
.search-panel__inner { max-width: 780px; margin-inline: auto; }
.search-panel input { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-strong); background: none; font-family: var(--font-display); font-size: clamp(1.4rem,4vw,2.2rem); letter-spacing: -.03em; }
.search-panel input:focus { outline: none; border-color: var(--ink); }
.search-results { margin-top: 28px; display: grid; gap: 2px; max-height: 58vh; overflow: auto; }
.search-result { display: flex; align-items: center; gap: 16px; padding: 10px 12px; background: var(--paper); transition: background .2s; }
.search-result:hover { background: var(--bg-2); }
.search-result img { width: 46px; height: 46px; object-fit: cover; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 94; background: var(--bg); padding: 18px var(--gutter) 40px;
  transform: translateY(-100%); visibility: hidden; transition: transform .5s var(--ease-out), visibility .5s;
  overflow: auto; display: flex; flex-direction: column;
}
.mobile-menu.is-open { transform: none; visibility: visible; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mobile-menu nav { display: grid; gap: 2px; margin-top: 18px; }
.mobile-menu nav a { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; letter-spacing: -.03em; text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.mobile-menu__foot { margin-top: auto; padding-top: 30px; display: grid; gap: 10px; }

/* ------------------------------------------------------------- 6. hero */
.hero { position: relative; background: linear-gradient(180deg, #fff 0%, var(--bg) 55%, var(--bg-2) 100%); overflow: clip; }
.hero__inner { padding-block: clamp(36px, 5.5vw, 84px) clamp(10px, 2vw, 24px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .display { margin-bottom: 20px; }
.hero__lede { margin: 0 auto 30px; max-width: 46ch; }
.hero__media { width: 100%; max-width: 1180px; margin-inline: auto; }
.hero__media img { width: 100%; }
.hero__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 4vw, 54px); padding-block: 22px; border-top: 1px solid var(--line); margin-top: clamp(10px, 2vw, 26px); }
.hero__foot span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-40); }

/* ------------------------------------------------------------ 7. cards */
.grid { display: grid; gap: clamp(12px, 1.4vw, 22px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid > * { min-width: 0; }
@media (min-width: 1000px) { .grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body { padding: 14px 14px 16px; }
  .card__foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .card__name { font-size: 1.02rem; }
}

.card { position: relative; display: flex; flex-direction: column; background: var(--paper); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tile); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), opacity .5s var(--ease); }
.card__media img.card__alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__media img { transform: scale(1.03); }
.card:hover .card__alt { opacity: 1; }
.card__line { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-40); }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.card__desc { font-size: .84rem; color: var(--ink-60); }
.card__bits { font-size: .74rem; color: var(--ink-40); letter-spacing: .04em; }
.card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-soft); }
.card__price { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.card__cta { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: border-color .3s; }
.card:hover .card__cta { border-color: var(--ink); }
.card__add { width: 40px; height: 40px; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; transition: all .3s var(--ease); flex: none; }
.card__add:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.card__add svg { width: 15px; height: 15px; }
.card__add[disabled] { border-color: var(--line); color: var(--ink-20); cursor: not-allowed; }

/* system strip: the six as one family */
.system { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line-soft); }
@media (max-width: 900px) { .system { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .system { grid-template-columns: repeat(2, 1fr); } }
.system__cell { background: var(--tile); position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.system__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.system__cell:hover img { transform: scale(1.04); }
.system__cell span { position: absolute; left: 12px; bottom: 12px; font-family: var(--font-display); font-size: .82rem; font-weight: 600; letter-spacing: -.01em; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--paper); padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 10px; }
.pillar h3 { font-size: .92rem; letter-spacing: .12em; text-transform: uppercase; }
.pillar p { margin: 0; font-size: .88rem; color: var(--ink-60); }
.section--ink .pillars { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.16); }
.section--ink .pillar { background: var(--ink); }
.section--ink .pillar p { color: rgba(255,255,255,.6); }

/* editorial split */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 76px); align-items: center; }
.split > * { min-width: 0; }
.split--reverse .split__media { order: 2; }

/* ------------------------------------------------------ 8. product page */
.pdp { display: grid; gap: clamp(24px, 4vw, 60px); padding-top: clamp(16px, 2.5vw, 36px); }
.pdp > * { min-width: 0; }
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); align-items: start; } }
.gallery { display: grid; gap: 8px; position: sticky; top: calc(var(--header-h) + 16px); min-width: 0; }
@media (max-width: 959px) { .gallery { position: static; } }
.gallery__main { background: var(--tile); overflow: hidden; aspect-ratio: 1 / 1; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 8px; }
.gallery__thumbs button { flex: 1; min-width: 0; background: var(--tile); overflow: hidden; aspect-ratio: 1; border: 1px solid transparent; transition: border-color .3s; }
.gallery__thumbs button.is-on { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buybox { display: flex; flex-direction: column; gap: 18px; }
.buybox__cat { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-40); }
.buybox h1 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.035em; }
.buybox__desc { font-size: 1rem; color: var(--ink-60); }
.buybox__price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.buy-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 52px; }
.qty button { width: 44px; height: 100%; color: var(--ink-60); }
.qty button:hover { color: var(--ink); }
.qty input { width: 40px; text-align: center; border: 0; background: none; font-variant-numeric: tabular-nums; }
.qty input:focus { outline: none; }
.facts { display: grid; gap: 0; }
.fact { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.fact dt { color: var(--ink-60); margin: 0; }
.fact dd { margin: 0; text-align: right; font-weight: 500; }

.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; text-align: left; font-family: var(--font-display); font-size: .9rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.acc__btn svg { width: 13px; height: 13px; flex: none; transition: transform .4s var(--ease); color: var(--ink-40); }
.acc.is-open .acc__btn svg { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner > div { padding-bottom: 24px; color: var(--ink-60); font-size: .92rem; }

.spec { font-size: .9rem; }
.spec th { text-align: left; font-weight: 400; color: var(--ink-60); padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.spec td { text-align: right; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; font-weight: 500; }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; align-items: center; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .45s var(--ease-out);
}
.sticky-buy.is-on { transform: none; }
.sticky-buy__info { flex: 1; min-width: 0; }
.sticky-buy__info strong { display: block; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__info span { font-size: .74rem; color: var(--ink-40); }
@media (max-width: 959px) { .sticky-buy { display: flex; } body.has-sticky-buy { padding-bottom: 74px; } }

/* ----------------------------------------------------- 9. cart & drawer */
.scrim { position: fixed; inset: 0; z-index: 89; background: rgba(11,11,12,.34); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.scrim.is-on { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(440px, 100%);
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(101%); transition: transform .5s var(--ease-out); box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--font-display); font-size: .84rem; letter-spacing: .2em; text-transform: uppercase; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 22px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); background: var(--paper); display: grid; gap: 10px; }

.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.line-item > a { display: block; overflow: hidden; background: var(--tile); }
.line-item img { width: 72px; aspect-ratio: 1; object-fit: cover; transform: scale(1.32); }
.line-item__name { font-size: .92rem; font-weight: 500; }
.line-item__variant { font-size: .74rem; color: var(--ink-40); }
.line-item__ctrl { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.line-item__ctrl .qty { height: 32px; }
.line-item__ctrl .qty button { width: 30px; }
.line-item__remove { font-size: .72rem; color: var(--ink-40); border-bottom: 1px solid var(--line); }
.line-item__remove:hover { color: var(--ink); }
.line-item__price { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; font-size: .92rem; }

.totals { display: grid; gap: 8px; font-size: .9rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.empty { text-align: center; padding: 56px 20px; color: var(--ink-40); }

.cart-grid { display: grid; gap: clamp(24px, 4vw, 52px); align-items: start; }
@media (min-width: 900px) { .cart-grid { grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr); } }
.summary { background: var(--paper); padding: 26px; display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }

.toast-stack { position: fixed; z-index: 96; right: 20px; bottom: 20px; display: grid; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 14px 18px; font-size: .86rem; box-shadow: var(--shadow-md); transform: translateY(12px); opacity: 0; animation: toastIn .4s var(--ease-out) forwards; max-width: 340px; }
.toast img { width: 34px; height: 34px; object-fit: cover; background: #fff; }
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateY(8px); opacity: 0; } }
@media (max-width: 600px) { .toast-stack { left: 12px; right: 12px; bottom: 12px; } .toast { max-width: none; } }

/* --------------------------------------------------------- 10. content */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .72rem; color: var(--ink-40); padding-block: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 46px; margin-bottom: 12px; }
.prose h3 { margin-top: 30px; margin-bottom: 8px; }
.prose p { color: var(--ink-60); margin: 0 0 16px; }
.prose ul { color: var(--ink-60); padding-left: 18px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }

.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding-block: clamp(44px, 6vw, 76px) 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(26px, 4vw, 54px); }
.footer-brand { grid-column: 1 / -1; max-width: 300px; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand .brand { color: #fff; }
.footer-col h4 { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: .85rem; color: rgba(255,255,255,.6); transition: color .25s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: clamp(36px, 5vw, 60px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: .74rem; color: rgba(255,255,255,.45); }

/* --------------------------------------------------------- 11. motion */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d='1'] { transition-delay: .07s; }
.reveal[data-d='2'] { transition-delay: .14s; }
.reveal[data-d='3'] { transition-delay: .21s; }
.reveal[data-d='4'] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .06s !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; z-index: 100; padding: 12px 18px; background: var(--ink); color: #fff; }
.skip-link:focus { left: 12px; top: 12px; }
.stack { display: grid; gap: 14px; }
.center { text-align: center; }
.hide-sm { display: none; }
@media (min-width: 900px) { .hide-sm { display: initial; } .hide-lg { display: none; } }

@media (max-width: 1000px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .brand { font-size: 1rem; letter-spacing: .3em; }
}
@media (max-width: 620px) {
  :root { --header-h: 58px; }
  .icon-btn { width: 38px; height: 38px; }
  .hide-xs { display: none; }
  .btn { min-height: 50px; }
}
@media (max-width: 520px) { .hero .btn-row .btn { flex: 1 1 100%; } }
