/* ==========================================================================
   BROS Store — 前台樣式
   顏色、字體、圓角全部來自後台「主題外觀」→ 注入 :root 變數
   ========================================================================== */
:root {
  --bg: #f3f1ec; --surface: #fff; --text: #111; --muted: #6b6862; --border: #d9d5cc;
  --primary: #111; --primary-text: #fff; --accent: #ff4f00; --sale: #e0301e;
  --announce-bg: #111; --announce-text: #fff; --radius: 0px;
  --font-heading: 'Archivo Black', 'Noto Sans TC', system-ui, sans-serif;
  --font-body: 'Noto Sans TC', system-ui, sans-serif;
  --heading-case: uppercase; --card-ratio: 3/4;
  --wrap: 1440px; --gutter: clamp(16px, 3vw, 40px);
  --header-h: 64px; --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 18px 50px -20px rgb(0 0 0 / .35);
  --r-sm: calc(var(--radius) * .6); --r-pill: max(var(--radius), 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus, main:focus-visible { outline: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--primary); color: var(--primary-text); padding: 8px 14px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.display { font-family: var(--font-heading); text-transform: var(--heading-case); letter-spacing: .01em; font-weight: 900; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 28px; height: 28px; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px;
  background: var(--primary); color: var(--primary-text); border: 1.5px solid var(--primary); border-radius: var(--r-pill);
  font-weight: 700; letter-spacing: .06em; font-size: 14px; transition: transform .15s var(--ease), background .2s, color .2s, opacity .2s;
  white-space: nowrap; text-transform: uppercase;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn.ghost:hover { background: var(--text); color: var(--bg); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn.loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--primary-text); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.ghost.loading::after { border-color: var(--text); border-right-color: transparent; }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 700; }
.field small { color: var(--muted); font-size: 12px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 0 14px; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); transition: border-color .2s; font-size: 16px;
}
textarea.input { padding: 12px 14px; min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--text); outline: 0; }
.input.invalid, .invalid .input { border-color: var(--sale); }
.err { color: var(--sale); font-size: 12.5px; font-weight: 500; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }

/* ---------- announcement ---------- */
.announce { background: var(--announce-bg); color: var(--announce-text); font-size: 12.5px; letter-spacing: .06em; height: 36px; overflow: hidden; position: relative; }
.announce .track { display: flex; flex-direction: column; transition: transform .6s var(--ease); }
.announce a, .announce span { height: 36px; display: flex; align-items: center; justify-content: center; padding: 0 44px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce .x { position: absolute; right: 8px; top: 6px; width: 24px; height: 24px; display: grid; place-items: center; opacity: .7; color: inherit; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); transition: transform .35s var(--ease), background .2s; }
.header.hide { transform: translateY(-100%); }
.header .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.logo { font-family: var(--font-heading); font-size: 26px; letter-spacing: .12em; text-transform: uppercase; line-height: 1; display: flex; align-items: center; }
.logo img { max-height: 30px; width: auto; }
@media (max-width: 960px) { .logo img { max-height: 22px; } }
.nav { display: flex; gap: 26px; align-items: center; height: 100%; }
.nav > a, .nav > .has-mega > a { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; height: 100%; display: flex; align-items: center; position: relative; }
.nav > a::after, .nav > .has-mega > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav > a:hover::after, .nav > .has-mega:hover > a::after, .nav a.active::after { transform: scaleX(1); }
.nav .sale { color: var(--sale); }
.has-mega { height: 100%; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 30px 40px -30px rgb(0 0 0 / .25); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .22s var(--ease); }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega .inner { display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr; gap: 32px; padding-top: 32px; padding-bottom: 36px; }
.mega h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.mega li a { display: block; padding: 5px 0; color: var(--muted); font-size: 14px; }
.mega li a:hover { color: var(--text); }
.mega .promo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 16/10; }
.mega .promo img { width: 100%; height: 100%; object-fit: cover; }
.mega .promo span { position: absolute; left: 16px; bottom: 14px; color: #fff; font-family: var(--font-heading); text-transform: var(--heading-case); font-size: 20px; text-shadow: 0 2px 16px rgb(0 0 0 / .4); }
.tools { display: flex; justify-content: flex-end; gap: 4px; align-items: center; }
.tool { width: 42px; height: 42px; display: grid; place-items: center; position: relative; border-radius: 50%; transition: background .2s; }
.tool:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.tool .dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; transform: scale(0); transition: transform .3s var(--ease); }
.tool .dot.on { transform: scale(1); }
.tool .dot.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }
.menu-btn { display: none; }
@media (max-width: 960px) {
  :root { --header-h: 56px; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .logo { font-size: 22px; }
  .tools .hide-m { display: none; }
}

/* ---------- drawers / overlays ---------- */
.scrim { position: fixed; inset: 0; background: rgb(0 0 0 / .45); z-index: 90; opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.scrim.on { opacity: 1; }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(440px, 100vw); background: var(--bg); z-index: 91; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .38s var(--ease); box-shadow: var(--shadow); }
.drawer.left { right: auto; left: 0; transform: translateX(-100%); }
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); min-height: 60px; }
.drawer-head h3 { font-family: var(--font-heading); text-transform: var(--heading-case); font-size: 18px; letter-spacing: .04em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.drawer-foot { border-top: 1px solid var(--border); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); }
.modal { position: fixed; z-index: 92; left: 50%; top: 50%; width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto; background: var(--bg); border-radius: var(--radius); transform: translate(-50%, -46%); opacity: 0; transition: .3s var(--ease); box-shadow: var(--shadow); }
.modal.on { transform: translate(-50%, -50%); opacity: 1; }
.modal .drawer-head { position: sticky; top: 0; background: var(--bg); z-index: 1; }
.modal-body { padding: 20px 24px 28px; }
@media (max-width: 640px) {
  .modal { top: auto; bottom: 0; left: 0; width: 100vw; max-height: 88vh; transform: translateY(100%); border-radius: max(var(--radius), 14px) max(var(--radius), 14px) 0 0; }
  .modal.on { transform: none; }
}
.x-btn { width: 40px; height: 40px; display: grid; place-items: center; margin-right: -10px; }

