/* Morrow Coffee Roasters — fictional client-style site, demo by DARBEEN Digital.
   Motion (Emil Kowalski rules): transform/opacity only, strong ease-out, UI <= 250ms,
   drawers ~400ms on the iOS drawer curve, press = scale(0.97), hover only on fine pointers,
   reduced motion = opacity only. No `transition: all`, no ease-in, no scale(0). */
:root {
  --bg: #f6f1e9;
  --bg-2: #ede5d8;
  --card: #fffcf7;
  --ink: #1d1a17;
  --ink-2: #463f39;
  --ink-3: #685f57;
  --line: #e3d9cb;
  --line-2: #cbbdaa;
  --sage: #34503f;
  --sage-2: #263c2f;
  --sage-soft: #e1e9e2;
  --focus: #1f6b46;
  --err: #a3261b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", "Noto Serif Armenian", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", "Noto Sans", "Noto Sans Armenian", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --r: 18px;
  --max: 1200px;
  --gut-l: max(16px, env(safe-area-inset-left));
  --gut-r: max(16px, env(safe-area-inset-right));
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gut-l: max(32px, env(safe-area-inset-left)); --gut-r: max(32px, env(safe-area-inset-right)); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--bg); }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-user-select: none; user-select: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
html:lang(hy) h1, html:lang(hy) h2, html:lang(hy) h3 { line-height: 1.25; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }

/* Focus: clear ring on interactive elements; none on programmatic focus targets (headings, legend, dialog panels) */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.strip :focus-visible, .strip-pill:focus-visible, .band--sub :focus-visible, .skip:focus-visible { outline-color: #b9e2c5; }

[hidden] { display: none !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 { position: absolute; left: 12px; top: -80px; z-index: 90; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut-l) + var(--gut-r)); margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.muted { color: var(--ink-3); }

/* Demo strip */
.strip { background: var(--ink); color: #efe8dd; font-size: 13px; }
.strip__in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-height: 44px; }
.strip__text { margin: 0; padding: 8px 0; display: flex; align-items: center; gap: 8px; flex: 1 1 260px; min-width: 0; line-height: 1.4; }
.strip__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #9fd0ad; }
.strip__actions { display: flex; align-items: center; gap: 2px; flex: none; margin-left: auto; }
.strip__back { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; text-underline-offset: 3px; padding: 0 8px; }
.strip__hide { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #efe8dd; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .strip__hide:hover { background: rgba(255, 255, 255, 0.1); } }
.strip-pill { position: fixed; left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: #efe8dd; font-size: 13px; font-weight: 600; cursor: pointer; touch-action: manipulation; box-shadow: 0 6px 20px -8px rgba(29, 26, 23, 0.5); transition: transform 160ms var(--ease-out); }
.strip-pill:active { transform: scale(0.97); }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(246, 241, 233, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--serif); font-size: 23px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; flex: none; }
.logo--small { font-size: 19px; gap: 8px; min-height: 0; }
.nav { display: flex; gap: 2px; margin-left: 16px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 10px 14px; border-radius: 999px; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); background: var(--bg-2); } }
.langs { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); flex: none; }
.langs button { border: 0; background: transparent; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; min-width: 40px; height: 36px; border-radius: 999px; color: var(--ink-3); cursor: pointer; touch-action: manipulation; }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .langs button:not([aria-pressed="true"]):hover { color: var(--ink); background: var(--bg-2); } }
@media (pointer: coarse) { .langs button { height: 42px; min-width: 46px; } }
.langs--sheet { margin: 20px 0 0; align-self: flex-start; }
.langs--sheet button { min-width: 56px; height: 44px; font-size: 14px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; font-weight: 600; font-size: 14px; touch-action: manipulation; flex: none; transition: transform 160ms var(--ease-out); }
.cart-btn:active { transform: scale(0.97); }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sage); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; display: inline-grid; place-items: center; transition: transform 200ms var(--ease-out); }
.badge[data-empty="true"] { background: var(--bg-2); color: var(--ink-3); }
.badge[data-bump] { transform: scale(1.18); }
.menu-btn { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 600; font-size: 14px; cursor: pointer; touch-action: manipulation; flex: none; transition: transform 160ms var(--ease-out); }
.menu-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .cart-btn:hover, .menu-btn:hover { background: var(--bg-2); } }
/* Long RU/HY nav labels need the full width, so the inline nav starts at 981px */
@media (max-width: 980px) {
  .nav, .header__in > .langs { display: none; }
  .cart-btn { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .header__in { gap: 8px; }
}
@media (max-width: 560px) { .cart-btn__label { display: none; } .cart-btn { padding: 0 12px; } }
@media (max-width: 359px) { .menu-btn span { display: none; } .menu-btn { width: 44px; padding: 0; justify-content: center; } }

/* Views */
.view { padding-bottom: 88px; }
.view-in { animation: view-in 240ms var(--ease-out); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-head { padding: 56px 0 28px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); max-width: 18ch; }
html:lang(hy) .page-head h1 { font-size: clamp(26px, 7.2vw, 48px); max-width: none; }
.page-head .lead { margin: 14px 0 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-bottom: 16px; }
html:lang(hy) .eyebrow, html:lang(ru) .eyebrow { letter-spacing: 0.04em; }
.eyebrow--light { color: #b9e2c5; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 46ch; line-height: 1.55; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.025em; line-height: 1.02; }
html:lang(ru) .hero h1, html:lang(es) .hero h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.06; }
html:lang(hy) .hero h1 { font-size: clamp(30px, 4.6vw, 58px); line-height: 1.18; letter-spacing: 0; }
.hero .lead { margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.actions--tight { margin-top: 14px; }
.hero__note { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero__note svg { flex: none; color: var(--sage); }
.hero__art { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; justify-self: end; }
.stage { position: absolute; inset: 0; border-radius: 32px; overflow: hidden; background: #e6dccd; }
.stage__arch { position: absolute; left: 13%; right: 13%; top: 8%; bottom: 0; border-radius: 999px 999px 0 0; background: #efe7da; }
.stage__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: #d8cab6; }
.hb { position: absolute; }
.hb .art { width: 100%; filter: drop-shadow(0 14px 18px rgba(29, 26, 23, 0.16)); }
.hb--l { left: 8%; bottom: 10%; width: 31%; transform: rotate(-5deg); transform-origin: 50% 100%; }
.hb--r { right: 8%; bottom: 10%; width: 31%; transform: rotate(5deg); transform-origin: 50% 100%; }
.hb--c { left: 31%; bottom: 6%; width: 38%; z-index: 2; }
.hb--mug { right: 5%; bottom: 3%; width: 21%; z-index: 3; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 56px; }
  .hero__art { max-width: 460px; justify-self: center; }
}

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; transition: transform 160ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--lg { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.btn--primary { background: var(--sage); color: #fff; }
.btn--primary[data-state="added"] { background: var(--sage-2); }
.btn--ghost { background: transparent; border-color: var(--line-2); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:not([disabled]):hover { background: var(--sage-2); }
  .btn--ghost:not([disabled]):hover { background: var(--bg-2); }
  .btn--light:hover { background: #fff; }
}
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link svg { flex: none; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover svg { transform: translateX(3px); } }
.icon-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); cursor: pointer; touch-action: manipulation; transition: transform 160ms var(--ease-out); }
.icon-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--bg-2); } }

/* Features */
.features { list-style: none; padding: 0; margin: 0 0 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.features__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); margin-bottom: 16px; }
.features h3 { font-size: 20px; margin-bottom: 8px; }
.features p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); margin-bottom: 56px; } }
.row-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.row-head h2 { font-size: clamp(28px, 3.2vw, 38px); }

