/* ========== Основа — calm premium ========== */
:root {
  --bg: #F4F1EB;
  --bg-2: #ECE7DE;
  --paper: #FBFAF7;
  --ink: #1D1C1A;
  --ink-2: #3A3833;
  --muted: #77716A;
  --line: #E2DCD1;
  --line-2: #D3CBBE;
  --clay: #B5643C;
  --clay-soft: #F1E0D3;
  --sage: #7E8C74;
  --sage-soft: #DDE3D6;
  --ok: #4F7A4E;
  --warn: #B5643C;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(29, 28, 26, .04), 0 18px 40px -22px rgba(29, 28, 26, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--clay-soft); }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.narrow { max-width: 1040px; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.small { font-size: 14px; }
.ok-text { color: var(--ok); }
.warn { color: var(--warn); }
.mono { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 14px; }
code { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: .86em; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }

/* ---------- Type ---------- */
.display {
  font-weight: 400;
  font-size: clamp(44px, 6.6vw, 104px);
  line-height: .98;
  letter-spacing: -.045em;
  margin: 0;
}
.h1 { font-weight: 400; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.04em; margin: 0; }
.h2 { font-weight: 400; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -.035em; margin: 0; }
.h3 { font-weight: 500; font-size: 22px; letter-spacing: -.02em; margin: 0 0 12px; }
.h4 { font-weight: 600; font-size: 15px; margin: 24px 0 10px; }
.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.12em;
  letter-spacing: -.01em;
  color: var(--clay);
  line-height: .8;
}
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 520px; margin: 28px 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 5px var(--clay-soft); }
.eyebrow--light { color: rgba(251, 250, 247, .6); }
.count { font-size: .32em; font-weight: 500; letter-spacing: 0; color: var(--muted); vertical-align: top; margin-left: 8px; position: relative; top: .5em; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #33312D; }
.btn--ghost { border-color: var(--line-2); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn-arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .btn-arrow, a:hover > .btn .btn-arrow { transform: translateX(4px); }
.btn.danger, .link-btn.danger { color: #A4452B; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link-btn:disabled { opacity: .4; cursor: not-allowed; }

.soon {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--clay-soft); color: var(--clay);
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  vertical-align: middle; line-height: 1.5;
}
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color .3s; }
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(244, 241, 235, .78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(244, 241, 235, .9); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { font-size: 26px; font-weight: 500; letter-spacing: -.05em; display: inline-flex; align-items: baseline; gap: 2px; }
.logo--lg { font-size: 40px; }
.logo-dot { width: .22em; height: .22em; border-radius: 50%; background: var(--clay); display: inline-block; transition: transform .5s var(--ease); }
.logo:hover .logo-dot { transform: translateY(-.35em); }
.nav { display: flex; gap: 6px; margin-left: auto; margin-right: auto; }
.nav > a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background .25s, color .25s; }
.nav > a:hover { background: rgba(29, 28, 26, .05); color: var(--ink); }
.nav > a.is-active { color: var(--ink); background: var(--paper); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center; background: transparent; border: 0;
  transition: background .25s;
}
.icon-btn:hover { background: rgba(29, 28, 26, .06); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-dot { position: absolute; top: 10px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); border: 2px solid var(--bg); }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--clay); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.cart-count[data-count="0"] { display: none; }
.cart-count.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.burger { display: none; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.nav-open .burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Flash & toasts ---------- */
.flash {
  max-width: 640px; margin: 16px auto 0; padding: 14px 18px 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line);
  font-size: 15px; box-shadow: var(--shadow); width: calc(100% - 32px);
  animation: drop .5s var(--ease);
}
.flash--success { border-left: 4px solid var(--sage); }
.flash--error { border-left: 4px solid var(--clay); }
.flash button { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.toast-wrap { position: fixed; z-index: 90; right: 20px; bottom: 20px; display: grid; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 14px; min-width: 260px; max-width: calc(100vw - 40px);
  background: var(--ink); color: var(--paper); padding: 14px 16px 14px 18px; border-radius: 16px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .4); font-size: 15px;
  animation: toastIn .45s var(--ease);
}
.toast--error { background: #7A3420; }
.toast a { margin-left: auto; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.toast-check { width: 26px; height: 26px; border-radius: 50%; background: var(--clay); display: grid; place-items: center; flex: none; font-size: 13px; }
.toast.is-out { opacity: 0; transform: translateY(10px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(24px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-stats { display: flex; gap: clamp(24px, 4vw, 56px); margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; font-weight: 500; }
.hero-stats dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.hero-media { position: relative; }
.arch { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; }
.hero-arch { aspect-ratio: 4 / 5; background: var(--bg-2); max-height: 76vh; margin-left: auto; }
.hero-arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 2.4s var(--ease); }
.reveal.is-in .hero-arch img { transform: scale(1); }
.spin-badge {
  position: absolute; left: -46px; bottom: 18%; width: 148px; height: 148px;
  border-radius: 50%; background: var(--paper); box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.spin-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 28s linear infinite; }
.spin-badge text { font-size: 15.4px; letter-spacing: .16em; text-transform: uppercase; fill: var(--ink-2); font-weight: 600; }
.spin-core { color: var(--clay); font-size: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-tag {
  position: absolute; right: 22px; top: 22%;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px;
  background: rgba(251, 250, 247, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; font-size: 14px; box-shadow: var(--shadow);
  transition: transform .4s var(--ease);
}
.hero-tag:hover { transform: translateY(-3px); }
.hero-tag > span:last-child { display: grid; line-height: 1.3; }
.hero-tag b { font-weight: 600; }
.hero-tag-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--clay); position: relative; }
.hero-tag-dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--clay); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--paper); }
.marquee-track { display: flex; width: max-content; gap: 36px; align-items: center; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 30px); color: var(--ink-2); white-space: nowrap; }
.marquee i { color: var(--clay); font-style: normal; font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 128px) 0 0; }
.section--last { padding-bottom: clamp(64px, 8vw, 128px); }
.section--tight { padding-top: clamp(56px, 6vw, 96px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 3vw, 48px); flex-wrap: wrap; }
.section-note { max-width: 380px; margin: 0; font-size: 15px; }

