/* SƯƠNG - built on the measured systems of whosestudio.vn and gymshark.com:
   white page, one UI sans at 14px, a heavy condensed uppercase face for headings only, product photos on white
   at their own 2:3 ratio, black buttons, light-grey size squares, hairlines, generous product grids. */
:root {
  --bg: #fff; --ink: #0D1012; --ink-2: #4B5563; --ink-3: #6B7280; --grey: #F4F5F6; --grey-2: #E9EBEE; --line: #E5E7EB;
  --sale: #D21F3C; --ok: #1F7A4D;
  --ui: 'Inter', system-ui, sans-serif;
  --display: 'Archivo', 'Inter', sans-serif;
  --t-xs: 12px; --t-sm: 13px; --t-md: 14px; --t-lg: 16px; --t-xl: 22px;
  --t-h2: clamp(28px, 3.2vw, 40px); --t-h1: clamp(36px, 4.4vw, 56px); --t-hero: clamp(44px, 6.4vw, 96px);
  --pad: 40px; --head: 76px; --bar: 34px; --r: 6px; --ctl: 48px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
body { background: var(--bg); color: var(--ink); font: 400 var(--t-md)/1.5 var(--ui); -webkit-font-smoothing: antialiased }
body.lock { overflow: hidden }
a { color: inherit; text-decoration: none }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0 }
button { cursor: pointer }
img { display: block; max-width: 100%; height: auto }
ul, ol { list-style: none }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px }

/* type */
.h1, .h2, .hero h1 { font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: -.01em; line-height: 1 }
.h1 { font-size: var(--t-h1) }
.h2 { font-size: var(--t-h2) }
.muted { color: var(--ink-3) }
.ulink { text-decoration: underline; text-underline-offset: 3px; font-size: var(--t-sm) }
.ulink:hover { color: var(--ink-3) }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--ctl); padding: 0 24px; border-radius: var(--r); font: 600 var(--t-md)/1 var(--ui); text-transform: uppercase; letter-spacing: .02em; transition: background .2s, color .2s, border-color .2s, opacity .2s; white-space: nowrap }
.btn.dark { background: var(--ink); color: #fff }
.btn.dark:hover { background: #2B2F33 }
.btn.light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line) }
.btn.light:hover { background: var(--grey) }
.btn.line { box-shadow: inset 0 0 0 1px var(--ink) }
.btn.line:hover { background: var(--ink); color: #fff }
.btn.full { width: 100% }
.btn[disabled] { opacity: .4; pointer-events: none }
.ib { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; position: relative }
.ib:hover { background: var(--grey) }
.count { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: #fff; font: 600 10px/17px var(--ui); text-align: center }
.count:empty { display: none }

/* header */
.bar { height: var(--bar); display: grid; place-items: center; background: var(--grey); font-size: var(--t-xs); overflow: hidden; white-space: nowrap; padding: 0 16px }
.bar a { text-decoration: underline; text-underline-offset: 2px }
.head { position: sticky; top: 0; z-index: 40; height: var(--head); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); background: #fff; transition: box-shadow .2s }
.head.scrolled { box-shadow: 0 1px 0 var(--line) }
.nav { display: flex; gap: 28px }
.nav a { font-size: var(--t-md); padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap }
.nav a:hover, .nav a.on { border-color: var(--ink) }
.logo { font: 800 28px/1 var(--display); font-stretch: 75%; letter-spacing: .06em }
.tools { display: flex; justify-content: flex-end; align-items: center; gap: 6px }
.search-box { display: flex; align-items: center; gap: 8px; width: 240px; height: 44px; padding: 0 14px; background: var(--grey); border-radius: var(--r); color: var(--ink-3); margin-right: 8px; cursor: text }
.menu-toggle { display: none }

/* hero: the copy in its own tile beside two looks, so nothing is laid over a product */
.hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 var(--pad) }
.hero > a { display: block }
.hero figure { aspect-ratio: 2 / 3; overflow: hidden; background: #fff }
.hero img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.2s var(--ease) }
.hero > a:hover img { transform: scale(1.03) }
.hero-copy { aspect-ratio: 2 / 3; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; background: var(--grey) }
.hero-copy .kicker { font-size: var(--t-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px }
.hero h1 { font-size: var(--t-hero); line-height: .9 }
.hero-copy > p:not(.kicker) { margin: 16px 0 24px; font-size: var(--t-lg); color: var(--ink-2); max-width: 30ch }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap }

/* sections */
.section { padding: 64px var(--pad) 0 }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px }
.sec-head > div { display: flex; align-items: baseline; gap: 16px }
.arrows { display: flex; gap: 6px }
.arrows button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50% }
.arrows button:hover { background: var(--grey) }
.arrows button[disabled] { opacity: .25; pointer-events: none }