/* Product grid — all cards equal height, footer pinned to the bottom */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 540px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.product { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.product::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 24px 44px -26px rgba(29, 26, 23, 0.45); opacity: 0; transition: opacity 220ms ease; pointer-events: none; }
.product__art { position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; background: var(--tint, var(--bg-2)); border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; overflow: hidden; }
.product__art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 40%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%); }
.product__art .art { position: relative; width: 40%; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .product:hover::after { opacity: 1; }
  .product:hover .product__art .art { transform: translateY(-4px); }
}
.product__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.product__name { font-size: 22px; line-height: 1.2; }
html:lang(hy) .product__name { font-size: 20px; }
.product__notes { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 0; }
.product__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--ink-3); font-size: 13px; margin: 6px 0 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--sage)); }
.product__foot { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; }
.product__meta + .product__foot { margin-top: auto; }
.product__body > .product__meta { margin-bottom: 8px; }
.product__price { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Packaging art text (inside inline SVG) */
.art text { font-family: var(--sans); text-anchor: middle; fill: var(--ink); }
.art .a-brand { font-size: 5.6px; font-weight: 700; letter-spacing: 0.32em; }
.art .a-name { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.art .a-notes { font-family: var(--serif); font-size: 5.6px; font-style: italic; fill: #5a514a; }
.art .a-roast { font-size: 5.2px; font-weight: 700; letter-spacing: 0.14em; text-anchor: start; }
.art .a-roast.a-mid { text-anchor: middle; }
.art .a-roast[fill="#fff"] { fill: #fff; }
.art .a-roast[fill="#2a1d14"] { fill: #2a1d14; }
.art .a-wt { font-size: 4.3px; letter-spacing: 0.12em; fill: #6b625a; }

/* Home bands */
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-top: 72px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); margin-top: 56px; } }
.band { border-radius: 24px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; }
.band h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.band p { max-width: 46ch; }
.band--sub { background: var(--sage); color: #f2efe8; }
.band--sub p { color: #dfe6df; }
.band__plans { list-style: none; padding: 0; margin: 4px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.band__plans li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28); font-size: 13px; font-weight: 600; }
.band--visit { background: var(--card); border: 1px solid var(--line); }
.band--visit .link { margin-top: auto; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 600; cursor: pointer; touch-action: manipulation; transition: transform 160ms var(--ease-out); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):hover { background: var(--bg-2); } }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.sort .select { width: auto; min-width: 210px; }
@media (max-width: 560px) { .sort { width: 100%; } .sort .select { flex: 1; min-width: 0; } }
.count { color: var(--ink-3); font-size: 14px; margin: 8px 0 16px; }

/* Forms */
.form { display: grid; gap: 16px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.input, .select { width: 100%; min-height: 48px; padding: 11px 14px; font-size: 16px; border: 1px solid var(--line-2); border-radius: 12px; background-color: var(--card); appearance: none; -webkit-appearance: none; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23463f39' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer; }
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31, 107, 70, 0.22); }
.input[aria-invalid="true"] { border-color: var(--err); }
.err { margin: 0; color: var(--err); font-size: 13px; }
.err:empty { display: none; }
.note { margin: 0; font-size: 13px; color: var(--ink-3); }
.sent { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--sage-soft); color: var(--sage-2); font-size: 14px; }
.sent:empty { display: none; }

/* Visit */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .visit { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 28px); }
.panel h2 { font-size: 24px; margin-bottom: 12px; }
.panel h3 { font-size: 18px; margin: 22px 0 6px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; line-height: 1.35; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); margin-bottom: 14px; }
.status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status[data-open="true"] { background: var(--sage-soft); color: var(--sage-2); }
.status[data-open="true"]::before { background: var(--sage); }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours td:first-child { text-transform: capitalize; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.hours tr[data-today] td { font-weight: 700; }
.hours tr[data-today] td:first-child::after { content: " · " attr(data-label); font-weight: 600; color: var(--sage); text-transform: none; }

/* Quiz */
.quiz { max-width: 780px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 40px); }
.quiz__step { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 10px; }
.quiz__progress { height: 4px; background: var(--bg-2); border-radius: 2px; overflow: hidden; margin-bottom: 24px; }
.quiz__progress i { display: block; height: 100%; width: 100%; background: var(--sage); transform-origin: left; transition: transform 250ms var(--ease-out); }
.quiz fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz legend { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.2; margin-bottom: 20px; padding: 0; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span { display: flex; align-items: center; min-height: 56px; height: 100%; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); font-weight: 600; line-height: 1.35; cursor: pointer; -webkit-user-select: none; user-select: none; transition: transform 160ms var(--ease-out); }
.option span:active { transform: scale(0.98); }
.option input:checked + span { border-color: var(--sage); background: var(--sage-soft); color: var(--sage-2); box-shadow: inset 0 0 0 1px var(--sage); }
.option input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .option input:not(:checked) + span:hover { background: var(--bg); } }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.quiz__body { animation: view-in 220ms var(--ease-out); }
.result { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; }
.result__art { aspect-ratio: 4 / 5; border-radius: 18px; display: grid; place-items: center; background: var(--tint, var(--bg-2)); }
.result__art .art { width: 66%; }
.result h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 4px 0 8px; }
.result .eyebrow { margin-bottom: 4px; }
.result dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; margin: 14px 0 16px; font-size: 15px; }
.result dt { color: var(--ink-3); }
.result dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .result { grid-template-columns: minmax(0, 1fr); } .result__art { max-width: 200px; } .quiz__nav .btn { flex: 1; } }

