/* Shared structure for all three directions. Every color and font comes from tokens each direction defines. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: var(--fs-body, 16px); line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--head-bg, var(--bg)); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw, 1240px); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }
p { margin: 0; }

/* demo bar + header */
.demo-bar { background: var(--demo-bg, var(--fg)); color: var(--demo-fg, var(--bg)); font-size: 12.5px; letter-spacing: .01em; }
.demo-bar .wrap { padding-block: 6px; text-align: center; }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--head-bg, var(--bg)); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 24px; min-height: 64px; padding-block: 8px; }
.logo { text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 20px; display: flex; align-items: center; gap: 8px; flex: none; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { text-decoration: none; font-size: 15px; color: var(--muted); padding-block: 6px; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--fg); }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding-inline: 12px; border: 1px solid var(--line); border-radius: var(--r-ctl, 10px); background: var(--surface); width: 240px; }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; flex: none; }
.search input { border: 0; background: transparent; outline: 0; width: 100%; min-width: 0; font-size: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--r-ctl, 10px); padding: 3px; gap: 2px; background: var(--surface); }
.lang button { border: 0; background: transparent; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; padding: 6px 8px; border-radius: calc(var(--r-ctl, 10px) - 3px); color: var(--muted); min-width: 34px; }
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-ctl, 10px); background: var(--surface); text-decoration: none; flex: none; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cart-btn.bump { animation: bump .45s var(--ease, ease); }
@keyframes bump { 40% { transform: scale(1.15); } }
@media (max-width: 1080px) { .search { display: none; } }
@media (max-width: 760px) { .main-nav { display: none; } .head-in { gap: 12px; } }
@media (max-width: 400px) { .lang button { min-width: 28px; padding-inline: 5px; } .logo { font-size: 18px; } }