/* Categories rail */
.cat-rail { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat-card { scroll-snap-align: start; display: grid; gap: 14px; }
.cat-media { display: block; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden; background: var(--bg-2); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.06); }
.cat-meta { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; padding: 0 4px; }
.cat-meta small { color: var(--muted); font-size: 13px; }

/* Product grid & card */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px) clamp(14px, 1.6vw, 24px); }
.p-card { display: flex; flex-direction: column; gap: 16px; position: relative; }
.fav-form { margin: 0; }
.fav-form--card { position: absolute; top: 10px; right: 10px; z-index: 2; }
.fav-form--pdp { margin-top: 12px; }
.fav-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(251, 250, 247, .9); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: transform .2s var(--ease), color .2s; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fav-btn.is-on { color: var(--clay); }
.fav-btn.is-on svg { fill: currentColor; }
.fav-form--pdp .fav-btn { width: auto; height: auto; border-radius: 999px; padding: 10px 16px; gap: 8px; background: transparent; border: 1px solid var(--line-2); grid-auto-flow: column; }
.fav-form--pdp .fav-btn::after { content: 'В избранное'; font-size: 14px; font-weight: 500; }
.fav-form--pdp .fav-btn.is-on::after { content: 'В избранном'; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 48px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.pager a:hover { background: var(--paper); }
.pager .is-current { background: var(--ink); color: var(--paper); font-weight: 600; }
.pager .pager-gap { min-width: 20px; padding: 0; }
.p-card-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.p-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.p-card-alt { opacity: 0; }
.p-card:hover .p-card-media img { transform: scale(1.035); }
.p-card:hover .p-card-alt { opacity: 1; }
.p-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 1; }
.badge { padding: 5px 11px; border-radius: 999px; background: rgba(251, 250, 247, .92); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.badge--sale { background: var(--clay); color: #fff; }
.badge--sm { padding: 2px 8px; font-size: 11px; background: var(--bg-2); }
.p-card-body { display: grid; gap: 10px; padding: 0 4px; }
.p-card-title { font-size: 17px; font-weight: 500; letter-spacing: -.015em; margin: 0; line-height: 1.3; }
.p-card-sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.p-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 600; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.price s { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
.price--lg { font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.add-mini {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  display: grid; place-items: center; transition: background .3s var(--ease), color .3s, border-color .3s, transform .4s var(--ease);
}
.add-mini svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }
.add-mini:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(90deg); }
.add-mini.is-done { background: var(--clay); border-color: var(--clay); color: #fff; }

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 112px); align-items: start; }
.about-head { position: sticky; top: calc(var(--header-h) + 32px); }
.about-head .muted { max-width: 420px; margin-top: 24px; }
.values { list-style: none; margin: 0; padding: 0; }
.values li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 32px 0; border-top: 1px solid var(--line); }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values .num { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--clay); line-height: 1; }
.values h3 { font-size: 24px; font-weight: 500; letter-spacing: -.025em; margin: 0 0 8px; }
.values p { margin: 0; color: var(--ink-2); max-width: 520px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 28px 26px 32px; position: relative; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-n { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 600; font-size: 14px; margin-bottom: 40px; }
.steps li:nth-child(2) .step-n { background: var(--clay); border-color: var(--clay); color: #fff; }
.steps h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Teaser */
.teaser {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  background: var(--ink); color: var(--paper); border-radius: calc(var(--radius) + 8px);
  padding: clamp(36px, 5vw, 72px); position: relative; overflow: hidden; isolation: isolate;
}
.teaser::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(251, 250, 247, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(251, 250, 247, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 80% 50%, #000, transparent 70%);
}
.teaser .h2 { color: var(--paper); }
.teaser .accent { color: #E2A27E; }
.teaser p:not(.eyebrow) { color: rgba(251, 250, 247, .72); max-width: 440px; margin: 20px 0 32px; }
.teaser-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 360px; margin-left: auto; width: 100%; }
.teaser-modules span { aspect-ratio: 1; border-radius: 18px; background: rgba(251, 250, 247, .08); border: 1px solid rgba(251, 250, 247, .14); transition: transform .8s var(--ease), background .8s; }
.teaser-modules span:nth-child(1) { border-radius: 999px 18px 18px 18px; }
.teaser-modules span:nth-child(5) { background: #C98B6B; border-color: #C98B6B; }
.teaser-modules span:nth-child(3) { border-radius: 18px 999px 18px 18px; }
.teaser:hover .teaser-modules span:nth-child(2) { transform: translateY(-14px); }
.teaser:hover .teaser-modules span:nth-child(4) { transform: translateX(14px); background: #9AA58F; }
.teaser:hover .teaser-modules span:nth-child(6) { transform: translateY(14px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 72px 0 28px; margin-top: auto; }
.footer-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding-bottom: 56px; }
.footer-brand p { color: var(--muted); max-width: 340px; margin: 16px 0 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { margin: 0 0 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.footer-cols a, .footer-cols span { display: block; margin-bottom: 10px; font-size: 15px; }
.footer-cols a:hover { color: var(--clay); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- Pages ---------- */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
.page { padding: clamp(24px, 3vw, 40px) 0 clamp(64px, 8vw, 112px); }
.page-head { padding: 12px 0 clamp(28px, 3vw, 44px); }
.page-head--tight { padding-bottom: 24px; }
.page-lead { max-width: 560px; margin: 16px 0 0; font-size: 17px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span:last-child { color: var(--ink-2); }

/* Catalog bar */
.catalog-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; transition: .25s; white-space: nowrap; }
.pill:hover { border-color: var(--ink); }
.pill.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill small { opacity: .6; margin-left: 4px; }
.catalog-tools { display: flex; gap: 10px; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.search input { height: 44px; width: 260px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); padding: 0 18px 0 44px; font-size: 14px; outline: none; transition: border-color .25s, width .4s var(--ease); }
.search input:focus { border-color: var(--ink); width: 300px; }
.select select {
  height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2377716A' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  padding: 0 40px 0 18px; font-size: 14px; appearance: none; cursor: pointer; outline: none;
}

/* Empty */
.empty { text-align: center; padding: 64px 0; display: grid; justify-items: center; gap: 4px; }
.empty .muted { max-width: 420px; margin: 0 0 24px; }
.empty-icon { width: 96px; height: 120px; background: linear-gradient(180deg, var(--clay-soft), var(--bg-2)); margin-bottom: 24px; }
.error-code { font-family: var(--serif); font-style: italic; font-size: 120px; line-height: 1; color: var(--clay); margin: 0 0 8px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.gallery { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); max-height: calc(100vh - var(--header-h) - 140px); width: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.gallery-main img.is-fading { opacity: 0; }
.gallery-thumbs { display: flex; gap: 10px; }
.thumb { width: 76px; aspect-ratio: 4 / 5; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: none; opacity: .65; transition: .25s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active, .thumb:hover { opacity: 1; border-color: var(--ink); }
.pdp-info { padding-top: 8px; }
.pdp-title { font-size: clamp(34px, 3.6vw, 52px); }
.pdp-sub { color: var(--muted); font-size: 17px; margin: 10px 0 0; }
.pdp-price { display: flex; align-items: baseline; gap: 14px; margin: 28px 0 28px; }
.swatches { border: 0; padding: 0; margin: 0 0 24px; }
.swatches legend { font-size: 14px; color: var(--muted); margin-bottom: 12px; padding: 0; }
.swatches legend b { color: var(--ink); font-weight: 600; }
.swatch-list { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { cursor: pointer; position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch span:not(.sr-only) {
  display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 3px var(--bg), 0 0 0 4px transparent;
  transition: box-shadow .25s, transform .25s var(--ease);
}
.swatch:hover span:not(.sr-only) { transform: scale(1.06); }
.swatch input:checked + span { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 3px var(--bg), 0 0 0 4px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 6px; }
.pdp-actions { display: flex; gap: 12px; }
.stepper { display: inline-flex; align-items: center; height: 54px; border-radius: 999px; border: 1px solid var(--line-2); padding: 0 6px; flex: none; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; font-size: 20px; color: var(--ink-2); transition: background .2s; }
.stepper button:hover:not(:disabled) { background: var(--bg-2); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper input, .stepper output { width: 36px; text-align: center; border: 0; background: transparent; font-weight: 600; outline: none; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper--sm { height: 44px; }
.stepper--sm button { width: 32px; height: 32px; font-size: 18px; }
.btn--add .btn-done { position: absolute; inset: 0; display: grid; place-items: center; background: var(--clay); transform: translateY(100%); transition: transform .45s var(--ease); }
.btn--add.is-done .btn-done { transform: none; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.availability { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }
.availability.is-in .avail-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(79, 122, 78, .14); }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 32px 0; }
.perks div { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border-radius: var(--radius-sm); padding: 14px; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.perks small { font-weight: 400; color: var(--muted); }
.perks svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--clay); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-weight: 600; font-size: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-weight: 300; font-size: 24px; line-height: 1; transition: transform .35s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.prose { padding: 0 0 20px; color: var(--ink-2); }
.prose p { margin: 0 0 12px; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 112px 1fr auto auto 32px; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { border-top: 1px solid var(--line); }
.cart-thumb { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-title { font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.cart-info p { margin: 4px 0 0; }
.cart-price { text-align: right; display: grid; min-width: 110px; }
.cart-remove button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; font-size: 20px; color: var(--muted); transition: .2s; }
.cart-remove button:hover { background: var(--bg-2); color: var(--ink); }
.summary { background: var(--paper); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.summary--sticky { position: sticky; top: calc(var(--header-h) + 16px); }
.summary-rows { margin: 0; display: grid; gap: 10px; }
.summary-rows div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.summary-rows dt { color: var(--muted); }
.summary-rows dd { margin: 0; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); }
.summary-total b { font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.summary-note { margin: 0; }
.free-meter { height: 4px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.free-meter span { display: block; height: 100%; background: var(--sage); border-radius: 4px; }
.free-meter + p { margin: -6px 0 0; }
.inline-icon { width: 15px; height: 15px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.mini-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mini-items li { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; font-size: 15px; }
.mini-items img { width: 52px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--bg-2); }
.mini-items span { display: grid; line-height: 1.35; }
.mini-items small { color: var(--muted); font-size: 13px; }
.mini-items b { font-weight: 600; white-space: nowrap; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form--row { display: flex; gap: 12px; flex-wrap: wrap; }
.form--row .input { flex: 1; min-width: 220px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field > span i { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field small { font-size: 13px; color: var(--clay); }
.field small.hint { color: var(--muted); }
.input {
  width: 100%; min-height: 50px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--paper); padding: 12px 16px; font-size: 16px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { resize: vertical; min-height: 90px; line-height: 1.5; }
select.input { appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2377716A' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; padding-right: 40px; cursor: pointer; }
.input:hover { border-color: #BDB3A4; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(29, 28, 26, .06); }
.input:disabled { opacity: .6; }
.has-error .input { border-color: var(--clay); }
.form-error { background: var(--clay-soft); color: #7A3420; padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 16px; font-size: 15px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--paper); margin: 0; display: grid; place-items: center; transition: .2s; cursor: pointer; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ''; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check.has-error input { border-color: var(--clay); }
.check.has-error span { color: var(--clay); }
.check--radio input { border-radius: 50%; }
.check--radio input:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2--wide { grid-template-columns: 1fr 180px; }

/* Auth */
.auth { display: grid; place-items: center; padding-top: clamp(32px, 6vw, 80px); }
.auth-card { width: 100%; max-width: 460px; background: var(--paper); border-radius: calc(var(--radius) + 4px); padding: clamp(28px, 4vw, 44px); margin: 0 16px; box-shadow: var(--shadow); }
.auth-card .h2 { margin-bottom: 12px; }
.auth-card > .muted { margin: 0 0 24px; }
.auth-card .form { margin-top: 24px; }
.auth-card--center { text-align: center; display: grid; justify-items: center; gap: 4px; }
.auth-card--center .muted { margin: 8px 0 20px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.auth-links a:hover { color: var(--clay); }
.envelope { width: 84px; height: 84px; border-radius: 50%; background: var(--clay-soft); display: grid; place-items: center; margin-bottom: 20px; animation: float 4s ease-in-out infinite; }
.envelope svg { width: 40px; fill: none; stroke: var(--clay); stroke-width: 2.4; stroke-linejoin: round; }
@keyframes float { 50% { transform: translateY(-6px); } }
.dev-note { background: #FFF6DB; border: 1px dashed #D8B65A; padding: 10px 14px; border-radius: 12px; font-size: 14px; margin: 0 0 20px; }
.dev-note a { text-decoration: underline; font-weight: 600; }

/* Checkout */
.progress { list-style: none; display: flex; gap: 10px; margin: 8px 0 16px; padding: 0; font-size: 14px; color: var(--muted); counter-reset: p; }
.progress li { display: flex; align-items: center; gap: 10px; counter-increment: p; }
.progress li::before { content: counter(p); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.progress li:not(:last-child)::after { content: ''; width: 40px; height: 1px; background: var(--line-2); }
.progress .is-done::before { content: '✓'; background: var(--sage-soft); border-color: var(--sage-soft); color: var(--ok); }
.progress .is-current { color: var(--ink); font-weight: 600; }
.progress .is-current::before { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.checkout-form { display: grid; gap: 20px; }
.form-block { border: 0; margin: 0; background: var(--paper); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; }
.form-block legend { float: left; width: 100%; font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 4px; padding: 0; }
.form-block p { margin: 0; }

/* Account */
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; overflow-y: hidden; }
.tabs a { padding: 12px 18px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: .2s; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--ink); border-color: var(--ink); }
.tabs small { background: var(--bg-2); border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 24px; }
.notice p { margin: 4px 0 0; }
.notice--accent { background: var(--clay-soft); border-color: transparent; }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.order-row { display: grid; grid-template-columns: 180px 1fr auto 130px 24px; gap: 20px; align-items: center; background: var(--paper); border-radius: var(--radius); padding: 18px 24px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.order-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.order-row-main { display: grid; }
.order-num { font-weight: 600; font-size: 17px; }
.order-thumbs { display: flex; align-items: center; }
.order-thumbs img, .order-thumbs span { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); margin-left: -10px; background: var(--bg-2); }
.order-thumbs img:first-child { margin-left: 0; }
.order-thumbs span { display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.order-total { text-align: right; font-weight: 600; }
.order-go { color: var(--muted); transition: transform .3s var(--ease); }
.order-row:hover .order-go { transform: translateX(4px); color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--bg-2); color: var(--ink-2); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.status[data-status="pending_payment"] { background: #F6EBD3; color: #8A6420; }
.status[data-status="paid"] { background: var(--clay-soft); color: #9A4F2A; }
.status[data-status="processing"] { background: #E6E3F0; color: #57507A; }
.status[data-status="shipped"] { background: #DCE8EE; color: #3C6478; }
.status[data-status="delivered"] { background: var(--sage-soft); color: var(--ok); }
.status[data-status="cancelled"] { background: #EEE9E4; color: var(--muted); }
.status--lg { font-size: 14px; padding: 8px 16px; }
.profile-form { max-width: 480px; }
.profile-sections { display: grid; gap: 40px; max-width: 560px; }
.profile-sections .h3 { margin: 0 0 14px; }
.profile-sections .muted.small { margin: 0 0 14px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.order-head .muted { margin: 8px 0 0; }
.timeline { list-style: none; margin: 8px 0 32px; padding: 28px 24px 24px; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; background: var(--paper); border-radius: var(--radius); }
.timeline::before, .timeline::after { content: ''; position: absolute; top: 40px; left: calc(10% + 24px * .2); right: calc(10% + 24px * .2); height: 2px; background: var(--line); }
.timeline::after { background: var(--clay); right: auto; width: calc((80% - 24px * .4) * var(--progress)); transition: width 1.2s var(--ease); }
.timeline li { display: grid; justify-items: center; text-align: center; gap: 6px; position: relative; z-index: 1; }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-2); display: grid; place-items: center; }
.timeline .is-done .tl-dot { background: var(--clay); border-color: var(--clay); }
.timeline .is-done .tl-dot::after { content: '✓'; color: #fff; font-size: 12px; font-weight: 700; }
.timeline .is-current .tl-dot { border-color: var(--clay); box-shadow: 0 0 0 6px var(--clay-soft); }
.timeline .is-current .tl-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--clay); }
.tl-label { font-weight: 600; font-size: 14px; margin-top: 6px; }
.timeline li:not(.is-done):not(.is-current) .tl-label { color: var(--muted); font-weight: 500; }
.tl-date { font-size: 12px; color: var(--muted); }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cancel-box { margin-top: 16px; }
.cancel-box summary { cursor: pointer; font-weight: 600; color: #A4452B; list-style: none; }
.cancel-box summary::-webkit-details-marker { display: none; }
.cancel-box summary::after { content: ' ↓'; }
.cancel-box[open] summary::after { content: ' ↑'; }
.cancel-form { display: grid; gap: 16px; margin-top: 16px; max-width: 560px; }
.cancel-form .small { margin: 0; }
.cancel-reasons { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.cancel-reasons legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.cancel-note { margin-top: 20px; }

/* Legal pages */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: clamp(24px, 4vw, 64px); align-items: start; }
.legal-nav { position: sticky; top: 96px; display: grid; gap: 4px; }
.legal-nav a { padding: 10px 14px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.legal-nav a:hover { background: var(--paper); }
.legal-nav a.is-active { background: var(--paper); color: var(--ink); font-weight: 600; }
.legal-text { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.legal-text .h2 { color: var(--ink); margin-bottom: 8px; }
.legal-text h2 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 32px 0 10px; letter-spacing: -.01em; }
.legal-text ol, .legal-text ul { padding-left: 22px; display: grid; gap: 6px; }
.legal-text a, .check a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: inherit; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; }
}
.card { background: var(--paper); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; align-content: start; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.item-spec { display: grid; gap: 3px; margin-top: 10px; padding: 12px 14px; background: var(--bg); border-radius: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.item-spec b, .item-spec summary { font-weight: 600; color: var(--clay); margin-bottom: 4px; cursor: pointer; }
.mini-items li.item-spec-row { display: block; margin-top: -6px; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.history li:last-child { border: 0; }

/* Mock payment */
.page-pay { background: #EEF0F3; }
.pay-mock { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.pay-card { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 36px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); }
.pay-test-flag { display: inline-block; background: #FFF6DB; color: #7A5B12; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.pay-amount { font-size: 44px; font-weight: 500; letter-spacing: -.04em; margin: 8px 0 12px; }
.pay-actions { display: grid; gap: 10px; margin-top: 24px; }

/* Dev mail */
.letters { display: grid; gap: 10px; }
.letter { background: var(--paper); border-radius: var(--radius-sm); overflow: hidden; }
.letter summary { cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.letter iframe { width: 100%; height: 560px; border: 0; border-top: 1px solid var(--line); background: #F4F1EB; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-rail { grid-template-columns: repeat(7, 180px); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .burger { display: inline-grid; }
  .hide-sm { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h));
    background: var(--bg); flex-direction: column; gap: 0; padding: 24px clamp(16px, 4vw, 48px);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .35s var(--ease); margin: 0;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav > a { font-size: 30px; letter-spacing: -.03em; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .nav-mobile-extra { display: grid; gap: 12px; margin-top: auto; padding-bottom: 24px; font-size: 17px; }
  .nav-phone { color: var(--muted); }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; width: 100%; margin: 0 auto; }
  .spin-badge { left: -8px; width: 120px; height: 120px; }
  .spin-badge text { font-size: 15.4px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-head { position: static; }
  .teaser { grid-template-columns: 1fr; }
  .teaser-modules { margin: 0; max-width: 280px; }
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .gallery-main { max-height: none; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary--sticky { position: static; }
  .footer-top { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1fr auto; row-gap: 12px; }
  .order-thumbs { grid-row: 2; }
  .order-go { display: none; }
  .order-total { grid-row: 2; }
  .order-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .p-card-title { font-size: 15px; }
  .p-card-sub { font-size: 13px; }
  .price { font-size: 15px; }
  .price s { display: none; }
  .add-mini { width: 34px; height: 34px; }
  .cat-rail { grid-template-columns: repeat(7, 140px); }
  .steps { grid-template-columns: 1fr; }
  .step-n { margin-bottom: 20px; }
  .hero-stats { gap: 20px; }
  .hero-stats dd { font-size: 12.5px; }
  .hero-tag { right: 10px; top: 10%; }
  .hero-cta .btn { flex: 1; padding: 0 18px; }
  .catalog-tools { width: 100%; }
  .search { flex: 1; }
  .search input, .search input:focus { width: 100%; }
  .pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .cart-item { grid-template-columns: 84px 1fr 32px; grid-template-areas: 'img info rm' 'img qty price'; gap: 10px 16px; }
  .cart-thumb { grid-area: img; }
  .cart-info { grid-area: info; }
  .cart-item .stepper { grid-area: qty; justify-self: start; }
  .cart-price { grid-area: price; min-width: 0; }
  .cart-remove { grid-area: rm; align-self: start; }
  .perks { grid-template-columns: 1fr; }
  .grid-2, .grid-2--wide { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .timeline::before, .timeline::after { display: none; }
  .timeline li { grid-template-columns: 26px 1fr auto; justify-items: start; text-align: left; align-items: center; gap: 14px; }
  .tl-label { margin: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .toast-wrap { left: 16px; right: 16px; bottom: 16px; }
}

.prose p { white-space: pre-line; }
.specs { margin: 0 0 20px; display: grid; gap: 0; font-size: 15px; }
.specs div { display: grid; grid-template-columns: minmax(120px, 45%) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

/* Checkout: city suggestions */
.city-field { position: relative; }
.city-field > label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.city-field > label i { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.city-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 4px); margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 300px; overflow: auto; }
.city-list li { display: grid; padding: 9px 12px; border-radius: 10px; cursor: pointer; line-height: 1.3; }
.city-list li small { color: var(--muted); font-size: 12.5px; }
.city-list li:hover, .city-list li.is-active { background: var(--bg); }
.city-list .city-empty { cursor: default; color: var(--muted); font-size: 14px; }

/* Checkout: address in three fields, lift to the floor */
.grid-3 { display: grid; grid-template-columns: 1fr 160px 130px; gap: 16px; }
.toggle-line { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 600; }
.toggle-line input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-line small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.toggle-line .switch { margin-top: 2px; }
.toggle-line input:checked + .switch { background: var(--ok); }
.toggle-line input:checked + .switch span { transform: translateX(16px); }
.toggle-line input:focus-visible + .switch { outline: 2px solid var(--clay); outline-offset: 2px; }
.lift-fields { align-items: end; }
.lift-elevator { padding-bottom: 14px; }
@media (max-width: 680px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-3 > :first-child { grid-column: 1 / -1; } }
.switch { position: relative; display: inline-block; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); transition: background .25s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
