/* Pin & Float — storefront styles */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f4f1;
  --line: #e4e1dc;
  --line-strong: #cfcbc4;
  --text: #151515;
  --muted: #6f6b65;
  --accent: #1f3a32;
  --sale: #9b2c1f;
  --ok: #2c6a4f;
  --radius: 4px;
  --font: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --stage: radial-gradient(120% 100% at 50% 32%, #fcfcfb 0%, #eeede9 55%, #e0ded9 100%);
}

* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 500; }
h1 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-size: 26px; }
h3 { font-size: 15px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
main.wrap { min-height: 70vh; padding-top: 32px; padding-bottom: 80px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.announce { background: var(--text); color: #fff; text-align: center; font-size: 12px; letter-spacing: .06em; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; gap: 24px; }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 500; text-decoration: none; letter-spacing: -.01em; margin: 0; }
.logo span { font-style: italic; color: var(--muted); }
.nav { display: flex; gap: 28px; }
.nav a, .nav-build {
  text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a.active, .nav-build:hover, .nav-build.active { border-bottom-color: var(--text); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.cart-link { position: relative; display: grid; place-items: center; width: 36px; height: 36px; }
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 0; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--text); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }

/* buttons & controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 26px;
  border-radius: var(--radius); border: 1px solid var(--text); background: var(--bg); color: var(--text);
  font: 500 13px var(--font); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn.primary { background: var(--text); color: #fff; }
.btn.primary:hover { background: #333; }
.btn.ghost:hover { background: var(--bg-soft); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.small { height: 38px; padding: 0 16px; font-size: 12px; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: 13px; }
button.link:hover { color: var(--text); }
select, input {
  height: 44px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: #fff; color: var(--text);
  font: 14px var(--font); padding: 0 12px; max-width: 100%;
}
input[type=checkbox] { height: auto; accent-color: var(--text); }

/* 3D stage */
.viewer {
  position: relative; width: 100%; height: 100%; min-height: 360px; overflow: hidden;
  background: var(--stage); border-radius: var(--radius);
}
.viewer canvas.gl { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.viewer canvas.gl:active { cursor: grabbing; }
.viewer canvas.gl.over-spool { cursor: alias; }
.viewer canvas.gl.spinning { cursor: grabbing; }
.viewer-ui {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 10px; flex-wrap: wrap; pointer-events: none;
}
.viewer-ui .hint { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.vbtns { display: flex; gap: 6px; pointer-events: auto; flex-wrap: wrap; justify-content: flex-end; }
.vbtns button {
  height: 32px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .92); color: var(--text); font: 500 12px var(--font); cursor: pointer;
}
.vbtns button:hover { border-color: var(--text); }
.vbtns button.on { background: var(--text); color: #fff; border-color: var(--text); }
.seg, .reel-btns { display: inline-flex; gap: 6px; }
.seg[hidden], .reel-btns[hidden] { display: none; }
.viewer-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.viewer-empty[hidden] { display: none; }

/* home */
.hero { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; margin: 8px 0 64px; }
.hero-stage { height: min(620px, 72vh); }
.eyebrow { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 16px; }
.lead { color: var(--muted); font-size: 17px; max-width: 48ch; }
.cta { display: flex; gap: 12px; margin: 28px 0 20px; flex-wrap: wrap; }
.hero-note { font-size: 12px; color: var(--muted); max-width: 52ch; }
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 72px; }
.cat-tile { text-decoration: none; display: block; }
.cat-img { aspect-ratio: 1; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; margin-bottom: 12px; border-radius: var(--radius); }
.cat-img img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s; }
.cat-tile:hover .cat-img img { transform: scale(1.04); }
.cat-tile h2 { font-size: 20px; margin: 0; }
.cat-tile p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; margin-bottom: 72px; }
.how-n { font-family: var(--serif); font-size: 15px; color: var(--muted); display: block; margin-bottom: 10px; }
.how p { margin: 0; color: var(--muted); font-size: 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head a { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-underline-offset: 4px; }

/* category */
.cat-head { padding: 12px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.cat-head .lead { margin: 0; }
.filters { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: #fff; color: var(--text); cursor: pointer; font: 500 13px var(--font); }
.chip.on { background: var(--text); color: #fff; border-color: var(--text); }
.filter-right { display: flex; gap: 18px; align-items: center; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.count { color: var(--muted); font-size: 13px; margin: 12px 0 18px; }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; }
.card-img { position: relative; aspect-ratio: 1; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.card-img img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .3s; }
.card-img img.alt { opacity: 0; }
.card:hover .card-img img.alt { opacity: 1; }
.card:hover .card-img img:not(.alt):not(:only-child) { opacity: 0; }
.card-body { display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 14px; font-weight: 500; margin: 0 0 8px; flex: 1; line-height: 1.45; }
.brand { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 4px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 500; font-variant-numeric: tabular-nums; }
.price.big { font-size: 22px; }
.was { color: var(--muted); margin-left: 10px; }
.dots { display: flex; gap: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.badge, .badge-3d {
  position: absolute; top: 10px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 2px; z-index: 1;
}
.badge { left: 10px; background: #fff; color: var(--sale); }
.badge-3d { right: 10px; background: rgba(255, 255, 255, .9); color: var(--text); }

/* product page */
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.pdp { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.pdp-stage { position: sticky; top: 92px; display: grid; gap: 12px; }
.tabs { display: inline-flex; gap: 24px; border-bottom: 1px solid var(--line); }
.tabs button {
  height: 40px; padding: 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none;
  color: var(--muted); font: 500 13px var(--font); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.tabs button.on { color: var(--text); border-bottom-color: var(--text); }
.gallery[hidden], .stage-3d[hidden] { display: none; }
.gallery-main { aspect-ratio: 1; max-height: calc(100vh - 230px); width: 100%; background: var(--bg-soft); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.gallery-main img { max-width: 88%; max-height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.gallery-strip { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; }
.gallery-strip button { flex: 0 0 72px; height: 72px; padding: 6px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); cursor: pointer; }
.gallery-strip button.on { border-color: var(--text); }
.gallery-strip img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.stage-3d { height: min(660px, calc(100vh - 170px)); }
.pdp-info h1 { font-size: clamp(26px, 2.6vw, 36px); }
.price-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.stock { font-size: 12px; font-weight: 500; }
.stock::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.stock.in { color: var(--ok); }
.stock.in::before { background: var(--ok); }
.stock.out { color: var(--sale); }
.stock.out::before { background: var(--sale); }
.field-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.field-label span { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); margin-left: 4px; }
.opt-group { margin-bottom: 20px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; padding: 0; }
.sw.on { box-shadow: 0 0 0 1.5px var(--text); }
.sw.na { opacity: .35; }
.sw-label { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.warn { color: var(--sale) !important; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 40px; padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: #fff; color: var(--text); font: 14px var(--font); cursor: pointer; text-align: left; }
.opt:hover { border-color: var(--text); }
.opt.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.opt.na { color: var(--muted); text-decoration: line-through; }
.buy { display: flex; gap: 12px; margin: 28px 0 32px; }
.buy .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.qty button { width: 40px; height: 44px; border: 0; background: none; color: var(--text); font-size: 18px; cursor: pointer; }
.qty input { width: 44px; height: 44px; border: 0; text-align: center; padding: 0; }
.qty.small button { height: 34px; width: 32px; }
.qty.small span { width: 28px; text-align: center; font-size: 14px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 28px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 20px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.pair { border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: 28px; }
.pair h2 { font-size: 22px; margin-bottom: 6px; }
.pair a { text-underline-offset: 3px; }
.slots { display: grid; gap: 10px; margin: 16px 0; }
.slot { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.slot.empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-soft); border-color: transparent; }
.slot.empty .slot-head { margin: 0; }
.slot-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 14px; }
.slot-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.slot-row { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.slot-img { flex: 0 0 60px; height: 60px; border-radius: var(--radius); background: var(--bg-soft); display: grid; place-items: center; }
.slot-img img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.slot-name { display: grid; gap: 4px; min-width: 0; }
.slot-name a { font-size: 14px; font-weight: 500; text-decoration: none; }
.slot-links { display: flex; gap: 14px; }
.slot .opt-group { margin-bottom: 8px; }
.slot .sw { width: 24px; height: 24px; border-width: 2px; }
.slot .opt { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.combo-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--text); padding-top: 16px; }
.combo-bar > div:first-child { display: flex; flex-direction: column; }
.combo-bar .muted { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.combo-bar strong { font-size: 22px; font-weight: 500; }
.combo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.desc { border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; color: #3b3935; }
.desc summary { cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.desc ul { padding-left: 18px; }

/* pairing picker: 5 per row */
.pairing { margin-top: 72px; border-top: 1px solid var(--line); padding-top: 40px; }
.pairing-head h2 { margin-bottom: 4px; }
.pdp-stage, .b-stage, .pairing { scroll-margin-top: 96px; }
.picker-tabs { display: flex; gap: 28px; margin: 22px 0 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.picker-tabs button {
  height: 42px; padding: 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; cursor: pointer;
  color: var(--muted); font: 500 13px var(--font); letter-spacing: .08em; text-transform: uppercase;
}
.picker-tabs button span { margin-left: 4px; font-weight: 400; }
.picker-tabs button.on { color: var(--text); border-bottom-color: var(--text); }
.picker-tip { margin: 10px 0 20px; }
.picker-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 18px; }
.pick-card { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; background: none; border: 0; cursor: pointer; color: var(--text); font: inherit; }
.pick-img { aspect-ratio: 1; background: var(--bg-soft); border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 12px; outline: 1px solid transparent; outline-offset: -1px; transition: outline-color .15s; }
.pick-img img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.pick-card:hover .pick-img { outline-color: var(--line-strong); }
.pick-card.on .pick-img { outline: 2px solid var(--text); outline-offset: -2px; }
.pick-body { display: flex; flex-direction: column; flex: 1; }
.pick-name { font-size: 14px; margin: 0 0 6px; flex: 1; line-height: 1.4; }
.pick-body .price { margin: 0; font-size: 14px; }
.pick-on { position: absolute; top: 10px; right: 10px; background: var(--text); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; }
.pick-card .badge { top: 10px; left: 10px; }

/* builder */
.builder { display: grid; grid-template-columns: 8fr 4fr; gap: 40px; align-items: start; }
.b-stage { position: sticky; top: 92px; height: min(680px, calc(100vh - 120px)); }
.b-panel h1 { font-size: 34px; }

/* cart & checkout */
.page-title { margin-bottom: 28px; }
.cart { display: grid; grid-template-columns: 8fr 4fr; gap: 48px; align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto auto auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ci-img { display: grid; place-items: center; aspect-ratio: 1; background: var(--bg-soft); border-radius: var(--radius); }
.ci-img img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.ci-name { text-decoration: none; font-weight: 500; }
.ci-info p { margin: 0; }
.ci-info .muted { font-size: 13px; }
.summary { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; position: sticky; top: 92px; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary em { font-style: normal; }
.sum-total { border-top: 1px solid var(--line-strong); padding-top: 12px; font-weight: 600; font-size: 16px !important; }
.checkout { display: grid; gap: 14px; }
.checkout h2 { margin: 12px 0 0; font-size: 20px; }
.checkout label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.checkout .row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.demo-note { background: var(--bg-soft); border-left: 2px solid var(--text); padding: 12px 16px; font-size: 14px; margin-bottom: 28px; }
.empty-state { text-align: center; padding: 96px 0; display: grid; justify-items: center; gap: 10px; }

/* footer & toast */
.site-footer { background: var(--bg-soft); margin-top: 40px; padding: 56px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 32px; }
.footer-grid h4 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid a { display: block; text-decoration: none; color: var(--muted); margin-bottom: 8px; }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { margin: 0 0 8px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-strong); margin-top: 40px; padding-top: 20px; font-size: 12px; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0; z-index: 50;
  background: var(--text); color: #fff; padding: 14px 20px; border-radius: var(--radius); font-size: 14px;
  transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { gap: 18px; }
}
@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto 1fr; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 8px; }
  .nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; gap: 22px; }
  .hero, .pdp, .builder, .cart { grid-template-columns: 1fr; gap: 32px; }
  .hero-stage { height: 440px; order: -1; }
  .pdp-stage, .b-stage, .summary { position: static; }
  .stage-3d, .b-stage { height: 440px; }
  .how { grid-template-columns: 1fr; gap: 24px; }
  .picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-build { display: none; }
  .hero-stage, .stage-3d, .b-stage { height: 360px; }
  .viewer-ui .hint { display: none; }
  .grid, .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item .qty, .cart-item .ci-total, .cart-item .link { grid-column: 2; justify-self: start; }
  .checkout .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .buy { flex-wrap: wrap; }
}

/* combo weight */
.combo-weight { display: flex; flex-direction: column; }
.combo-weight strong { font-size: 16px !important; font-weight: 500; }
.combo-weight small { font-size: 11px; color: var(--muted); max-width: 22ch; line-height: 1.35; }

/* checkout */
.co { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
.co-form h1 { margin-bottom: 8px; }
.co-intro { margin: 0 0 28px; max-width: 56ch; }
.co-step { border-top: 1px solid var(--line); padding: 24px 0 8px; display: grid; gap: 14px; }
.co-step h2 { font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.co-step h2 > span:first-child { width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: #fff; display: grid; place-items: center; font-size: 11px; letter-spacing: 0; }
.co-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.co-form input:not([type=radio]), .co-form textarea { width: 100%; }
.co-form textarea { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 12px; font: 14px var(--font); resize: vertical; }
.co-form input:focus, .co-form textarea:focus { outline: none; border-color: var(--text); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
#address { display: grid; gap: 14px; }
#address[hidden] { display: none; }
.opt-tag { font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.co-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-choice label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px; cursor: pointer; color: var(--text); }
.co-choice label:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.co-choice input { margin-top: 3px; accent-color: var(--text); }
.co-choice span { display: grid; gap: 2px; }
.co-choice strong { font-weight: 500; font-size: 14px; }
.co-choice small { color: var(--muted); font-size: 12px; }
.co-error { background: #fbeeec; color: var(--sale); border-left: 2px solid var(--sale); padding: 10px 14px; font-size: 14px; margin: 18px 0 0; }
.co-form > .btn { margin-top: 24px; }
.co-fine { margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.co-summary { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; position: sticky; top: 92px; }
.co-summary h2 { font-size: 22px; margin-bottom: 18px; }
.co-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; }
.co-img { position: relative; width: 64px; height: 64px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; }
.co-img img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.co-img span { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--muted); color: #fff; font-size: 11px; display: grid; place-items: center; }
.co-name p { margin: 0; font-size: 14px; line-height: 1.35; }
.co-name .muted { font-size: 12px; }
.co-price { font-size: 14px; font-variant-numeric: tabular-nums; }
.co-totals { border-top: 1px solid var(--line-strong); margin-top: 12px; padding-top: 14px; display: grid; gap: 8px; font-size: 14px; }
.co-totals > div { display: flex; justify-content: space-between; }
.co-total { font-size: 18px; font-weight: 500; padding-top: 6px; }
.co-total small { font-size: 11px; color: var(--muted); font-weight: 400; }
.co-done { max-width: 640px; margin: 24px auto; display: grid; gap: 16px; }
.co-done .lead { max-width: none; }
.co-done-summary { position: static; }
.co-done .btn { justify-self: start; }
@media (max-width: 960px) {
  .co { grid-template-columns: 1fr; gap: 32px; }
  .co-summary { position: static; order: -1; }
}
@media (max-width: 640px) {
  .row2, .row3, .co-choice { grid-template-columns: 1fr; }
}

/* owner login & orders */
.owner-link { color: var(--muted); }
.login { max-width: 400px; margin: 48px auto; }
.login form { display: grid; gap: 16px; margin-top: 24px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.admin-head h1 { margin: 0; }
.admin-actions { display: flex; gap: 8px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
.admin-stats div { background: var(--bg-soft); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; }
.admin-stats span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.admin-stats strong { font-size: 24px; font-weight: 500; }
.orders { display: grid; gap: 14px; margin-top: 16px; }
.order { border: 1px solid var(--line); border-radius: var(--radius); }
.order header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.order header select { height: 36px; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 24px; padding: 18px; }
.order-grid p { margin: 0 0 6px; font-size: 14px; }
.order-grid ul { margin: 0; padding-left: 18px; font-size: 14px; }
.order-grid a { text-underline-offset: 3px; }
.order-total { font-weight: 600; margin-top: 8px !important; }
.order footer { padding: 0 18px 14px; }
@media (max-width: 760px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .order-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* owner: products */
.admin-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.admin-tabs a { text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 10px 0; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-tabs a.on { color: var(--text); border-bottom-color: var(--text); }
.admin-section { margin: 12px 0 40px; }
.admin-section h2 { font-size: 22px; }
.admin-section h2 .muted { font-family: var(--font); font-size: 14px; }
.admin-search { width: 100%; max-width: 420px; margin: 8px 0 12px; }
.prow { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prow-img { width: 56px; height: 56px; background: var(--bg-soft); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.prow-img img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.prow-name { display: grid; gap: 2px; min-width: 0; }
.prow-name a { text-decoration: none; font-weight: 500; font-size: 14px; }
.prow-name .muted { font-size: 12px; }
.prow-state { font-size: 12px; color: var(--ok); }
.prow.is-hidden .prow-state { color: var(--muted); }
.prow.is-hidden .prow-img, .prow.is-hidden .prow-name { opacity: .55; }
.prow-actions { display: flex; gap: 8px; align-items: center; }
.back-link { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 12px; text-underline-offset: 3px; }
.pform { max-width: 760px; }
.pform select { width: 100%; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.photo { position: relative; aspect-ratio: 1; background: var(--bg-soft); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.photo img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.photo-main { position: absolute; left: 6px; bottom: 6px; background: var(--text); color: #fff; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; }
.photo .link { position: absolute; left: 6px; bottom: 6px; font-size: 11px; background: rgba(255,255,255,.9); padding: 2px 6px; }
.photo-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
.upload-btn { justify-self: start; cursor: pointer; }
.vtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.vtable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.vtable td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.vtable input[type=number] { width: 110px; height: 36px; }
.no-photo { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.pick-img { position: relative; }
@media (max-width: 640px) {
  .prow { grid-template-columns: 48px 1fr; }
  .prow-state, .prow-actions, .prow > .btn { grid-column: 2; justify-self: start; }
}

.co-form label.check { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 14px; }

/* owner login link stays visible on phones (Build a combo is hidden there to save space) */
@media (max-width: 640px) {
  .owner-link.nav-build { display: inline-block; font-size: 12px; letter-spacing: .06em; }
  .header-actions { gap: 12px; }
}
