/* ==========================================================================
   Aurelia — design system
   Tokens → primitives → components → pages → responsive
   ========================================================================== */

/* ---------- tokens ------------------------------------------------------ */
:root {
  --ink: #1c1a17;
  --ink-2: #4a463f;
  --ink-3: #7b756b;
  --line: #e3ddd2;
  --line-2: #d3cabb;
  --surface: #ffffff;
  --surface-2: #faf7f2;
  --surface-3: #f2ece1;
  --accent: #b5623f;
  --accent-2: #8f4a2d;
  --accent-soft: #f6e7df;
  --good: #4f7a52;
  --warn: #a8762a;
  --bad: #a8453a;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(28, 26, 23, .06);
  --shadow-sm: 0 2px 8px rgba(28, 26, 23, .07);
  --shadow: 0 10px 30px -12px rgba(28, 26, 23, .22);
  --shadow-lg: 0 30px 70px -30px rgba(28, 26, 23, .38);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --container: 1240px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="dark"] {
  --ink: #f4f1ea;
  --ink-2: #c3bdb2;
  --ink-3: #948d81;
  --line: #33302b;
  --line-2: #423e37;
  --surface: #171614;
  --surface-2: #1e1c1a;
  --surface-3: #262320;
  --accent: #d9805c;
  --accent-2: #e79b7c;
  --accent-soft: #33231c;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .45);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .65);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
}

/* ---------- reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 16px; }

/* ---------- layout ------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tint { background: var(--surface-2); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 32px;
}
.section-head p { color: var(--ink-3); max-width: 52ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .7rem;
  font-weight: 600; color: var(--accent); margin-bottom: 10px;
}
.lede { font-size: 1.06rem; color: var(--ink-2); max-width: 62ch; }
.stack > * + * { margin-top: var(--gap, 16px); }
.grid { display: grid; gap: 24px; }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--cats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------- buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .93rem; letter-spacing: .01em;
  border: 1px solid transparent; transition: all .18s var(--ease);
  white-space: nowrap; text-align: center;
}
.btn--primary { background: var(--ink); color: var(--surface); }
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--outline { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--ink); background: var(--surface-2); }
.btn--ghost { color: var(--ink-2); padding: 8px 12px; }
.btn--ghost:hover { color: var(--ink); background: var(--surface-3); }
.btn--sm { padding: 8px 15px; font-size: .84rem; }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--radius-pill);
  color: var(--ink); transition: background .18s var(--ease), color .18s var(--ease);
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.count {
  position: absolute; top: 2px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: var(--radius-pill);
  background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1;
}
.count[hidden] { display: none; }

/* ---------- forms ------------------------------------------------------- */
.field { display: grid; gap: 7px; }
.field > label { font-size: .82rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder { color: var(--ink-3); }
.textarea { min-height: 96px; resize: vertical; }
.field-error { font-size: .78rem; color: var(--bad); min-height: 0; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.checkline { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.checkline input { margin-top: 4px; accent-color: var(--accent); }

/* ---------- header ------------------------------------------------------ */
.announce {
  background: var(--ink); color: var(--surface);
  font-size: .8rem; text-align: center; padding: 9px 16px; letter-spacing: .02em;
}
.announce strong { color: var(--accent-2); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h); display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.32rem; letter-spacing: .01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--ink));
  display: grid; place-items: center; color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: .82rem; letter-spacing: 0;
}
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav a {
  padding: 9px 13px; border-radius: var(--radius-pill); font-size: .89rem; font-weight: 500;
  color: var(--ink-2); transition: all .16s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface-3); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-3); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hamburger { display: none; }

.search-wrap { position: relative; flex: 1; max-width: 300px; }
.search-wrap .input { padding-left: 38px; border-radius: var(--radius-pill); }
.search-wrap svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; stroke: var(--ink-3); fill: none; stroke-width: 1.7; pointer-events: none;
}

/* mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: var(--surface); padding: 22px;
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mobile-nav a {
  display: block; padding: 15px 4px; font-size: 1.12rem; font-family: var(--serif);
  border-bottom: 1px solid var(--line);
}

/* ---------- hero -------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--surface-2); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 60vw; height: 60vw;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 62%);
  border-radius: 50%; opacity: .85; pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1.05fr .95fr; padding: clamp(52px, 8vw, 104px) 0;
}
.hero h1 { font-family: var(--serif); font-weight: 500; line-height: 1.06; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lede { margin-top: 20px; font-size: 1.1rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stat b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.hero-stat span { font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
.hero-art { position: relative; aspect-ratio: 1 / 1; }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero-float {
  position: absolute; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 13px 17px; display: flex; align-items: center; gap: 12px;
  animation: float 6s ease-in-out infinite;
}
.hero-float b { display: block; font-size: .88rem; }
.hero-float span { font-size: .74rem; color: var(--ink-3); }
.hero-float--a { left: -18px; bottom: 13%; }
.hero-float--b { right: -14px; top: 11%; animation-delay: -3s; }
.hero-float .swatch {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--ink)); flex: none;
}
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }

/* ---------- value strip ------------------------------------------------- */
.values {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; background: var(--line); border-block: 1px solid var(--line);
}
.value { background: var(--surface); padding: 26px 22px; display: flex; gap: 14px; align-items: flex-start; }
.value svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.6; flex: none; margin-top: 2px; }
.value b { display: block; font-size: .92rem; }
.value span { font-size: .82rem; color: var(--ink-3); }

/* ---------- category tiles ---------------------------------------------- */
.cat-tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface-2);
  padding: 22px; min-height: 148px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.cat-tile b { font-family: var(--serif); font-size: 1.14rem; font-weight: 500; }
.cat-tile small { color: var(--ink-3); font-size: .8rem; }
.cat-tile .cat-count { font-size: .74rem; color: var(--accent); font-weight: 600; letter-spacing: .04em; }