/* product card */
.card { position: relative; min-width: 0 }
.card-top { position: relative }
.card-media { position: relative; display: block; aspect-ratio: 2 / 3; background: #fff; overflow: hidden }
button.card-media { width: 100%; cursor: pointer }   /* a saved try-on (thử đồ page) opens on click */
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s }
.card-media .alt { opacity: 0 }
.card:hover .card-media .alt { opacity: 1 }
.card:hover .card-media .front.has-alt { opacity: 0 }
.tag, .rank { position: absolute; top: 10px; left: 10px; z-index: 2; background: #fff; border-radius: 3px; box-shadow: 0 0 0 1px var(--line) }
.tag { padding: 3px 7px; font: 600 11px/1.3 var(--ui) }
.rank { width: 26px; height: 26px; display: grid; place-items: center; font: 700 12px/1 var(--ui) }
.fav { position: absolute; top: 6px; right: 6px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .85) }
.fav.on .ic { fill: var(--ink) }
.quick { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; padding: 10px; background: rgba(255, 255, 255, .96); box-shadow: 0 2px 12px rgba(0, 0, 0, .08); border-radius: var(--r); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease); pointer-events: none }
.card:hover .quick, .card:focus-within .quick { opacity: 1; transform: none; pointer-events: auto }
.quick p { font-size: var(--t-xs); color: var(--ink-3); margin-bottom: 6px }
.quick .sizes { gap: 4px; flex-wrap: nowrap }
.quick .size { flex: 1; min-width: 0; height: 32px; padding: 0 }
.card-body { padding-top: 10px; display: grid; gap: 2px }
.card-body h3 { font: 500 var(--t-md)/1.35 var(--ui) }
.card-body .meta { font-size: var(--t-sm); color: var(--ink-3); display: flex; gap: 6px; align-items: center }
.card-body .price { font-size: var(--t-md); margin-top: 4px }

/* carousels and grids */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 8px) / 5); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth }
.rail::-webkit-scrollbar { display: none }
.rail > * { scroll-snap-align: start }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 8px }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px }
.cat { display: block }
.cat figure { aspect-ratio: 2 / 3; overflow: hidden; background: #fff }
.cat img { width: 100%; height: 100%; object-fit: contain; transition: transform 1s var(--ease) }
.cat:hover img { transform: scale(1.04) }
.cat span { display: flex; justify-content: space-between; padding-top: 10px; font-size: var(--t-md); font-weight: 500 }
.cat span i { font-style: normal; color: var(--ink-3); font-weight: 400 }

/* try-on feature */
.feature { margin: 64px var(--pad) 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--grey); border-radius: 8px; overflow: hidden }
.feature-copy { padding: 56px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px }
.feature-copy > p { color: var(--ink-2); max-width: 46ch }
.feature-copy ol { display: grid; gap: 12px; counter-reset: s; margin: 6px 0 8px }
.feature-copy li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; align-items: start; color: var(--ink-2) }
.feature-copy li::before { content: counter(s); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font: 600 11px/1 var(--ui) }
.feature-media { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; align-content: center }
.feature-media figure { position: relative; aspect-ratio: 2 / 3; background: #fff; border-radius: 4px; overflow: hidden }
.feature-media img { width: 100%; height: 100%; object-fit: contain }
.feature-media figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; background: #fff; font-size: var(--t-xs); border-radius: 3px; box-shadow: 0 0 0 1px var(--line) }

/* listing */
.plp-head { padding: 28px var(--pad) 8px }
.crumb { font-size: var(--t-xs); color: var(--ink-3); margin-bottom: 10px }
.crumb a:hover { color: var(--ink) }
.count-label { font-size: var(--t-xs); color: var(--ink-3); margin-top: 8px }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px var(--pad) 0 }
.chip { height: 34px; padding: 0 16px; background: var(--grey); border-radius: 17px; font-size: var(--t-md); white-space: nowrap; transition: background .2s, color .2s; display: inline-flex; align-items: center; gap: 6px }
.chip:hover { background: var(--grey-2) }
.chip.on { background: var(--ink); color: #fff }
.plp { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 24px var(--pad) 0 }
.side { position: sticky; top: calc(var(--head) + 16px); align-self: start }
.side h2 { display: flex; justify-content: space-between; align-items: baseline; font: 700 var(--t-lg)/1 var(--ui); text-transform: uppercase; padding-bottom: 16px }
.side h2 button { font: 400 var(--t-xs)/1 var(--ui); text-transform: none; text-decoration: underline }
.side details { border-top: 1px solid var(--line) }
.side summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 500; cursor: pointer }
.side summary::-webkit-details-marker { display: none }
.side summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); transition: transform .2s }
.side details[open] summary::after { transform: rotate(-135deg) }
.opts { display: grid; gap: 10px; padding: 0 0 18px }
.opt { display: flex; align-items: center; gap: 10px; color: var(--ink-2); cursor: pointer }
.opt input { width: 16px; height: 16px; accent-color: var(--ink) }
.opt .n { margin-left: auto; color: var(--ink-3); font-size: var(--t-xs) }
.sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; display: inline-block }
.size-opts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 18px }
.empty { padding: 80px 0; text-align: center; color: var(--ink-3) }
.filter-open { display: none }
.side-close { display: none }
.side-foot { display: none }