/* product art */
.art { width: 100%; height: 100%; }
.art .b { fill: var(--art-fill); }
.art .l { fill-opacity: 1; stroke: var(--art-line); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.art path.l:not(.b), .art circle.l:not(.b), .art rect.l:not(.b), .art ellipse.l:not(.b) { fill: none; }
.art .k-s { stroke: var(--accent); }
.art .k { fill: var(--accent); stroke: none; }

/* sections */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.link { color: var(--accent-text, var(--accent)); text-decoration: none; font-weight: 600; background: none; border: 0; padding: 0; }
.link:hover { text-decoration: underline; }
.link.small { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap, 12px); padding-block: 40px 8px; }
.cat { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-card, 12px); background: var(--surface); font-size: 14px; font-weight: 500; min-width: 0; }
.cat .art { width: 40px; height: 40px; flex: none; }
.cat span { min-width: 0; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }
.featured { padding-block: 48px; }
.grid { display: grid; gap: var(--gap, 16px); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* card */
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card, 12px); overflow: hidden; min-width: 0; transition: border-color .2s, transform .25s var(--ease, ease); }
.card:hover { border-color: var(--line-strong); }
.card-media { display: block; aspect-ratio: 1 / .9; padding: 18% 20% 12%; background: var(--media-bg, var(--surface-2)); max-width: 100%; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.card-type { font-size: 12.5px; color: var(--muted); }
.card-name { font-size: 16px; line-height: 1.3; font-weight: 600; }
.card-name a { text-decoration: none; }
.card-spec { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.price { font-family: var(--f-price, var(--f-display)); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.add-mini { width: 38px; height: 38px; border-radius: var(--r-ctl, 10px); border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; transition: background .2s, color .2s; }
.add-mini svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.add-mini:hover, .add-mini.is-added { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* support pipeline */
.how { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; padding-block: 48px 72px; }
.how-copy h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.how-copy p { color: var(--muted); max-width: 46ch; }
.pipe { display: grid; grid-template-columns: auto auto 1fr auto auto; gap: 14px; align-items: center; font-size: 13px; }
.pipe-node { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl, 10px); background: var(--surface); text-align: center; white-space: nowrap; }
.pipe-router, .pipe-check { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pipe-agents, .pipe-out { display: grid; gap: 8px; }
.pipe-op { border-style: dashed; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } .pipe { grid-template-columns: 1fr; justify-items: start; } .pipe-agents { grid-template-columns: 1fr 1fr; } .pipe-out { grid-template-columns: 1fr 1fr; } .pipe-node { white-space: normal; } }

/* pages */
.page { padding-block: 24px 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.cat-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); display: grid; gap: 12px; }
.f-title { font-family: var(--f-body); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 8px; }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.f-item { width: 100%; display: flex; justify-content: space-between; gap: 8px; text-align: left; border: 0; background: transparent; padding: 7px 10px; border-radius: var(--r-ctl, 8px); font-size: 14.5px; }
.f-item .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.f-item:hover { background: var(--surface-2); }
.f-item[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.f-item[aria-pressed="true"] .n { color: inherit; opacity: .7; }
.f-price { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.f-range { height: 4px; border-radius: 2px; background: var(--line); position: relative; }
.f-range i { position: absolute; inset: 0 8% 0 4%; background: var(--accent); border-radius: 2px; }
.f-check { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
.f-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 16px; margin-bottom: 20px; }
.toolbar h1 { font-size: clamp(26px, 3.2vw, 38px); }
.found { color: var(--muted); font-size: 14px; }
.sort { margin-left: auto; }
.sort select { height: 40px; padding-inline: 12px; border: 1px solid var(--line); border-radius: var(--r-ctl, 10px); background: var(--surface); font-size: 14px; }
@media (max-width: 860px) {
  .cat-layout { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; }
  .f-list { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .f-item { white-space: nowrap; border: 1px solid var(--line); }
  .filters .f-title, .f-price, .f-check { display: none; }
}

/* product */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; }
.pdp-gallery { display: grid; gap: 12px; }
.pdp-main { aspect-ratio: 1 / .92; padding: 12% 16%; background: var(--media-bg, var(--surface-2)); border-radius: var(--r-card, 12px); max-width: 100%; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(3, 88px); gap: 10px; }
.thumb { aspect-ratio: 1; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-ctl, 10px); background: var(--media-bg, var(--surface-2)); overflow: hidden; }
.thumb[aria-pressed="true"] { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.pdp-info { display: grid; gap: 14px; min-width: 0; }
.pdp-type { font-size: 13.5px; color: var(--muted); }
.pdp-name { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; }
.pdp-sku { font-family: var(--f-mono, var(--f-body)); font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.pdp-lead { color: var(--muted); max-width: 52ch; }
.pdp-buy { display: flex; align-items: center; gap: 16px; padding-top: 6px; }
.pdp-price { font-family: var(--f-price, var(--f-display)); font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stock { font-size: 13px; font-weight: 600; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pdp-colors { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.swatch { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 1px solid var(--line-strong); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg); }
.pdp-actions { display: flex; gap: 12px; align-items: stretch; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-ctl, 10px); height: 48px; }
.stepper button { width: 40px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; }
.stepper svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.stepper output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding-inline: 22px; border-radius: var(--r-ctl, 10px); border: 1px solid transparent; font-weight: 600; font-size: 15.5px; text-decoration: none; transition: transform .15s var(--ease, ease), background .2s, box-shadow .2s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); flex: 1; }
.btn-primary:hover { background: var(--accent-hover, var(--accent)); }
.btn-primary.is-added { box-shadow: 0 0 0 4px var(--accent-ring, transparent); }
.btn-ghost { background: transparent; border-color: var(--line-strong); justify-self: start; }
.btn-block { width: 100%; }
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 1px; border: 1px solid var(--line); border-radius: var(--r-card, 12px); overflow: hidden; background: var(--line); }
.facts li { display: flex; gap: 12px; padding: 12px 14px; background: var(--surface); font-size: 14px; }
.facts svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent-text, var(--accent)); stroke-width: 1.6; margin-top: 1px; }
.facts strong { display: block; font-weight: 600; }
.facts span { color: var(--muted); }
.spec-table { margin: 8px 0 0; display: grid; }
.spec-table div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 24px; } .pdp-thumbs { grid-template-columns: repeat(3, 64px); } .spec-table div { grid-template-columns: 110px 1fr; } }