/* ---------- product card ------------------------------------------------ */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.card__wish {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: var(--radius-pill); display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(6px);
  box-shadow: var(--shadow-xs); transition: all .18s var(--ease);
}
.card__wish svg { width: 17px; height: 17px; stroke: var(--ink-2); fill: none; stroke-width: 1.7; }
.card__wish:hover { transform: scale(1.08); }
.card__wish[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); }
.card__quick {
  position: absolute; inset: auto 12px 12px; opacity: 0; transform: translateY(8px);
  transition: all .22s var(--ease); z-index: 2;
}
.card:hover .card__quick, .card:focus-within .card__quick { opacity: 1; transform: translateY(0); }
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card__cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-3); font-weight: 600; }
.card__title { font-size: .98rem; font-weight: 600; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { font-weight: 600; font-size: 1.02rem; }
.price--was { color: var(--ink-3); text-decoration: line-through; font-weight: 400; font-size: .88rem; }
.price--off { color: var(--accent); font-size: .78rem; font-weight: 600; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: var(--radius-pill); font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; background: var(--ink); color: var(--surface);
}
.badge--sale { background: var(--accent); color: #fff; }
.badge--soft { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-2); }
.badge--good { background: var(--good); color: #fff; }
.badge--low { background: var(--warn); color: #fff; }
.badge--out { background: var(--surface-3); color: var(--ink-3); }

.stars { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--ink-3); }
.stars svg { width: 13px; height: 13px; fill: var(--accent); stroke: none; }

/* ---------- toolbar / filters ------------------------------------------- */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 28px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 15px; border-radius: var(--radius-pill); font-size: .84rem; font-weight: 500;
  border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface);
  transition: all .16s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.toolbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.toolbar__count { font-size: .84rem; color: var(--ink-3); }

/* ---------- product detail ---------------------------------------------- */
.crumbs { font-size: .82rem; color: var(--ink-3); padding: 20px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: start; padding-bottom: 72px; }
.pdp__gallery { display: grid; gap: 12px; }
.pdp__main { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-3); border: 1px solid var(--line); }
.pdp__main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pdp__thumb {
  border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface-3); transition: border-color .16s var(--ease);
}
.pdp__thumb[aria-pressed="true"] { border-color: var(--ink); }
.pdp__thumb img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.pdp__info h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.pdp__price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 6px; }
.pdp__price .price { font-size: 1.5rem; }
.pdp__lead { color: var(--ink-2); margin-top: 14px; }
.option-group { margin-top: 26px; }
.option-group__label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 10px; }
.option-group__label span { color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch-btn {
  width: 36px; height: 36px; border-radius: var(--radius-pill);
  border: 2px solid var(--line-2); box-shadow: inset 0 0 0 2px var(--surface);
  transition: transform .16s var(--ease), border-color .16s var(--ease);
}
.swatch-btn:hover { transform: scale(1.08); }
.swatch-btn[aria-pressed="true"] { border-color: var(--ink); transform: scale(1.08); }
.pdp__buy { display: flex; gap: 12px; margin-top: 28px; align-items: stretch; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-pill); overflow: hidden; }
.stepper button { width: 42px; height: 46px; display: grid; place-items: center; font-size: 1.1rem; color: var(--ink-2); }
.stepper button:hover { background: var(--surface-3); color: var(--ink); }
.stepper input {
  width: 46px; border: 0; text-align: center; background: transparent;
  height: 46px; font-weight: 600; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock-line { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-2); margin-top: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.dot--low { background: var(--warn); }
.dot--out { background: var(--bad); }
.accordion { margin-top: 30px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  padding: 16px 0; font-weight: 600; font-size: .94rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.2rem; color: var(--ink-3); font-weight: 400; }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding: 0 0 18px; color: var(--ink-2); font-size: .9rem; }
.accordion .acc-body li { padding-left: 18px; position: relative; margin-bottom: 7px; }
.accordion .acc-body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- drawer / cart ----------------------------------------------- */
.scrim {
  position: fixed; inset: 0; z-index: 80; background: rgba(24, 20, 16, .5);
  opacity: 0; pointer-events: none; transition: opacity .28s var(--ease); backdrop-filter: blur(2px);
}
.scrim[data-open="true"] { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 85;
  width: min(430px, 100%); background: var(--surface); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .34s var(--ease);
  box-shadow: var(--shadow-lg);
}
.drawer[data-open="true"] { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 1.08rem; font-family: var(--serif); font-weight: 500; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 20px 22px; background: var(--surface-2); }
.drawer__close { font-size: 1.5rem; line-height: 1; color: var(--ink-3); width: 36px; height: 36px; border-radius: var(--radius-pill); }
.drawer__close:hover { background: var(--surface-3); color: var(--ink); }

.line-item { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item:first-child { padding-top: 0; }
.line-item__img { border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); border: 1px solid var(--line); }
.line-item__img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.line-item__top { display: flex; justify-content: space-between; gap: 10px; }
.line-item__name { font-weight: 600; font-size: .9rem; line-height: 1.35; }
.line-item__meta { font-size: .78rem; color: var(--ink-3); margin-top: 3px; }
.line-item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.stepper--sm button { width: 32px; height: 32px; font-size: .95rem; }
.stepper--sm input { width: 36px; height: 32px; font-size: .88rem; }
.link-danger { font-size: .78rem; color: var(--ink-3); text-decoration: underline; }
.link-danger:hover { color: var(--bad); }

.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .92rem; padding: 6px 0; }
.summary-row--total { font-size: 1.12rem; font-weight: 600; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.summary-row--discount { color: var(--good); }
.muted { color: var(--ink-3); font-size: .84rem; }

.promo-row { display: flex; gap: 8px; margin: 14px 0; }
.promo-row .input { flex: 1; padding: 10px 12px; font-size: .88rem; }
.promo-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  background: var(--accent-soft); color: var(--accent); padding: 6px 12px;
  border-radius: var(--radius-pill); font-size: .8rem; font-weight: 600;
}