/* product page */
.pdp { display: grid; grid-template-columns: 72px minmax(0, 1fr) 420px; gap: 24px; padding: 24px var(--pad) 0; align-items: start }
.thumbs { position: sticky; top: calc(var(--head) + 16px); display: grid; gap: 8px }
.thumbs button { aspect-ratio: 2 / 3; box-shadow: 0 0 0 1px var(--line); border-radius: 4px; overflow: hidden; background: #fff }
.thumbs button.on { box-shadow: 0 0 0 2px var(--ink) }
.thumbs img { width: 100%; height: 100%; object-fit: contain }
.gallery { display: grid; gap: 8px; justify-items: center }
.gallery figure { aspect-ratio: 2 / 3; background: #fff; height: calc(100vh - var(--head) - 48px); max-width: 100% }
.gallery img { width: 100%; height: 100%; object-fit: contain }
.info { position: sticky; top: calc(var(--head) + 16px); display: grid; gap: 22px }
.info h1 { font: 500 var(--t-xl)/1.3 var(--ui); letter-spacing: -.2px }
.info .price { font: 500 18px/1 var(--ui); margin-top: 10px }
.row { display: flex; justify-content: space-between; align-items: baseline }
.label { font-size: var(--t-sm); color: var(--ink-3) }
.label b { color: var(--ink); font-weight: 500; margin-left: 4px }
.sizes { display: flex; flex-wrap: wrap; gap: 8px }
.size { min-width: 48px; height: 44px; padding: 0 12px; background: var(--grey); border: 1px solid transparent; border-radius: 4px; font-size: var(--t-md); transition: border-color .15s, background .15s }
.size:hover { border-color: var(--ink) }
.size.on { background: var(--ink); color: #fff }
.buy { display: grid; grid-template-columns: 112px 1fr; gap: 8px }
.qty { display: flex; align-items: center; justify-content: space-between; height: var(--ctl); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); padding: 0 6px }
.qty button { width: 32px; height: 32px; font-size: 18px; border-radius: 4px }
.qty button:hover { background: var(--grey) }
.try-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: var(--ctl); box-shadow: inset 0 0 0 1px var(--ink); border-radius: var(--r); font: 600 var(--t-md)/1 var(--ui); text-transform: uppercase; letter-spacing: .02em; transition: background .2s, color .2s }
.try-btn:hover { background: var(--ink); color: #fff }
.perks { display: grid; gap: 10px; padding: 16px; background: var(--grey); border-radius: var(--r); font-size: var(--t-sm); color: var(--ink-2) }
.perks p { display: flex; gap: 10px; align-items: center }
.acc details { border-top: 1px solid var(--line) }
.acc details:last-child { border-bottom: 1px solid var(--line) }
.acc summary { list-style: none; display: flex; justify-content: space-between; padding: 16px 0; font-weight: 500; cursor: pointer }
.acc summary::-webkit-details-marker { display: none }
.acc summary::after { content: "+"; font-size: 18px; line-height: 1 }
.acc details[open] summary::after { content: "−" }
.acc details > div { padding-bottom: 16px; color: var(--ink-2) }

/* drawers */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .4); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s }
.scrim.on { opacity: 1; visibility: visible }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(440px, 100vw); display: flex; flex-direction: column; background: #fff; transform: translateX(100%); transition: transform .4s var(--ease) }
.drawer.on { transform: none }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line) }
.drawer-head h2 { font: 700 var(--t-lg)/1 var(--ui); text-transform: uppercase }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px }
.drawer-foot { padding: 16px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px }
.ship { font-size: var(--t-sm) }
.ship i { display: block; height: 4px; margin-top: 8px; background: var(--grey-2); border-radius: 2px; overflow: hidden }
.ship i b { display: block; height: 100%; background: var(--ok); transition: width .5s var(--ease) }
.li { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line) }
.li .thumb { aspect-ratio: 2 / 3; background: #fff; box-shadow: 0 0 0 1px var(--line); border-radius: 4px; overflow: hidden }
.li .thumb img { width: 100%; height: 100%; object-fit: contain }
.li h4 { font: 500 var(--t-md)/1.35 var(--ui) }
.li .meta { font-size: var(--t-sm); color: var(--ink-3) }
.li .qty { height: 34px; width: 100px; margin-top: 10px }
.li .qty button { width: 26px; height: 26px; font-size: 16px }
.li .rm { font-size: var(--t-xs); text-decoration: underline; color: var(--ink-3); align-self: end }
.total { display: flex; justify-content: space-between; font: 600 var(--t-lg)/1 var(--ui) }

.search { position: fixed; inset: 0 0 auto; z-index: 80; background: #fff; padding: 20px var(--pad) 32px; transform: translateY(-101%); transition: transform .4s var(--ease); max-height: 100vh; overflow-y: auto }
.search.on { transform: none }
.search-row { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 6px 0 16px; background: var(--grey); border-radius: var(--r) }
.search input { flex: 1; font-size: var(--t-lg); outline: none }
.search .grid { margin-top: 24px; grid-template-columns: repeat(6, 1fr) }
.search .label-row { grid-column: 1 / -1; font-size: var(--t-sm); color: var(--ink-3) }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, 150%); visibility: hidden; padding: 12px 20px; background: var(--ink); color: #fff; border-radius: var(--r); font-size: var(--t-md); transition: transform .3s var(--ease), visibility .3s; white-space: nowrap }
.toast.on { transform: translate(-50%, 0); visibility: visible }

/* try-on */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; visibility: hidden }
.modal.on { visibility: visible }
.modal .scrim { z-index: 0 }
.modal.on .scrim { opacity: 1; visibility: visible }
.sheet { position: relative; z-index: 1; width: min(1000px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) 400px; background: #fff; border-radius: 10px; opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .3s var(--ease) }
.modal.on .sheet { opacity: 1; transform: none }
.sheet-close { position: absolute; top: 10px; right: 10px; z-index: 5; background: #fff }
.stage { position: relative; aspect-ratio: 2 / 3; max-height: calc(100svh - 32px); background: #fff; border-radius: 10px 0 0 10px; overflow: hidden; border-right: 1px solid var(--line) }
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff }
.stage .after { clip-path: inset(0 0 0 var(--cut, 50%)) }
.stage .hint { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center; color: var(--ink-3); padding: 24px; background: var(--grey) }
.cut { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; margin-left: -1px; background: var(--ink); cursor: ew-resize; touch-action: none; z-index: 3 }
.cut::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; display: grid; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ink); color: #fff; font: 600 13px/1 var(--ui); letter-spacing: 2px }
.badge { position: absolute; top: 12px; z-index: 2; padding: 3px 8px; background: #fff; font: 600 11px/1.3 var(--ui); text-transform: uppercase; border-radius: 3px; box-shadow: 0 0 0 1px var(--line) }
.wait { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; gap: 12px; text-align: center; padding: 24px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(4px) }
.wait[hidden] { display: none }
.spinner { width: 34px; height: 34px; margin: 0 auto; border: 3px solid var(--grey-2); border-top-color: var(--ink); border-radius: 50%; animation: spin .9s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }
.side-panel { padding: 28px 24px 24px; display: grid; gap: 20px; align-content: start }
.side-panel h2 { font: 700 var(--t-xl)/1.2 var(--ui) }
.step { display: grid; gap: 10px }
.step > p:first-child { font-size: var(--t-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .02em }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px }
.people button, .people label { aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line) }
.people img { width: 100%; height: 100%; object-fit: contain }
.people .on { box-shadow: 0 0 0 2px var(--ink) }
.people label { display: grid; place-content: center; justify-items: center; gap: 4px; font-size: 11px; color: var(--ink-2); cursor: pointer; text-align: center; background: var(--grey); padding: 4px }
.garm { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 8px; box-shadow: inset 0 0 0 1px var(--line); border-radius: 6px }
.garm img { width: 56px; height: auto; aspect-ratio: 2 / 3; object-fit: contain; background: #fff }
.garm select { width: 100%; height: 36px; margin-top: 6px; padding: 0 8px; box-shadow: inset 0 0 0 1px var(--line); border-radius: 4px; font-size: var(--t-sm) }
.status { font-size: var(--t-sm); color: var(--ink-2) }
.status:empty { display: none }
.status.err { color: var(--sale) }
.fine { font-size: var(--t-xs); color: var(--ink-3); line-height: 1.6 }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.looks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px }
.look { position: relative }
.look > button:first-child { display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line) }
.look.on > button:first-child { box-shadow: 0 0 0 2px var(--ink) }
.look img { width: 100%; height: 100%; object-fit: cover }
.look-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); opacity: 0; transition: opacity .15s }
.look-x .ic { width: 12px; height: 12px }
.look:hover .look-x, .look-x:focus-visible { opacity: 1 }
@media (hover: none) { .look-x { opacity: 1 } }