/* Layers: drawer + sheet */
.layer { position: fixed; inset: 0; z-index: 50; }
.layer__backdrop { position: absolute; inset: 0; background: rgba(29, 26, 23, 0.4); transition: opacity 300ms var(--ease-out); }
.layer[data-state="closed"] .layer__backdrop { opacity: 0; }
.drawer, .sheet { position: absolute; display: flex; flex-direction: column; background: var(--bg); box-shadow: 0 24px 60px -20px rgba(29, 26, 23, 0.45); outline: none; }
.drawer { top: 0; right: 0; bottom: 0; width: min(440px, 100%); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); transition: transform 400ms var(--ease-drawer); }
.layer[data-state="closed"] .drawer { transform: translateX(100%); }
.sheet { left: 0; right: 0; bottom: 0; max-height: 86svh; overflow-y: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0; padding: 0 var(--gut-r) max(24px, env(safe-area-inset-bottom)) var(--gut-l); transition: transform 400ms var(--ease-drawer); }
.layer[data-state="closed"] .sheet { transform: translateY(100%); }
@media (max-width: 560px) {
  .drawer { top: auto; left: 0; width: 100%; max-height: 90svh; border-radius: 22px 22px 0 0; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .layer[data-state="closed"] .drawer { transform: translateY(100%); }
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.sheet .drawer__head { padding: 14px 0; }
.drawer__head h2 { font-size: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.drawer__count { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-3); }
.drawer__count:empty { display: none; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px; min-height: 0; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--card); }
.drawer__foot:empty { display: none; }
@media (max-width: 380px) { .drawer__head, .drawer__body, .drawer__foot { padding-left: 16px; padding-right: 16px; } }
.sheet__nav { display: grid; }
.sheet__nav a { display: flex; align-items: center; min-height: 56px; font-family: var(--serif); font-size: 24px; text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet__nav a[aria-current="page"] { color: var(--sage); }

/* Cart lines */
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line__art { width: 64px; height: 76px; border-radius: 12px; display: grid; place-items: center; background: var(--tint, var(--bg-2)); }
.line__art .art { width: 72%; }
.line__name { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.25; margin: 0; }
.line__meta { font-size: 13px; color: var(--ink-3); margin: 2px 0 8px; }
.line__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); }
.qty button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; touch-action: manipulation; transition: transform 160ms var(--ease-out); }
.qty button:active { transform: scale(0.97); }
.qty button[disabled] { opacity: 0.35; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .qty button:not([disabled]):hover { background: var(--bg-2); } }
.qty__n { min-width: 26px; text-align: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.line__remove { min-height: 44px; border: 0; background: none; color: var(--ink-3); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0 4px; }
@media (hover: hover) and (pointer: fine) { .line__remove:hover { color: var(--ink); } }
.line__total { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { text-align: center; padding: 40px 8px; color: var(--ink-2); display: grid; gap: 6px; justify-items: center; }
.empty__art { width: 84px; margin-bottom: 10px; }
.empty__title { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); margin: 0; }
.empty__text { margin: 0 0 14px; font-size: 15px; max-width: 30ch; }
.ship__note { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.ship__bar { height: 4px; border-radius: 2px; background: var(--bg-2); overflow: hidden; }
.ship__bar i { display: block; height: 100%; background: var(--sage); transform-origin: left; }
.sum { margin: 0; display: grid; gap: 6px; font-size: 15px; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--ink-2); }
.sum dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sum__total { padding-top: 8px; border-top: 1px solid var(--line); font-size: 18px; }
.sum__total dt { color: var(--ink); font-weight: 700; }
.sum__total dd { font-weight: 700; }
.checkout-msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--sage-soft); color: var(--sage-2); font-size: 14px; }