/* cart */
.page-title { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 24px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card, 12px); background: var(--surface); }
.line-media { display: block; aspect-ratio: 1; padding: 14px; background: var(--media-bg, var(--surface-2)); border-radius: calc(var(--r-card, 12px) - 4px); }
.line-info { display: grid; gap: 2px; min-width: 0; }
.line-info h3 { font-size: 16px; font-weight: 600; }
.line-info .link { justify-self: start; margin-top: 6px; }
.line .stepper { height: 40px; }
.line-price { font-family: var(--f-price, var(--f-display)); font-weight: 700; font-size: 18px; min-width: 90px; text-align: right; font-variant-numeric: tabular-nums; }
.summary { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-card, 12px); background: var(--surface); position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; font-variant-numeric: tabular-nums; }
.sum-row span:first-child { color: var(--muted); }
.sum-total { font-size: 19px; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line); }
.sum-total span:first-child { color: var(--fg); }
.sum-note { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } .line { grid-template-columns: 72px minmax(0, 1fr); } .line .stepper { grid-column: 2; justify-self: start; } .line-price { grid-column: 2; text-align: left; } }

/* chat */
.chat-fab { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 10px; height: 52px; padding-inline: 18px 20px; border-radius: 26px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 600; box-shadow: var(--shadow); }
.chat-fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.chat { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 380px; max-width: calc(100vw - 32px); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-panel, 16px); box-shadow: var(--shadow); overflow: hidden; }
.chat-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 16px 16px 14px; background: var(--chat-head-bg, var(--surface-2)); border-bottom: 1px solid var(--line); }
.chat-head strong { font-family: var(--f-display); font-size: 16px; }
.chat-head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; max-width: 34ch; }
.chat-head .icon-btn { width: 34px; height: 34px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; }
.msg.you { align-self: flex-end; background: var(--bubble-you, var(--fg)); color: var(--bubble-you-fg, var(--bg)); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--bubble-bot, var(--surface-2)); border-bottom-left-radius: 4px; }
.msg .meta { margin-top: 8px; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.msg .tag { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text, var(--accent)); font-weight: 600; }
.typing { display: flex; gap: 4px; padding: 14px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .5; } }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: var(--r-ctl, 10px); padding-inline: 12px; background: var(--bg); font-size: 14.5px; }
.send { width: 44px; height: 44px; border: 0; border-radius: var(--r-ctl, 10px); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.chat-demo { font-size: 11.5px; color: var(--muted); padding: 0 14px 12px; }
@media (min-width: 1100px) { body.chat-open[data-view="cart"] .cart-page { padding-right: max(32px, calc(430px - (100vw - var(--maxw, 1240px)) / 2)); } }
@media (max-width: 600px) { .chat { left: 0; right: 0; bottom: 0; width: 100%; max-width: none; height: 72vh; border-radius: var(--r-panel, 16px) var(--r-panel, 16px) 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); } .chat-fab span { display: none; } .chat-fab { padding: 0; width: 52px; justify-content: center; } }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--foot-bg, var(--surface-2)); }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px; align-items: start; padding-block: 32px 96px; font-size: 14px; }
.foot-brand { font-family: var(--f-display); font-weight: 700; font-size: 18px; display: grid; gap: 6px; }
.foot-logo { display: flex; align-items: center; gap: 8px; }
.foot-brand p { text-transform: none;  font-family: var(--f-body); font-weight: 400; font-size: 13px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-contact { color: var(--muted); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* product photos: full-bleed on a studio tile that stays light in both themes */
.has-photo { padding: 0 !important; background: var(--photo-bg, #E0DCD3) !important; overflow: hidden; }
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-media.has-photo .photo { transition: transform .4s var(--ease, ease); }
.card:hover .card-media.has-photo .photo { transform: scale(1.04); }
.thumb.has-photo .photo { transform-origin: 50% 55%; }
.foot-note { font-size: 12px; opacity: .8; }

/* ---------- MVP shop additions ---------- */
.skip { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }
main:focus { outline: none; }
.nav-btn { border: 0; background: none; padding: 6px 0; font-size: 15px; color: var(--muted); }
.nav-btn:hover { color: var(--fg); }
.main-nav a[aria-current] { color: var(--fg); }
.search:focus-within { outline: 2px solid var(--accent-ring, var(--accent)); outline-offset: 1px; }
.cart-btn .count[hidden] { display: none !important; }
@media (max-width: 760px) {
  .head-in { flex-wrap: wrap; row-gap: 4px; }
  .main-nav { display: flex; order: 3; width: 100%; gap: 18px; overflow-x: auto; padding-bottom: 2px; }
  .main-nav a, .nav-btn { font-size: 14px; white-space: nowrap; }
}
.f-item { text-decoration: none; color: inherit; }
.f-item[aria-current] { background: var(--fg); color: var(--bg); }
.f-item[aria-current] .n { color: inherit; opacity: .7; }
.empty { display: grid; justify-items: start; gap: 16px; padding: 32px; background: var(--surface); }
.empty svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.how-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.pdp-main { overflow: hidden; }
.pdp-colors .swatch { padding: 0; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg); }
.line-color { display: inline-flex; align-items: center; gap: 5px; }
.line-color i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 1px solid var(--line-strong); }
.line-info h3 a { text-decoration: none; }
.line-info h3 a:hover { text-decoration: underline; }
.cart-list.compact { gap: 8px; }
.line-compact { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 10px; }
.line-compact .line-media { padding: 6px; }
.line-compact .line-price { font-size: 15px; min-width: 0; }
.line-compact h3 { font-size: 14.5px; }
@media (max-width: 900px) { .line-compact { grid-template-columns: 56px minmax(0, 1fr) auto; } .line-compact .line-price { grid-column: auto; text-align: right; } }
.sum-title { font-family: var(--f-display); font-size: 18px; margin-bottom: 4px; }
.narrow { max-width: 820px; }
.lead { color: var(--muted); font-size: 17px; max-width: 60ch; margin-bottom: 20px; }
.notice { padding: 12px 14px; background: var(--accent-soft); font-size: 14px; }

/* checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.co-main { display: grid; gap: 20px; min-width: 0; }
.co-block { margin: 0; padding: 20px; display: grid; gap: 14px; background: var(--surface); min-width: 0; }
.co-block legend { font-family: var(--f-display); font-weight: 700; font-size: 17px; padding: 0 6px; margin-left: -6px; text-transform: uppercase; }
.co-sub { font-weight: 600; font-size: 14px; margin-top: 4px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .status-form input { height: 48px; padding-inline: 14px; background: var(--bg); border-radius: var(--r-ctl, 10px); font-size: 16px; min-width: 0; width: 100%; }
.field input[aria-invalid="true"], .status-form input[aria-invalid="true"] { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
.field-err, .form-err { color: var(--err); font-size: 13.5px; font-weight: 600; }
.field-err:empty, .form-err:empty { display: none; }
.form-err { padding: 10px 12px; background: var(--err-soft); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; cursor: pointer; background: var(--bg); }
.choice input { accent-color: var(--fg); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.choice span { display: grid; gap: 2px; }
.choice small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.choice.is-disabled { opacity: .5; cursor: not-allowed; }
.co-consent { display: grid; gap: 6px; }
.co-consent .f-check { align-items: flex-start; font-size: 14px; }
.co-consent .f-check input { margin-top: 3px; flex: none; }
.co-consent a, .chat-consent a, .sum-note a { color: inherit; text-decoration: underline; }
.btn[disabled] { opacity: .7; cursor: progress; }
.captcha:empty { display: none; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } .checkout .summary { position: static; } }

/* order + status + help */
.order-hero { padding: 24px; background: var(--surface); display: grid; gap: 16px; margin-bottom: 32px; }
.order-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ok); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.order-badge svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.order-hero .page-title { margin: 0; }
.order-label { display: block; font-size: 14px; letter-spacing: .06em; color: var(--muted); font-family: var(--f-body); font-weight: 600; margin-bottom: 6px; }
.order-num { font-variant-numeric: tabular-nums; }
.order-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.order-facts div { display: grid; gap: 2px; }
.order-facts dt { font-size: 13px; color: var(--muted); }
.order-facts dd { margin: 0; font-weight: 700; }
.order-text { color: var(--muted); max-width: 62ch; }
@media (max-width: 700px) { .order-facts { grid-template-columns: 1fr 1fr; } }
.status-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; margin-bottom: 10px; }
.status-form .btn { flex: none; }
@media (max-width: 700px) { .status-form { grid-template-columns: 1fr; } }
.status-out { margin-top: 20px; display: grid; gap: 12px; }
.status-card { padding: 18px; background: var(--surface); display: grid; gap: 12px; }
.status-card.is-error { border-color: var(--err); }
.status-card .meta, .msg .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; color: var(--muted); }
.status-card .tag { padding: 2px 8px; background: var(--accent); color: #111214; font-weight: 600; }
.st-esc { font-weight: 700; color: var(--fg); }
.rid { font-family: ui-monospace, monospace; opacity: .7; }
.help { display: grid; gap: 14px; margin-bottom: 28px; }
.help section { padding: 18px 20px; background: var(--surface); }
.help h2 { font-size: 18px; margin-bottom: 6px; text-transform: uppercase; }
.help p { color: var(--muted); }

/* chat additions */
.chat { height: min(640px, calc(100dvh - 40px)); }
.chat-head-tools { display: flex; gap: 6px; flex: none; }
.ai-notice { margin: 0; padding: 10px 16px; font-size: 12.5px; line-height: 1.4; background: var(--accent-soft); color: var(--fg); font-weight: 500; }
.chat-log { min-height: 80px; }
.msg p + p { margin-top: 6px; }
.msg.err { align-self: stretch; max-width: none; background: var(--err-soft); color: var(--fg); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13.5px; }
.msg.err .link { color: var(--fg); text-decoration: underline; }
.chat-contact { border-top: 1px solid var(--line); font-size: 13px; }
.chat-contact summary { cursor: pointer; padding: 8px 14px; color: var(--muted); font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px 10px; }
.contact-grid label { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.chat-contact input { height: 36px; padding-inline: 8px; background: var(--bg); font-size: 14px; min-width: 0; width: 100%; color: var(--fg); }
.chat .captcha { padding: 0 12px; }
.chat-form { align-items: flex-end; }
.chat-form textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; resize: none; padding: 10px 12px; background: var(--bg); border-radius: var(--r-ctl, 10px); font: inherit; font-size: 15px; line-height: 1.4; color: var(--fg); }
.send[disabled], .op-btn[disabled] { opacity: .5; cursor: progress; }
.msg-count { font-size: 11.5px; color: var(--muted); padding: 0 14px; text-align: right; }
.msg-count:empty { display: none; }
.msg-count.is-low { color: var(--err); font-weight: 600; }
.chat-foot { display: grid; gap: 6px; padding: 0 12px 12px; }
.op-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; background: transparent; font-weight: 600; font-size: 13.5px; border-radius: var(--r-ctl, 10px); }
.op-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.op-btn:hover { background: var(--accent); color: var(--on-accent); }
.chat-consent { font-size: 11px; line-height: 1.4; color: var(--muted); }
.chat-fab.has-new::after { content: ""; position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--err); border: 2px solid var(--bg); }
.chat-fab { position: fixed; }
@media (max-width: 600px) { .chat { height: calc(100dvh - 56px); } .contact-grid { grid-template-columns: 1fr; } }
@media (min-width: 1100px) { body.chat-open[data-view="cart"] .cart-page, body.chat-open[data-view="checkout"] .page { padding-right: max(32px, calc(430px - (100vw - var(--maxw, 1240px)) / 2)); } }

/* legal pages */
.legal { padding-block: 32px 80px; max-width: 820px; }
.legal h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.legal h2 { font-size: 19px; margin: 32px 0 8px; }
.legal h3 { font-size: 16px; margin: 20px 0 6px; font-family: var(--f-body); }
.legal p, .legal li { color: var(--fg); max-width: 70ch; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal .todo { background: var(--accent); color: #111214; padding: 0 4px; font-weight: 600; }
.legal .meta-line { color: var(--muted); font-size: 14px; }
.legal-tabs { display: flex; gap: 8px; margin: 8px 0 24px; flex-wrap: wrap; }
.legal-tabs a { padding: 6px 12px; border: 2px solid var(--line-strong); text-decoration: none; font-weight: 600; font-size: 14px; }
.legal-tabs a[aria-current] { background: var(--accent); color: var(--on-accent); }
.legal address { font-style: normal; }
.legal-head .head-in { justify-content: space-between; }