/* checkout */
.co { display: grid; grid-template-columns: 1fr 440px; gap: 48px; padding: 32px var(--pad) 0 }
.co form { display: grid; gap: 32px }
.co fieldset { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.co legend { grid-column: 1 / -1; font: 700 var(--t-lg)/1 var(--ui); text-transform: uppercase; margin-bottom: 12px }
.field { display: grid; gap: 6px }
.field.full { grid-column: 1 / -1 }
.field label { font-size: var(--t-sm); color: var(--ink-2) }
.field input, .field select, .field textarea { height: 48px; padding: 0 14px; box-shadow: inset 0 0 0 1px #D1D5DB; border-radius: var(--r); font-size: var(--t-md) }
.field textarea { height: 88px; padding: 12px 14px }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink) }
.radio { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 16px; box-shadow: inset 0 0 0 1px #D1D5DB; border-radius: var(--r); cursor: pointer }
.radio:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink) }
.radio input { accent-color: var(--ink); width: 16px; height: 16px }
.radio span { flex: 1 }
.radio small { color: var(--ink-3) }
.summary { position: sticky; top: calc(var(--head) + 16px); align-self: start; padding: 24px; background: var(--grey); border-radius: 8px }
.summary h2 { font: 700 var(--t-lg)/1 var(--ui); text-transform: uppercase; margin-bottom: 8px }
.summary .li { grid-template-columns: 64px 1fr auto; border-color: var(--grey-2) }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 0; margin-top: 16px }
.summary dt { color: var(--ink-2) }
.summary dd { text-align: right }
.summary .grand { font: 600 var(--t-lg)/1 var(--ui); padding-top: 14px; border-top: 1px solid var(--grey-2) }
.note { font-size: var(--t-sm); color: var(--ink-3) }
.done { max-width: 560px; margin: 0 auto; padding: 96px var(--pad); text-align: center; display: grid; gap: 16px; justify-items: center }
.page { max-width: 760px; padding: 40px var(--pad) 0 }
.page table { width: 100%; border-collapse: collapse; margin-top: 16px }
.page th, .page td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line) }
.page th { font-weight: 600 }
.page p { color: var(--ink-2); margin-top: 12px }