/* Toast — transition-based so rapid adds retarget instead of restarting */
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60; max-width: calc(100% - 32px); width: max-content; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center; box-shadow: 0 10px 30px -10px rgba(29, 26, 23, 0.55); transform: translate(-50%, 0); opacity: 1; transition: opacity 400ms ease, transform 400ms ease; pointer-events: none; }
.toast[data-state="hidden"] { opacity: 0; transform: translate(-50%, 120%); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 max(44px, env(safe-area-inset-bottom)); color: var(--ink-3); font-size: 14px; }
.footer__in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; justify-content: space-between; }
.footer__brand { display: grid; gap: 10px; }
.footer__brand .logo { color: var(--ink); }
.footer p { margin: 0; max-width: 60ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .view-in, .quiz__body { animation: fade 200ms ease; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .drawer, .sheet { transition: opacity 200ms ease; }
  .layer[data-state="closed"] .drawer, .layer[data-state="closed"] .sheet { transform: none; opacity: 0; }
  .toast { transition: opacity 200ms ease; }
  .toast[data-state="hidden"] { transform: translate(-50%, 0); }
  .badge[data-bump] { transform: none; }
  .quiz__progress i, .product__art .art, .link svg { transition: none; }
  .product:hover .product__art .art, .link:hover svg { transform: none; }
  .btn:active, .chip:active, .cart-btn:active, .menu-btn:active, .icon-btn:active, .option span:active, .qty button:active, .strip-pill:active { transform: none; }
}