/* ---------- cart page / checkout ---------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding-bottom: 80px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; }
.panel--tint { background: var(--surface-2); }
.panel__title { font-family: var(--serif); font-weight: 500; font-size: 1.22rem; margin-bottom: 4px; }
.cart-item { display: grid; grid-template-columns: 108px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.cart-item__img { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface-3); }
.cart-item__img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.cart-item__price { text-align: right; font-weight: 600; white-space: nowrap; }
.sticky-summary { position: sticky; top: calc(var(--header-h) + 20px); }

.steps { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 9px; font-size: .86rem; color: var(--ink-3); font-weight: 500; }
.step b {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink-3); font-size: .78rem;
}
.step[data-state="active"] { color: var(--ink); }
.step[data-state="active"] b { background: var(--ink); color: var(--surface); }
.step[data-state="done"] b { background: var(--good); color: #fff; }
.step-sep { width: 28px; height: 1px; background: var(--line-2); }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; padding-bottom: 80px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.order-line { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; padding: 9px 0; }
.order-line__name { color: var(--ink-2); }
.order-mini { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.order-mini img { width: 52px; height: 52px; border-radius: var(--radius-xs); object-fit: cover; border: 1px solid var(--line); }

/* ---------- empty & toast ----------------------------------------------- */
.empty { text-align: center; padding: 72px 20px; max-width: 460px; margin-inline: auto; }
.empty svg { width: 54px; height: 54px; stroke: var(--line-2); fill: none; stroke-width: 1.3; margin: 0 auto 20px; }
.empty h2 { font-family: var(--serif); font-weight: 500; margin-bottom: 8px; }
.empty p { color: var(--ink-3); margin-bottom: 24px; }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease-in-out infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 100% 0 } 100% { background-position: 0 0 } }

.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 120; display: grid; gap: 10px; width: min(400px, calc(100% - 32px)); }
.toast {
  background: var(--ink); color: var(--surface); padding: 13px 18px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: .89rem; display: flex; align-items: center; gap: 11px;
  animation: toastIn .3s var(--ease);
}
.toast svg { width: 17px; height: 17px; stroke: var(--accent-2); fill: none; stroke-width: 2; flex: none; }
.toast--out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) } }

/* ---------- newsletter / footer ----------------------------------------- */
.newsletter { background: var(--ink); color: var(--surface); border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 60px); text-align: center; }
.newsletter h2 { font-family: var(--serif); font-weight: 500; }
.newsletter p { opacity: .72; margin: 12px auto 26px; max-width: 48ch; }
.newsletter form { display: flex; gap: 10px; max-width: 440px; margin-inline: auto; flex-wrap: wrap; }
.newsletter .input { flex: 1; min-width: 200px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.newsletter .input::placeholder { color: rgba(255, 255, 255, .55); }
.newsletter .input:focus { border-color: var(--accent-2); box-shadow: none; }
.newsletter .btn { background: var(--surface); color: var(--ink); }
.newsletter .btn:hover { background: var(--accent); color: #fff; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); margin-top: clamp(48px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; padding: 56px 0 40px; }
.footer-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 16px; }
.footer-grid a { display: block; font-size: .89rem; color: var(--ink-2); padding: 5px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 20px 0 32px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: var(--ink-3);
}
.footer-pay { display: flex; gap: 8px; align-items: center; }
.footer-pay span {
  border: 1px solid var(--line-2); border-radius: var(--radius-xs);
  padding: 3px 9px; font-size: .7rem; font-weight: 700; color: var(--ink-3); letter-spacing: .04em;
}

/* ---------- utilities --------------------------------------------------- */
.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;
}
.center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 32px }
.hidden { display: none !important; }
[hidden] { display: none !important; }

/* ---------- responsive -------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin-inline: auto; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .sticky-summary { position: static; }
}
@media (max-width: 900px) {
  .nav, .search-wrap { display: none; }
  .hamburger { display: inline-grid; }
  .pdp { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--products { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .card__body { padding: 12px 12px 14px; }
  .card__quick { display: none; }
  .cart-item { grid-template-columns: 76px 1fr; }
  .cart-item__price { grid-column: 2; text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .drawer { width: 100%; }
  .hero-float { display: none; }
  .hero-stats { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .drawer, .scrim, .toast-wrap, .announce { display: none !important; }
}