/* mobile menu */
.mnav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 16px; }
.mnav .sub a { font-weight: 400; font-size: 14.5px; padding: 11px 0 11px 16px; color: var(--muted); }
.mnav details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 16px; cursor: pointer; }
.mnav details summary::-webkit-details-marker { display: none; }
.mnav details[open] summary .icon { transform: rotate(180deg); }

/* search */
.search-panel { position: fixed; left: 0; right: 0; top: 0; z-index: 91; background: var(--bg); transform: translateY(-100%); transition: transform .35s var(--ease); max-height: 90vh; overflow: auto; }
.search-panel.on { transform: none; }
.search-panel form { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--text); padding: 22px 0 12px; }
.search-panel input { flex: 1; border: 0; background: none; font-size: clamp(20px, 3vw, 30px); font-family: var(--font-heading); outline: none; min-width: 0; }
.search-results { padding: 24px 0 36px; }
.search-results .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 13px; background: var(--surface); transition: .2s; white-space: nowrap; }
.chip:hover, .chip.on { border-color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 100; background: var(--text); color: var(--bg); padding: 13px 20px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; transition: transform .35s var(--ease); max-width: calc(100vw - 32px); display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); visibility: hidden; }
.toast.on { transform: translate(-50%, 0); visibility: visible; }
.toast.error { background: var(--sale); color: #fff; }

/* ---------- product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; } }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card .media { position: relative; aspect-ratio: var(--card-ratio); overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .8s var(--ease); }
.card .media .alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .media .alt { opacity: 1; }
  .card:hover .media img:first-child { transform: scale(1.03); }
  .card:hover .quick { transform: none; opacity: 1; }
}
.badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; z-index: 2; }
.badge { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; background: var(--surface); color: var(--text); border-radius: var(--r-sm); line-height: 1.5; }
.badge.sale { background: var(--sale); color: #fff; }
.badge.new { background: var(--text); color: var(--bg); }
.badge.soldout { background: #777; color: #fff; }
.badge.preorder { background: var(--accent); color: #fff; }
.wish { position: absolute; right: 8px; top: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 75%, transparent); backdrop-filter: blur(4px); transition: transform .2s; }
.wish:hover { transform: scale(1.1); }
.wish.on .icon { fill: var(--sale); stroke: var(--sale); }
.quick { position: absolute; left: 8px; right: 8px; bottom: 8px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); padding: 8px; border-radius: var(--r-sm); transform: translateY(8px); opacity: 0; transition: .25s var(--ease); z-index: 2; }
.quick p { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin: 0 0 6px; text-align: center; }
.quick .sizes { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.quick button { min-width: 36px; height: 30px; font-size: 12px; font-weight: 700; border: 1px solid var(--border); background: var(--bg); border-radius: var(--r-sm); padding: 0 6px; }
.quick button:hover { border-color: var(--text); }
.quick button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.card .info { padding-top: 12px; display: grid; gap: 4px; }
.card .name { font-size: 14px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { display: flex; gap: 8px; align-items: baseline; font-weight: 700; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.price .now.sale { color: var(--sale); }
.price s { color: var(--muted); font-weight: 400; font-size: .88em; }
.swatches { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .18); position: relative; flex: none; }
.sw.on::after { content: ""; position: absolute; inset: -4px; border: 1.5px solid var(--text); border-radius: 50%; }
.swatches .more { font-size: 11.5px; color: var(--muted); }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.stars i { font-style: normal; color: var(--text); letter-spacing: 1px; }

/* ---------- sections ---------- */
.section { padding-top: clamp(44px, 7vw, 96px); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { font-family: var(--font-heading); text-transform: var(--heading-case); font-size: clamp(26px, 4.2vw, 52px); letter-spacing: -.005em; line-height: .95; }
.sec-head a { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.sec-head a:hover { color: var(--accent); }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .hscroll { grid-auto-columns: calc((100% - 36px) / 3); } }
@media (max-width: 760px) { .hscroll { grid-auto-columns: 62%; gap: 10px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); } }

/* hero */
.hero { position: relative; height: clamp(460px, 78vh, 820px); overflow: hidden; background: var(--text); }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); display: flex; align-items: flex-end; }
.hero .slide.on { opacity: 1; z-index: 1; }
.hero .slide picture, .hero .slide > img { position: absolute; inset: 0; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero .slide.on img { transform: scale(1); }
.hero .copy { position: relative; z-index: 2; padding-bottom: clamp(48px, 9vh, 96px); width: 100%; }
.hero .copy.center { text-align: center; }
.hero .copy.center .btn { margin: 0 auto; }
.hero h1, .hero h2 { font-family: var(--font-heading); text-transform: var(--heading-case); font-size: clamp(44px, 8.5vw, 128px); line-height: .9; letter-spacing: -.01em; max-width: 11ch; margin-bottom: 18px; }
.hero .copy.center h1, .hero .copy.center h2 { margin-left: auto; margin-right: auto; }
.hero p { font-size: clamp(15px, 1.4vw, 18px); max-width: 36ch; margin-bottom: 26px; opacity: .9; }
.hero .copy > * { opacity: 0; transform: translateY(24px); transition: .8s var(--ease); }
.hero .slide.on .copy > * { opacity: 1; transform: none; }
.hero .slide.on .copy > :nth-child(2) { transition-delay: .12s; }
.hero .slide.on .copy > :nth-child(3) { transition-delay: .24s; }
.hero .dots { position: absolute; z-index: 3; right: var(--gutter); bottom: 28px; display: flex; gap: 8px; }
.hero .dots button { width: 34px; height: 3px; background: rgb(255 255 255 / .4); position: relative; overflow: hidden; }
.hero .dots button.on::after { content: ""; position: absolute; inset: 0; background: #fff; animation: fill 6s linear forwards; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } }
.hero .count { position: absolute; z-index: 3; right: var(--gutter); top: 24px; font: 700 12px/1 var(--font-body); letter-spacing: .2em; color: #fff; mix-blend-mode: difference; }

/* marquee strip */
.strip { background: var(--text); color: var(--bg); overflow: hidden; }
.strip .marq { display: flex; white-space: nowrap; animation: marq 28s linear infinite; }
.strip .marq span { font-family: var(--font-heading); text-transform: var(--heading-case); font-size: clamp(26px, 4vw, 54px); padding: 18px 0; display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; }
.strip .marq span::after { content: "✦"; color: var(--accent); font-size: .6em; }
.strip:hover .marq { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.strip-cta { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px var(--gutter) 22px; flex-wrap: wrap; text-align: center; }
.strip-cta .btn { background: var(--bg); color: var(--text); border-color: var(--bg); }

/* brand story */
.story { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px 56px; align-items: end; padding: clamp(28px, 5vw, 64px) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.story .eyebrow { grid-column: 1 / -1; margin: 0; }
.story h2 { font-family: 'Noto Serif TC', var(--font-heading); font-weight: 900; font-size: clamp(32px, 4.2vw, 62px); line-height: 1.12; text-wrap: balance; letter-spacing: -.01em; }
.story p { font-size: 16px; color: color-mix(in srgb, var(--text) 80%, var(--muted)); max-width: 42ch; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }

/* category tiles */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat-tile { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--surface); border-radius: var(--radius); display: block; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile span { position: absolute; left: 16px; bottom: 14px; right: 16px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-heading); text-transform: var(--heading-case); font-size: clamp(18px, 2.2vw, 28px); color: #fff; text-shadow: 0 2px 20px rgb(0 0 0 / .35); }
.cat-tile::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / .45)); }
.cat-tile span { z-index: 1; }
@media (max-width: 760px) { .cats { grid-template-columns: 1fr 1fr; } }

/* lookbook */
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.look { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.look .img { aspect-ratio: 4/5; position: relative; overflow: hidden; }
.look .img img { width: 100%; height: 100%; object-fit: cover; }
.look .img .tag { position: absolute; left: 14px; top: 14px; background: var(--bg); padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; border-radius: var(--r-sm); }
.look .body { padding: 16px 16px 18px; display: grid; gap: 12px; }
.look h3 { font-family: var(--font-heading); text-transform: var(--heading-case); font-size: 20px; }
.look .items { display: grid; gap: 8px; }
.look .it { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.look .it img { width: 48px; height: 60px; object-fit: cover; border-radius: var(--r-sm); }
@media (max-width: 900px) { .looks { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; } .look { scroll-snap-align: start; } }

/* reviews strip */
.rv-card { background: var(--surface); padding: 22px; border-radius: var(--radius); display: grid; gap: 10px; align-content: start; min-height: 200px; }
.rv-card .q { font-size: 15.5px; line-height: 1.6; }
.rv-card .who { font-size: 12.5px; color: var(--muted); }
.rv-card a { font-size: 12.5px; font-weight: 700; }

/* usp */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.usp > div { display: flex; gap: 14px; align-items: center; padding: 26px 20px; border-left: 1px solid var(--border); }
.usp > div:first-child { border-left: 0; }
.usp b { display: block; font-size: 14px; }
.usp small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) { .usp { grid-template-columns: 1fr 1fr; } .usp > div:nth-child(3) { border-left: 0; } .usp > div:nth-child(n+3) { border-top: 1px solid var(--border); } .usp > div { padding: 18px 12px; } }

/* newsletter */
.news { background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.news h2 { font-family: var(--font-heading); text-transform: var(--heading-case); font-size: clamp(28px, 4vw, 48px); }
.news form { display: flex; gap: 8px; }
.news .input { flex: 1; }
@media (max-width: 760px) { .news { grid-template-columns: 1fr; } .news form { flex-direction: column; } }

/* ---------- footer ---------- */
.footer { margin-top: clamp(60px, 8vw, 110px); background: var(--text); color: var(--bg); padding: 56px 0 calc(30px + env(safe-area-inset-bottom)); }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; opacity: .6; }
.footer li a, .footer li span { display: block; padding: 4px 0; font-size: 14px; opacity: .85; }
.footer li a:hover { opacity: 1; color: var(--accent); }
.footer .big { font-family: var(--font-heading); font-size: clamp(48px, 11vw, 170px); letter-spacing: .02em; line-height: .8; text-transform: uppercase; margin-top: 48px; opacity: .95; overflow: hidden; white-space: nowrap; }
.footer .legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; opacity: .55; margin-top: 24px; border-top: 1px solid rgb(255 255 255 / .12); padding-top: 18px; }
.footer .social { display: flex; gap: 8px; margin-top: 14px; }
.footer .social a { width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / .25); border-radius: 50%; display: grid; place-items: center; }
.footer .social a:hover { background: var(--bg); color: var(--text); }
@media (max-width: 860px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- collection page ---------- */
.crumbs { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 18px 0 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }
.coll-head { padding: 22px 0 18px; display: grid; gap: 12px; }
.coll-head h1 { font-family: var(--font-heading); text-transform: var(--heading-case); font-size: clamp(34px, 6vw, 80px); line-height: .92; }
.coll-head p { color: var(--muted); max-width: 60ch; margin: 0; }
.toolbar { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); margin-bottom: 22px; transition: top .35s var(--ease); }
.header.hide ~ main .toolbar { top: 0; }
.toolbar .l { display: flex; gap: 10px; align-items: center; min-width: 0; }
.toolbar select { border: 0; background: none; font-weight: 700; font-size: 13.5px; padding: 8px 4px; cursor: pointer; }
.coll-body { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 70px); max-height: calc(100vh - var(--header-h) - 90px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.fgroup { border-bottom: 1px solid var(--border); padding: 16px 0; }
.fgroup h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; display: flex; justify-content: space-between; }
.size-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.size-opts button { height: 38px; border: 1.5px solid var(--border); font-size: 12.5px; font-weight: 700; border-radius: var(--r-sm); background: var(--surface); transition: .15s; }
.size-opts button:hover { border-color: var(--text); }
.size-opts button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.color-opts { display: grid; gap: 4px; }
.color-opts button { display: flex; gap: 10px; align-items: center; padding: 5px 0; font-size: 13.5px; text-align: left; }
.color-opts button .sw { width: 20px; height: 20px; }
.color-opts button.on { font-weight: 700; }
.color-opts button.on .sw::after { content: ""; position: absolute; inset: -4px; border: 1.5px solid var(--text); border-radius: 50%; }
.color-opts .n { margin-left: auto; color: var(--muted); font-size: 12px; }
.price-opts { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.price-opts .input { min-height: 40px; font-size: 14px; }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 14px; cursor: pointer; }
.toggle input { appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--border); position: relative; transition: .2s; cursor: pointer; }
.toggle input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s var(--ease); }
.toggle input:checked { background: var(--text); }
.toggle input:checked::after { transform: translateX(16px); }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.active-filters .chip { cursor: pointer; }
.filter-btn { display: none; }
.more-wrap { text-align: center; padding: 42px 0 0; display: grid; gap: 12px; justify-items: center; }
.progress { width: 200px; height: 2px; background: var(--border); position: relative; }
.progress i { position: absolute; inset: 0 auto 0 0; background: var(--text); }
.empty { text-align: center; padding: 70px 20px; display: grid; gap: 14px; justify-items: center; color: var(--muted); }
.empty .display { font-size: 28px; color: var(--text); }
@media (max-width: 960px) {
  .coll-body { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filter-btn { display: inline-flex; }
}

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 64px); padding-top: 18px; align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery .g { position: relative; aspect-ratio: var(--card-ratio); background: var(--surface); overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.gallery .g:first-child { grid-column: 1 / -1; aspect-ratio: 4/4.6; }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; }
.gallery.n2 .g:first-child { grid-column: auto; aspect-ratio: var(--card-ratio); }
.gdots { display: none; }
.buybox { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.buybox h1 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.25; }
.buybox .price { font-size: 22px; }
.buybox .price .off { font-size: 12px; background: var(--sale); color: #fff; padding: 2px 8px; border-radius: var(--r-sm); font-weight: 700; }
.promo-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.promo-tags a { font-size: 12px; font-weight: 700; color: var(--accent); border: 1.5px solid currentColor; padding: 3px 10px; border-radius: 999px; }
.opt-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; margin-bottom: 10px; }
.opt-label b { font-weight: 700; }
.color-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.color-pick button { width: 44px; height: 44px; border-radius: 50%; padding: 4px; border: 1.5px solid transparent; position: relative; }
.color-pick button span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgb(0 0 0 / .15); }
.color-pick button.on { border-color: var(--text); }
.color-pick button.oos span { opacity: .45; }
.color-pick button.oos::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1.5px; background: var(--text); transform: rotate(-45deg); }
.size-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.size-pick button { height: 48px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 700; border-radius: var(--r-sm); position: relative; transition: .15s; font-size: 14px; }
.size-pick button:hover { border-color: var(--text); }
.size-pick button.on { border-color: var(--text); background: var(--text); color: var(--bg); }
.size-pick button.oos { color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--border) 60%, transparent) 6px 7px), var(--surface); }
.size-pick button.low::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.fitbar { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.fitbar .scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.fitbar .scale i { height: 4px; background: var(--border); border-radius: 2px; }
.fitbar .scale i.on { background: var(--text); }
.fitbar .lbl { display: flex; justify-content: space-between; }
.stock-note { font-size: 13px; color: var(--accent); font-weight: 700; display: flex; gap: 6px; align-items: center; min-height: 20px; }
.stock-note.ok { color: #2f7d4f; }
.buy-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--r-pill); height: 48px; background: var(--surface); }
.qty button { width: 40px; height: 100%; display: grid; place-items: center; font-size: 18px; }
.qty button:disabled { opacity: .3; }
.qty input { width: 36px; text-align: center; border: 0; background: none; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm { height: 36px; }
.qty.sm button { width: 32px; }
.qty.sm input { width: 28px; font-size: 13px; }
.wish-btn { width: 48px; height: 48px; border: 1.5px solid var(--border); border-radius: var(--r-pill); display: grid; place-items: center; background: var(--surface); }
.wish-btn.on .icon { fill: var(--sale); stroke: var(--sale); }
.ship-box { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; font-size: 13.5px; }
.ship-box > div { display: flex; gap: 10px; align-items: flex-start; }
.freebar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.freebar i { display: block; height: 100%; background: var(--accent); transition: width .5s var(--ease); }
.acc { border-top: 1px solid var(--border); }
.acc details { border-bottom: 1px solid var(--border); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center; letter-spacing: .02em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform .25s; }
.acc details[open] summary .icon { transform: rotate(45deg); }
.acc .ct { padding: 0 0 18px; font-size: 14px; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.acc .ct ul { list-style: disc; padding-left: 20px; }
.fabric { display: grid; gap: 8px; margin-bottom: 16px; }
.fabric .bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; }
.fabric .bar i:nth-child(1) { background: var(--text); }
.fabric .bar i:nth-child(2) { background: var(--accent); }
.fabric .bar i:nth-child(3) { background: var(--muted); }
.fabric .bar i:nth-child(4) { background: var(--border); }
.fabric .legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.fabric .legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--c); }
.care { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.care div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.care svg { width: 28px; height: 28px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; }
.model { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bg); border-top: 1px solid var(--border); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: none; gap: 12px; align-items: center; transform: translateY(100%); transition: transform .3s var(--ease); }
.sticky-buy.on { transform: none; }
.sticky-buy .t { flex: 1; min-width: 0; font-size: 13px; }
.sticky-buy .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; gap: 20px; padding-top: 0; }
  .pdp > .gwrap { margin: 0 calc(var(--gutter) * -1); position: relative; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .g, .gallery .g:first-child { flex: 0 0 100%; aspect-ratio: var(--card-ratio); scroll-snap-align: start; border-radius: 0; }
  .gdots { display: flex; justify-content: center; gap: 6px; position: absolute; bottom: 12px; left: 0; right: 0; }
  .gdots i { width: 6px; height: 6px; border-radius: 3px; background: rgb(0 0 0 / .25); transition: .3s; }
  .gdots i.on { width: 20px; background: var(--text); }
  .buybox { position: static; }
  .sticky-buy { display: flex; }
}
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgb(10 10 10 / .95); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; }
.lightbox.on { opacity: 1; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; color: #fff; width: 52px; height: 52px; display: grid; place-items: center; }
.lightbox .close { top: 12px; right: 12px; }
.lightbox .prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .cnt { position: absolute; bottom: 20px; color: #fff; font-size: 13px; letter-spacing: .1em; }

/* size chart modal */
.stable { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.stable th, .stable td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--border); }
.stable th { font-size: 12px; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.stable tr.hl td { background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 700; }
.stable td:first-child { font-weight: 700; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 12px 14px; font-weight: 700; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; color: var(--muted); }
.tabs button.on { border-color: var(--text); color: var(--text); }

/* reviews */
.rv-top { display: grid; grid-template-columns: 240px 1fr 1fr; gap: 36px; padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); align-items: center; }
.rv-top .avg { font-family: var(--font-heading); font-size: 64px; line-height: 1; }
.dist { display: grid; gap: 6px; font-size: 12.5px; }
.dist div { display: grid; grid-template-columns: 26px 1fr 36px; gap: 8px; align-items: center; }
.dist .b { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.dist .b i { display: block; height: 100%; background: var(--text); }
.fit-meter { display: grid; gap: 10px; font-size: 13px; }
.fit-meter .track { position: relative; height: 6px; background: var(--border); border-radius: 3px; }
.fit-meter .track i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transform: translate(-50%, -50%); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--text); }
.fit-meter .lbl { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.photo-strip { display: flex; gap: 8px; overflow-x: auto; padding: 20px 0 6px; scrollbar-width: none; }
.photo-strip button { flex: 0 0 88px; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
.rv-list { display: grid; }
.rv { padding: 22px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.rv .meta { font-size: 12.5px; color: var(--muted); display: grid; gap: 3px; align-content: start; }
.rv .meta b { color: var(--text); font-size: 14px; }
.rv .verified { color: #2f7d4f; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.rv .imgs { display: flex; gap: 6px; margin-top: 10px; }
.rv .imgs button { width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; }
.rv .imgs img { width: 100%; height: 100%; object-fit: cover; }
.rv .reply { margin-top: 12px; padding: 12px 14px; background: var(--surface); border-left: 3px solid var(--text); font-size: 13.5px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.rate-input { display: flex; gap: 4px; font-size: 30px; }
.rate-input button { color: var(--border); line-height: 1; }
.rate-input button.on { color: var(--text); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.seg button { padding: 10px 4px; font-size: 13px; border-left: 1px solid var(--border); background: var(--surface); }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--text); color: var(--bg); }
@media (max-width: 860px) {
  .rv-top { grid-template-columns: 1fr; gap: 20px; }
  .rv { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- cart ---------- */
.line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.line .ph { aspect-ratio: 3/4; background: var(--surface); border-radius: var(--r-sm); overflow: hidden; }
.line .ph img { width: 100%; height: 100%; object-fit: cover; }
.line .t { display: grid; gap: 4px; align-content: start; font-size: 14px; }
.line .t b { font-weight: 500; line-height: 1.4; }
.line .v { color: var(--muted); font-size: 12.5px; }
.line .ctl { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 8px; }
.line .rm { font-size: 12px; color: var(--muted); text-decoration: underline; }
.line .notice { font-size: 12px; color: var(--accent); font-weight: 700; }
.free-msg { background: var(--surface); padding: 12px 14px; border-radius: var(--radius); display: grid; gap: 8px; font-size: 13.5px; margin-bottom: 6px; }
.free-msg b { color: var(--accent); }
.hints { display: grid; gap: 6px; margin: 12px 0 4px; }
.hints div { font-size: 12.5px; padding: 8px 12px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: color-mix(in srgb, var(--accent) 70%, var(--text)); border-radius: var(--r-sm); font-weight: 500; display: flex; gap: 8px; align-items: center; }
.addons { margin-top: 18px; }
.addons h4 { font-size: 13px; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.addon { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px; background: var(--surface); border-radius: var(--r-sm); margin-bottom: 6px; font-size: 13px; }
.addon img { width: 52px; height: 64px; object-fit: cover; border-radius: var(--r-sm); }
.addon s { color: var(--muted); font-size: 12px; }
.addon .p { color: var(--sale); font-weight: 700; }
.sum { display: grid; gap: 8px; font-size: 14px; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; }
.sum .neg { color: var(--sale); }
.sum .total { font-size: 18px; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 4px; }
.sum .total span:last-child { font-family: var(--font-heading); font-size: 22px; letter-spacing: .01em; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { min-height: 44px; text-transform: uppercase; }

/* ---------- checkout ---------- */
.co { display: grid; grid-template-columns: 1fr 420px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.co-title { font-family: var(--font-heading); text-transform: var(--heading-case); font-size: clamp(30px, 4vw, 48px); margin: 24px 0 16px; }
.step { background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin-bottom: 14px; }
.step h2 { font-size: 17px; margin-bottom: 18px; display: flex; gap: 12px; align-items: center; }
.step h2 i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-size: 13px; font-family: var(--font-body); flex: none; }
.step h2 .r { margin-left: auto; font-size: 13px; font-weight: 400; }
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--r-sm); cursor: pointer; transition: .15s; background: var(--bg); }
.opt:hover { border-color: var(--muted); }
.opt.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.opt input { accent-color: var(--text); width: 18px; height: 18px; margin: 0; }
.opt b { font-size: 14.5px; }
.opt small { display: block; color: var(--muted); font-size: 12.5px; }
.opt .fee { font-size: 13.5px; font-weight: 700; }
.opt .fee.free { color: #2f7d4f; }
.opt-sub { padding: 14px 16px 4px; border: 1.5px solid var(--text); border-top: 0; margin-top: -9px; border-radius: 0 0 var(--r-sm) var(--r-sm); background: var(--bg); }
.store-box { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1.5px dashed var(--border); border-radius: var(--r-sm); margin-bottom: 14px; }
.store-box.picked { border-style: solid; border-color: var(--text); }
.store-box b { display: block; }
.store-box small { color: var(--muted); }
.saved { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 4px; }
.saved button { flex: none; text-align: left; font-size: 12.5px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--surface); max-width: 220px; }
.saved button.on { border-color: var(--text); }
.co-side { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border-radius: var(--radius); padding: 22px; }
.co-side .items { max-height: 320px; overflow: auto; margin-bottom: 14px; }
.co-side .mini { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 13px; }
.co-side .mini .ph { position: relative; }
.co-side .mini img { width: 56px; height: 70px; object-fit: cover; border-radius: var(--r-sm); }
.co-side .mini .q { position: absolute; top: -6px; right: -6px; background: var(--muted); color: #fff; border-radius: 10px; min-width: 20px; height: 20px; font-size: 11px; display: grid; place-items: center; font-weight: 700; }
.points-box { background: var(--bg); padding: 12px 14px; border-radius: var(--r-sm); font-size: 13px; display: grid; gap: 8px; margin: 12px 0; }
.points-box input[type=range] { width: 100%; accent-color: var(--text); }
.secure { display: flex; gap: 8px; justify-content: center; align-items: center; font-size: 12px; color: var(--muted); margin-top: 12px; }
.inv-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
@media (max-width: 960px) {
  .co { grid-template-columns: 1fr; }
  .co-side { position: static; order: -1; }
  .co-side .items { max-height: none; }
  .co-side.collapsed .items, .co-side.collapsed .coupon-row, .co-side.collapsed .points-box, .co-side.collapsed .sum > div:not(.total) { display: none; }
}
.row.m1 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row, .row3 { grid-template-columns: 1fr; } .row.m1 { grid-template-columns: 1fr 1fr; } }
.cvs-list { display: grid; gap: 6px; max-height: 320px; overflow: auto; margin: 12px 0; }
.cvs-list button { text-align: left; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.cvs-list button:hover { border-color: var(--text); }
.cvs-list small { display: block; color: var(--muted); }
.notice { padding: 12px 14px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-size: 13px; margin-bottom: 14px; }

/* ---------- order page ---------- */
.order-hero { text-align: center; padding: 48px 0 32px; display: grid; gap: 10px; justify-items: center; }
.order-hero .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } }
.order-hero h1 { font-family: var(--font-heading); text-transform: var(--heading-case); font-size: clamp(30px, 5vw, 56px); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin: 10px 0 28px; position: relative; }
.timeline div { text-align: center; font-size: 12.5px; color: var(--muted); position: relative; padding-top: 28px; }
.timeline div::before { content: ""; position: absolute; top: 6px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--border); transform: translateX(-50%); z-index: 1; }
.timeline div::after { content: ""; position: absolute; top: 12px; left: -50%; right: 50%; height: 2px; background: var(--border); }
.timeline div:first-child::after { display: none; }
.timeline div.on { color: var(--text); font-weight: 700; }
.timeline div.on::before { background: var(--text); }
.timeline div.on::after { background: var(--text); }
.order-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.panel h3 { font-size: 15px; margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
.pay-info { background: var(--text); color: var(--bg); padding: 18px 20px; border-radius: var(--radius); display: grid; gap: 6px; margin-bottom: 18px; }
.pay-info .big { font-family: var(--font-heading); font-size: 26px; letter-spacing: .06em; }
.status-pill { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--border); }
.status-pill.pending { background: #fde8c8; color: #8a4b00; }
.status-pill.processing { background: #dbe8ff; color: #1f3f8a; }
.status-pill.shipped { background: #e1f3e6; color: #1e6b3a; }
.status-pill.completed { background: var(--text); color: var(--bg); }
.status-pill.cancelled, .status-pill.returned { background: #eee; color: #777; }
.status-pill.return_requested { background: #fde0dd; color: #9a2419; }
@media (max-width: 860px) { .order-grid { grid-template-columns: 1fr; } .timeline div { font-size: 11px; } }

/* ---------- account ---------- */
.acct { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding-top: 28px; align-items: start; }
.acct nav { display: grid; gap: 2px; position: sticky; top: calc(var(--header-h) + 20px); }
.acct nav a { padding: 11px 14px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.acct nav a.on { background: var(--text); color: var(--bg); }
.acct nav a:not(.on):hover { background: var(--surface); }
.tier-card { background: var(--text); color: var(--bg); border-radius: max(var(--radius), 10px); padding: 24px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.tier-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid color-mix(in srgb, var(--accent) 70%, transparent); opacity: .5; }
.tier-card .display { font-size: 28px; }
.tier-card .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; z-index: 1; }
.tier-card .stats b { display: block; font-family: var(--font-heading); font-size: 24px; }
.tier-card .stats small { opacity: .7; font-size: 12px; }
.tier-card .prog { height: 4px; background: rgb(255 255 255 / .2); border-radius: 2px; overflow: hidden; }
.tier-card .prog i { display: block; height: 100%; background: var(--accent); }
.auth { max-width: 440px; margin: 40px auto 0; }
.auth h1 { font-family: var(--font-heading); text-transform: var(--heading-case); font-size: 38px; margin-bottom: 18px; }
.olist { display: grid; gap: 10px; }
.orow { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 18px; background: var(--surface); border-radius: var(--radius); align-items: center; }
.orow .thumbs { display: flex; gap: 4px; margin-top: 8px; }
.orow .thumbs img { width: 40px; height: 50px; object-fit: cover; border-radius: var(--r-sm); }
.addr { padding: 14px 16px; background: var(--surface); border-radius: var(--radius); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 8px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain td, table.plain th { padding: 10px 6px; border-bottom: 1px solid var(--border); text-align: left; }
table.plain th { font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .acct { grid-template-columns: 1fr; gap: 16px; } .acct nav { position: static; display: flex; overflow-x: auto; } .acct nav a { white-space: nowrap; } }

/* page content */
.prose { max-width: 760px; margin: 0 auto; padding-top: 36px; }
.prose h1 { font-family: var(--font-heading); text-transform: var(--heading-case); font-size: clamp(32px, 5vw, 56px); margin-bottom: 28px; }
.prose h2 { font-size: 20px; margin: 30px 0 12px; }
.prose h3 { font-size: 16px; margin: 22px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 1em; }
.prose ul { list-style: disc; }
.prose li { margin: 4px 0; }

/* skeleton / loading */
.page-loading { min-height: 60vh; display: grid; place-items: center; }
.page-loading span { width: 28px; height: 28px; border: 2.5px solid var(--border); border-top-color: var(--text); border-radius: 50%; animation: spin .7s linear infinite; }
.sk { background: linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 70%, var(--border)) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.fade-in { animation: fadeIn .5s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