/* footer */
.foot { margin-top: 96px; padding: 56px var(--pad) 28px; background: var(--grey); display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px }
.foot h4 { font: 700 var(--t-md)/1 var(--ui); text-transform: uppercase; margin-bottom: 16px }
.foot li { line-height: 2.1; color: var(--ink-2) }
.foot li a:hover { color: var(--ink) }
.news { display: flex; margin-top: 16px; height: 48px; max-width: 380px; background: #fff; border-radius: var(--r); overflow: hidden }
.news input { flex: 1; min-width: 0; padding: 0 14px; outline: none }
.news button { padding: 0 18px; background: var(--ink); color: #fff; font-weight: 600 }
.foot-base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--grey-2); font-size: var(--t-xs); color: var(--ink-3) }
.foot-base a { text-decoration: underline }

/* tablet */
@media (max-width: 1180px) {
  .nav { gap: 18px }
  .rail { grid-auto-columns: calc((100% - 3 * 8px) / 4) }
  .grid { grid-template-columns: repeat(3, 1fr) }
  .pdp { grid-template-columns: 64px minmax(0, 1fr) 360px }
  .search-box { width: 40px; height: 40px; padding: 0; justify-content: center; margin: 0; background: none; color: var(--ink); border-radius: 50% }
  .search-box span { display: none }
}
/* phone */
@media (max-width: 860px) {
  :root { --pad: 16px; --head: 60px }
  .nav { display: none }
  .menu-toggle { display: inline-grid }
  .head { grid-template-columns: auto 1fr auto }
  .logo { justify-self: center; font-size: 24px }
  .nav.open { display: flex; position: fixed; top: calc(var(--head) + var(--bar)); left: 0; right: 0; bottom: 0; flex-direction: column; gap: 0; padding: 8px var(--pad); background: #fff; z-index: 39 }
  .nav.open a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: var(--t-lg) }
  .hero { grid-template-columns: 1fr 1fr; padding: 0 }
  .hero-copy { grid-column: 1 / -1; aspect-ratio: auto; padding: 28px var(--pad) }
  .hero h1 { font-size: 52px }
  .section { padding-top: 48px }
  .rail { grid-auto-columns: 44% }
  .grid { grid-template-columns: 1fr 1fr; gap: 24px 8px }
  .cats { grid-template-columns: 1fr 1fr }
  .feature { grid-template-columns: 1fr; margin: 48px var(--pad) 0 }
  .feature-copy { padding: 28px 20px }
  .plp { grid-template-columns: 1fr; padding-top: 16px }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 80; width: min(360px, 88vw); padding: 20px; background: #fff; overflow-y: auto; transform: translateX(-100%); transition: transform .4s var(--ease) }
  .side { align-self: stretch; height: 100dvh; padding-bottom: 96px }
  .side.on { transform: none }
  .side-foot { display: block; position: fixed; left: 0; bottom: 0; width: min(360px, 88vw); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line) }
  .side-close { display: inline-grid; float: right; margin: -8px -8px 0 0 }
  .filter-open { display: inline-flex }
  .chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none }
  .pdp { grid-template-columns: 1fr; padding: 0; gap: 16px }
  .thumbs { display: none }
  .gallery { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; scrollbar-width: none; justify-items: stretch }
  .gallery figure { scroll-snap-align: start; height: auto; width: 100% }
  .info { position: static; padding: 0 var(--pad) }
  .sheet { display: block }
  .stage { aspect-ratio: auto; height: 52svh; max-height: none; border-radius: 10px 10px 0 0; border-right: 0; border-bottom: 1px solid var(--line) }
  .bar .long { display: none }
  .co { grid-template-columns: 1fr; gap: 24px }
  .co fieldset { grid-template-columns: 1fr }
  .summary { position: static }
  .foot { grid-template-columns: 1fr 1fr }
  .foot > div:first-child { grid-column: 1 / -1 }
  .search .grid { grid-template-columns: repeat(2, 1fr) }
  .quick { display: none }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important } }
