:root {
  --ink: #0f0f0f;
  --paper: #ffffff;
  --mist: #edece9;
  --card: #f5f4f2;
  --muted: rgba(15,15,15,.55);
  --faint: rgba(15,15,15,.35);
  --hair: rgba(0,0,0,.09);
  --gold: #b0915c;
  --serif: "Newsreader", "New York", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --maxw: 1240px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(150px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.eyebrow { font: 600 10.5px/1.3 var(--sans); letter-spacing: .17em; text-transform: uppercase; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter); padding-top: calc(10px + env(safe-area-inset-top));
}
.wordmark { font: 400 22px/1 var(--serif); letter-spacing: .32em; margin-right: -.32em; white-space: nowrap; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; position: relative; background: var(--paper); flex: none; }
.round:hover { background: var(--card); }
.bag-count { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--ink); color: #fff; font: 600 11px/19px var(--sans); text-align: center; padding: 0 5px; }

/* Tab bar */
.tabbar {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; gap: 4px; padding: 6px; border-radius: 40px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px);
  border: 1px solid var(--hair); box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 16px 6px; border-radius: 30px; min-width: 76px; }
.tabbar a span { font: 600 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.tabbar a.on { background: var(--mist); }
.tabbar svg { width: 21px; height: 21px; }

/* Shop header */
.search { display: flex; align-items: center; gap: 10px; background: var(--mist); border-radius: 26px; padding: 0 18px; height: 46px; margin: 4px 0 0; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; }
.search svg { color: var(--muted); width: 19px; height: 19px; flex: none; }
.shop-head { text-align: center; padding: 30px 0 18px; border-top: 1px solid var(--hair); margin-top: 14px; }
.shop-head h1 { font: 400 clamp(34px, 6vw, 48px)/1.1 var(--serif); margin: 0; }
.shop-head p { margin: 8px 0 0; color: var(--muted); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px var(--gutter) 6px; margin: 0 calc(-1 * var(--gutter)); }
.chips::-webkit-scrollbar, .cats::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 15px; border-radius: 17px; border: 1px solid var(--hair); font-size: 13px; letter-spacing: .03em; white-space: nowrap; background: var(--paper); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.chip small { color: var(--faint); margin-left: 4px; font-size: 11px; }
.chip.on small { color: rgba(255,255,255,.6); }

.cats { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--hair); padding: 10px var(--gutter) 0; margin: 4px calc(-1 * var(--gutter)) 0; }
.cats button { flex: none; font: 500 11.5px/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; color: var(--faint); padding: 8px 0 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
.cats button.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

.resultsbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--hair); margin-bottom: 20px; gap: 12px; }
.resultsbar .count { font-weight: 500; }
.resultsbar .count span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.sort { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.sort select { appearance: none; border: 0; background: none; font-weight: 500; text-align: right; cursor: pointer; padding-right: 2px; }
.sort svg { width: 15px; height: 15px; }
.clearf { text-decoration: underline; color: var(--muted); font-size: 13px; margin-left: 8px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 36px 16px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.card { min-width: 0; }
.mwrap { position: relative; }
.media { position: relative; display: block; background: var(--card); aspect-ratio: 3/4; overflow: hidden; }
.media img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s ease, opacity .3s; opacity: 0; }
.media img.ok { opacity: 1; }
.card:hover .media img { transform: scale(1.03); }
.media .ph { position: absolute; inset: 0; display: grid; place-items: center; font: italic 15px var(--serif); color: var(--faint); padding: 14px; text-align: center; }
.tag { position: absolute; top: 12px; left: 14px; font-size: 12.5px; color: var(--muted); z-index: 1; }
.heart, .quick { position: absolute; z-index: 2; display: grid; place-items: center; }
.heart { top: 6px; right: 6px; width: 40px; height: 40px; }
.heart svg { width: 21px; height: 21px; }
.heart.on svg, .fav-big.on svg { fill: var(--ink); }
.quick { right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.quick svg { width: 18px; height: 18px; }
.quick.in { background: var(--ink); color: #fff; }
.info { display: block; padding: 12px 4px 0; }
.info .eyebrow { margin-bottom: 4px; }
.info .name { color: var(--muted); font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin-top: 6px; font-variant-numeric: tabular-nums; }
.por { font: italic 15px var(--serif); color: var(--muted); }
.est { font: italic 13px var(--serif); color: var(--muted); margin-left: 4px; }
.sentinel { height: 1px; }
.more-note { text-align: center; color: var(--muted); padding: 30px 0; font-size: 13px; }
.empty { text-align: center; padding: 70px 20px; }
.empty h2 { font: 400 28px/1.2 var(--serif); margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 0 22px; }
.loading { padding: 120px 20px; text-align: center; font: italic 18px var(--serif); color: var(--muted); }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; background: var(--ink); color: #fff; font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--ink); }
.btn:hover { opacity: .88; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.sm { min-height: 44px; font-size: 11.5px; width: auto; padding: 0 18px; }
.btn svg { width: 18px; height: 18px; }
.linkbtn { text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; }
.textbtn { color: var(--muted); font-size: 14px; padding: 12px; }

/* Product page */
.pdp { display: grid; gap: 28px; padding-top: 8px; }
@media (min-width: 860px) { .pdp { grid-template-columns: 1.15fr 1fr; gap: 56px; padding-top: 24px; } }
.gallery { position: relative; background: var(--card); aspect-ratio: 4/5; overflow: hidden; margin: 0 calc(-1 * var(--gutter)); }
@media (min-width: 860px) { .gallery { margin: 0; } }
.gallery img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; opacity: 0; transition: opacity .3s; }
.gallery img.ok { opacity: 1; }
.gallery .bars { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; gap: 4px; }
.gallery .bars i { flex: 1; height: 2px; background: rgba(0,0,0,.15); }
.gallery .bars i.on { background: var(--ink); }
.gallery .nav { position: absolute; top: 0; bottom: 0; width: 50%; }
.gallery .nav.prev { left: 0; cursor: w-resize; } .gallery .nav.next { right: 0; cursor: e-resize; }
.pdp-info h1 { font: 400 clamp(26px, 4vw, 34px)/1.2 var(--serif); margin: 8px 0 12px; }
.pdp-info .bigprice { font-size: 19px; font-variant-numeric: tabular-nums; }
.pdp-info .bigprice .por { font-size: 19px; }
.conv { color: var(--muted); font-size: 13px; margin-top: 4px; }
.pdp-actions { display: flex; gap: 10px; margin: 26px 0 10px; }
.fav-big { width: 56px; flex: none; border: 1px solid var(--ink); display: grid; place-items: center; }
.details { margin-top: 26px; border-top: 1px solid var(--hair); }
.details div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.details dt, .details span:first-child { color: var(--muted); }
.details span:last-child { text-align: right; }
.retailer { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; }
.retailer svg { width: 16px; height: 16px; }
.section-title { font: 400 26px/1.2 var(--serif); margin: 54px 0 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.section-title a { font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; padding: 6px 0; }
.back svg { width: 16px; height: 16px; }

/* Bag bar */
.bagbar {
  position: fixed; z-index: 25; left: 50%; transform: translateX(-50%);
  bottom: calc(86px + env(safe-area-inset-bottom)); width: min(560px, calc(100% - 2 * var(--gutter)));
  background: var(--ink); color: #fff; display: flex; align-items: center; gap: 12px; padding: 9px 16px 9px 9px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); cursor: pointer; animation: up .3s ease;
}
@keyframes up { from { transform: translate(-50%, 20px); opacity: 0; } }
.bagbar .thumbs { display: flex; }
.bagbar .thumbs span { width: 38px; height: 46px; background: #fff; margin-right: -10px; border: 2px solid var(--ink); display: grid; place-items: center; overflow: hidden; }
.bagbar .thumbs img { width: 90%; height: 90%; object-fit: contain; }
.bagbar .mid { flex: 1; min-width: 0; padding-left: 14px; }
.bagbar .mid .eyebrow { color: rgba(255,255,255,.6); font-size: 9.5px; }
.bagbar .mid div:last-child { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bagbar .tot { font: 400 20px var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Sheets */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: #fff; width: 100%; max-width: 640px; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; animation: rise .28s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 760px) { .scrim { align-items: center; } .sheet { border-radius: 4px; max-height: 88vh; } .sheet.wide { max-width: 980px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
.sheet-head h2 { font: 400 22px/1 var(--serif); margin: 0; text-align: center; flex: 1; }
.sheet-head .spacer { width: 44px; }
.sheet-body { overflow-y: auto; padding: 22px var(--gutter); flex: 1; overscroll-behavior: contain; }
.sheet-foot { padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); }
.lookname { width: 100%; border: 0; border-bottom: 1px solid var(--hair); font: 400 32px/1.2 var(--serif); padding: 6px 0 10px; outline: none; margin: 6px 0 8px; }
.lookname:focus { border-bottom-color: var(--ink); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.row .thumb { width: 76px; height: 92px; background: var(--card); display: grid; place-items: center; overflow: hidden; }
.row .thumb img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.row .name { color: var(--muted); font-size: 14px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .price { font-size: 15px; }
.row .tools { display: flex; flex-direction: column; gap: 6px; }
.mini { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; }
.mini svg { width: 15px; height: 15px; }
.mini:disabled { opacity: .3; cursor: default; }
.tierbox { margin: 22px 0 6px; padding: 18px; background: var(--card); }
.tierbox .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tierbox .tname { font: 400 20px var(--serif); }
.bar { height: 3px; background: rgba(0,0,0,.1); margin: 12px 0 8px; }
.bar i { display: block; height: 100%; background: var(--ink); transition: width .5s ease; }
.totalrow { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; }
.totalrow .big { font: 400 34px/1 var(--serif); font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: 12.5px; text-align: right; }

/* Forms */
.field { display: block; margin: 16px 0; }
.field .eyebrow { display: block; margin-bottom: 8px; color: var(--muted); }
.input { width: 100%; height: 50px; border: 1px solid var(--hair); padding: 0 14px; font-size: 17px; outline: none; background: #fff; }
.input:focus { border-color: var(--ink); }
.moneyin { display: flex; align-items: center; border: 1px solid var(--hair); }
.moneyin span { padding: 0 0 0 14px; color: var(--muted); }
.moneyin input { border: 0; flex: 1; height: 50px; padding: 0 14px 0 6px; font-size: 20px; outline: none; font-variant-numeric: tabular-nums; min-width: 0; }
.seg { display: flex; background: var(--mist); border-radius: 22px; padding: 3px; }
.seg button { flex: 1; height: 36px; border-radius: 18px; font-size: 14px; white-space: nowrap; padding: 0 12px; }
.seg button.on { background: #fff; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* Looks */
.page-head { padding: 26px 0 18px; }
.page-head h1 { font: 400 clamp(34px, 6vw, 46px)/1.1 var(--serif); margin: 0; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hair); margin-bottom: 28px; }
.stats div { padding: 16px 4px; text-align: center; }
.stats div + div { border-left: 1px solid var(--hair); }
.stats b { display: block; font: 400 26px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.stats span { font: 600 9.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lookgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px 18px; }
.lookcard .collage { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--hair); aspect-ratio: 1; overflow: hidden; }
.lookcard .collage > div { background: var(--card); display: grid; place-items: center; overflow: hidden; position: relative; }
.lookcard .collage img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.lookcard .collage .plus { font: 400 28px var(--serif); }
.lookcard h3 { font: 400 23px/1.2 var(--serif); margin: 14px 0 4px; }
.lookcard .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; }
.lookcard .meta b { color: var(--ink); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.tierchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hair); border-radius: 14px; padding: 4px 10px; font: 600 9.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.tierchip i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.look-hero { padding: 18px 0 8px; }
.look-hero h1 { font: 400 clamp(34px, 6vw, 50px)/1.1 var(--serif); margin: 10px 0 10px; }
.look-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.look-actions .btn { flex: 1 1 140px; }

/* Profile */
.prof-top { text-align: center; padding: 26px 0 8px; }
.prof-top input { text-align: center; border: 0; border-bottom: 1px solid transparent; font: 400 34px var(--serif); outline: none; width: 100%; max-width: 420px; padding: 4px; }
.prof-top input:focus, .prof-top input:hover { border-bottom-color: var(--hair); }
.lifetime { font: 400 clamp(40px, 9vw, 64px)/1 var(--serif); margin: 22px 0 8px; font-variant-numeric: tabular-nums; }
.prof-tier { max-width: 460px; margin: 18px auto 0; }
.sec { margin-top: 44px; }
.sec > h2 { font: 400 24px/1.2 var(--serif); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; }
.sec > h2 small { font: 500 12.5px var(--sans); color: var(--muted); }
.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
@media (min-width: 700px) { .statgrid { grid-template-columns: repeat(4, 1fr); } }
.statgrid div { background: #fff; padding: 18px 16px; }
.statgrid b { display: block; font: 400 24px var(--serif); font-variant-numeric: tabular-nums; }
.statgrid span { color: var(--muted); font-size: 13px; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 700px) { .badges { grid-template-columns: repeat(5, 1fr); } }
.badge { border: 1px solid var(--hair); padding: 18px 10px 14px; text-align: center; }
.badge .ico { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; border: 1px solid var(--hair); font-size: 19px; }
.badge.on .ico { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge:not(.on) { color: var(--faint); }
.badge b { display: block; font: 500 13px var(--sans); color: var(--ink); }
.badge:not(.on) b { color: var(--muted); }
.badge small { display: block; font-size: 11.5px; margin-top: 3px; line-height: 1.3; }
.curr { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.curr button { border: 1px solid var(--hair); padding: 12px 14px; text-align: left; display: flex; justify-content: space-between; gap: 8px; }
.curr button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.curr button span { color: var(--muted); }
.srclist { font-size: 13.5px; }
.srclist div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.srclist span:last-child { color: var(--muted); text-align: right; white-space: nowrap; }
.disclaimer { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* Designers directory */
.dir { list-style: none; margin: 0; padding: 0; }
.dir button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--hair); text-align: left; }
.dir b { font: 600 clamp(18px, 4vw, 24px)/1.15 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.dir span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.dir button:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Share */
.share-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .share-grid { grid-template-columns: 1fr 300px; align-items: start; } }
.preview { background: var(--mist); padding: 18px; display: grid; place-items: center; min-height: 300px; }
.preview canvas { max-width: 100%; max-height: 58vh; height: auto; width: auto; box-shadow: 0 6px 24px rgba(0,0,0,.12); background: #fff; }
.share-ctl > * + * { margin-top: 12px; }
.dims { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.toggle { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.toggle input { width: 44px; height: 26px; accent-color: var(--ink); }

/* Toast */
.toast { position: fixed; z-index: 80; left: 50%; top: calc(74px + env(safe-area-inset-top)); transform: translate(-50%, -16px); opacity: 0; pointer-events: none; transition: .25s; background: var(--ink); color: #fff; padding: 12px 20px; font-size: 14px; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .eyebrow { color: var(--gold); display: block; margin-bottom: 3px; }

@media (max-width: 420px) {
  .wordmark { font-size: 18px; letter-spacing: .26em; margin-right: -.26em; }
  .tabbar a { min-width: 0; padding: 7px 12px 6px; }
  .row { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .row .thumb { width: 64px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------------- Desktop ---------------- */
.topnav, .side, .bag-sum { display: none; }
.topright { display: flex; align-items: center; gap: 12px; }
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 60px; }
  .tabbar { display: none; }
  .topbar { display: grid; grid-template-columns: 1fr auto 1fr; padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
  .topbar > .round[data-action="designers"] { display: none; }
  .wordmark { font-size: 26px; }
  .topnav { display: flex; gap: 28px; }
  .topnav a { font: 600 11.5px/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; color: var(--muted); padding: 8px 0; border-bottom: 1px solid transparent; }
  .topnav a:hover { color: var(--ink); }
  .topnav a.on { color: var(--ink); border-bottom-color: var(--ink); }
  .topright { justify-self: end; }
  .bag-sum:not([hidden]) { display: block; font: 400 18px var(--serif); font-variant-numeric: tabular-nums; }
  .search { max-width: 640px; margin: 22px auto 0; }
  .bagbar { left: auto; right: 32px; transform: none; bottom: 28px; width: 400px; }
  @keyframes up { from { transform: translateY(20px); opacity: 0; } }
  .scrim:has(.drawer) { justify-content: flex-end; align-items: stretch; }
  .sheet.drawer { max-width: 520px; max-height: none; height: 100%; border-radius: 0; animation: slide .3s cubic-bezier(.2,.8,.2,1); }
  @keyframes slide { from { transform: translateX(60px); opacity: .4; } }
  .toast { top: 92px; }
  .page-head { padding-top: 40px; }
  .lookgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 44px 28px; }
}
@media (min-width: 1040px) {
  .shop-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; margin-top: 26px; }
  .side { display: block; position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 30px; }
  .side-sec + .side-sec { margin-top: 30px; }
  .side-sec .eyebrow { margin-bottom: 10px; }
  .side button { display: flex; justify-content: space-between; width: 100%; text-align: left; padding: 6px 0; font-size: 14px; color: var(--muted); }
  .side button span { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
  .side button:hover { color: var(--ink); }
  .side button.on { color: var(--ink); font-weight: 600; }
  .shop-main .chips, .shop-main .cats { display: none; }
  .shop-head { border-top: 0; margin-top: 0; padding-top: 6px; text-align: left; }
  .resultsbar { border-top: 1px solid var(--hair); }
  .search { margin-left: 0; max-width: none; }
}
@media (min-width: 1440px) { :root { --maxw: 1400px; } .shop-main .grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }

/* ---------------- Checkout ---------------- */
.foot-row { display: flex; justify-content: center; align-items: center; gap: 4px; }
.foot-row .dot { color: var(--faint); }
.stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 22px; }
.stepper li { flex: 1; font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding-top: 10px; border-top: 2px solid var(--hair); }
.stepper li.on { color: var(--ink); border-top-color: var(--ink); }
.stepper li.done { color: var(--muted); border-top-color: var(--muted); }
.co-h { font: 400 28px/1.2 var(--serif); margin: 0 0 6px; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 14px; border: 1px solid var(--hair); padding: 14px 16px; cursor: pointer; }
.choice:hover { border-color: var(--muted); }
.choice.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; flex: none; }
.cbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cbody b { font-weight: 500; }
.cbody small { color: var(--muted); font-size: 13px; }
.cprice { font-variant-numeric: tabular-nums; white-space: nowrap; }
.input.err { border-color: #b3261e; }
.co-rows .row { grid-template-columns: 64px 1fr auto; padding: 12px 0; }
.co-rows .row .thumb { width: 64px; height: 78px; }
.co-meta { display: grid; gap: 10px; margin: 20px 0; padding: 16px; background: var(--card); }
.co-meta div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-size: 14px; }
.co-meta span:last-child { text-align: right; }
.order-box { margin: 18px 0 0; }
.co-sum { border-top: 1px solid var(--ink); padding-top: 10px; }
.co-sum > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.co-sum > div span:first-child { color: var(--muted); }
.co-sum .co-total { border-top: 1px solid var(--hair); margin-top: 6px; padding-top: 14px; align-items: baseline; }
.co-sum .co-total span:first-child { font: 600 10.5px var(--sans); letter-spacing: .17em; text-transform: uppercase; color: var(--ink); }
.co-sum .co-total span:last-child { font: 400 30px var(--serif); }
.co-sum .note { text-align: right; }
.co-done { text-align: center; padding: 10px 0; }
.co-done .seal { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin: 4px auto 18px; animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.co-done .seal svg { width: 32px; height: 32px; stroke-width: 2; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.co-done h3 { font: 400 clamp(32px, 6vw, 42px)/1.15 var(--serif); margin: 10px 0 8px; }
.co-done p { max-width: 380px; margin: 0 auto; }
.co-done .big { font: 400 46px/1 var(--serif); margin: 22px 0 12px; font-variant-numeric: tabular-nums; }
.tierchip.ordered { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------- Checkout page ---------------- */
body.in-checkout .bagbar { display: none !important; }
.co-page { max-width: 1120px; padding-top: 10px; }
.co-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0 18px; border-bottom: 1px solid var(--hair); margin-bottom: 22px; }
.co-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .co-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; } .co-side { position: sticky; top: 100px; } }
.co-sec { border-bottom: 1px solid var(--hair); padding: 18px 0; }
.co-sec > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.co-sec h2 { font: 400 24px/1.2 var(--serif); margin: 0; display: flex; align-items: center; gap: 12px; color: var(--faint); }
.co-sec.open h2, .co-sec.done h2 { color: var(--ink); }
.co-sec .num { width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font: 600 12px var(--sans); flex: none; }
.co-sec.done .num { background: var(--ink); color: #fff; border-color: var(--ink); }
.co-body { padding-top: 18px; display: grid; gap: 14px; }
.co-done-sum { padding: 10px 0 0 38px; font-size: 14px; line-height: 1.6; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgrid .full, .fl.full { grid-column: 1 / -1; }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }
.fl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fl > span { font-size: 12.5px; color: var(--muted); }
.fl em { font-style: normal; color: var(--faint); }
.fl .input, select.input { height: 48px; font-size: 16px; border-radius: 0; }
select.input { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0f0f' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; padding-right: 36px; }
.ferr { color: #b3261e; font-size: 12.5px; }
.fine { font-size: 12.5px; margin: 0; }
.demo-note { background: var(--card); border-left: 2px solid var(--ink); padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
.cardbox { border: 1px solid var(--hair); padding: 16px; display: grid; gap: 14px; }
.cardbox-h { display: flex; justify-content: space-between; gap: 10px; font-weight: 500; font-size: 14px; }
.cardbox-h .brand { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check input { accent-color: var(--ink); width: 18px; height: 18px; }
.btn:disabled { opacity: .75; cursor: progress; }
.spin { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.co-side { background: var(--card); padding: 20px; min-width: 0; }
.co-side-h { font: 400 22px var(--serif); margin: 0 0 14px; }
.co-toggle { width: 100%; display: flex; justify-content: space-between; font: 500 15px var(--sans); }
.co-toggle span { font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .co-grid { display: flex; flex-direction: column-reverse; } .co-side:not(.open) .co-side-body { display: none; } .co-side.open .co-side-body { margin-top: 14px; } }
.co-items { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.co-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: start; font-size: 13.5px; }
.co-items .thumb { width: 56px; height: 68px; background: #fff; display: grid; place-items: center; overflow: hidden; position: relative; }
.co-items .thumb img { width: 86%; height: 86%; object-fit: contain; }
.co-items .ci { min-width: 0; }
.co-items .name { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo { display: flex; gap: 8px; margin-bottom: 4px; }
.promo .input { height: 44px; flex: 1; min-width: 0; font-size: 15px; }
.promo-on { display: flex; justify-content: space-between; width: 100%; font-size: 14px; padding: 8px 0; }
.co-side .co-sum { margin-top: 14px; }
.order-hero { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; margin: 24px auto 36px; }
.order-hero .seal { width: 76px; height: 76px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.order-hero .seal svg { width: 34px; height: 34px; stroke-width: 2; }
.order-hero h1 { font: 400 clamp(38px, 7vw, 60px)/1.1 var(--serif); margin: 6px 0 12px; }
.order-hero p { margin: 0 auto; max-width: 560px; }
.track { list-style: none; padding: 0; margin: 0 0 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.track li { border-top: 2px solid var(--hair); padding-top: 10px; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--faint); }
.track li b { font-weight: 600; font-size: 13px; }
.track li.done, .track li.now { border-top-color: var(--ink); color: var(--muted); }
.track li.now b, .track li.done b { color: var(--ink); }
@media (max-width: 560px) { .track { grid-template-columns: 1fr 1fr; row-gap: 16px; } }
.order-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--hair); }
.order-cols p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }
.order-actions { display: grid; gap: 10px; margin-top: 18px; }
.order-page .co-grid { grid-template-columns: minmax(0,1fr); }
@media (min-width: 900px) { .order-page .co-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 899px) { .order-page .co-grid { flex-direction: column; } }

/* Inputs always use the page's light palette, even when the browser or host is in dark mode. */
:root, :root[data-theme="dark"] { color-scheme: light; }
input, select, textarea { color: var(--ink); background-color: var(--paper); caret-color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
.search input { background: none; }
.lookname { background: var(--paper); color: var(--ink); }
.tel { display: flex; align-items: stretch; border: 1px solid var(--hair); }
.tel:focus-within { border-color: var(--ink); }
.tel.err { border-color: #b3261e; }
.tel .dial { display: grid; place-items: center; padding: 0 12px; background: var(--card); color: var(--muted); font-size: 15px; border-right: 1px solid var(--hair); }
.tel .input { border: 0; flex: 1; min-width: 0; }
.tel { position: relative; }
.tel select.dial { position: absolute; left: 0; top: 0; bottom: 0; width: 84px; opacity: 0; cursor: pointer; z-index: 1; }
.tel .dialcode { display: flex; align-items: center; gap: 6px; padding: 0 12px; min-width: 84px; background: var(--card); color: var(--ink); font-size: 15px; border-right: 1px solid var(--hair); }
.tel .dialcode::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); margin-left: auto; }
.tel:has(select.dial:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.info-card { display: inline-flex; gap: 10px; align-items: center; text-align: left; margin: 18px auto 0; padding: 12px 16px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 12px; background: var(--card); font-size: 14px; line-height: 1.45; max-width: 560px; }
.info-card svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Instagram-style profile ---------- */
.prof { max-width: 935px; }
.phead { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 26px 0 18px; }
@media (min-width: 760px) { .phead { gap: 72px; padding: 36px 40px 26px; } }
.pav { position: relative; cursor: pointer; display: block; }
.avatar { width: 86px; height: 86px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--card); border: 1px solid var(--hair); }
@media (min-width: 760px) { .avatar { width: 150px; height: 150px; } }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .ini { font: 400 38px var(--serif); color: var(--ink); }
@media (min-width: 760px) { .avatar .ini { font-size: 64px; } }
.pav-cam { position: absolute; right: 2px; bottom: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; border: 2px solid var(--paper, #fff); }
.pav-cam svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pname-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pname-row h1 { font: 400 22px var(--sans); margin: 0; letter-spacing: 0; }
.pstats { list-style: none; padding: 0; margin: 16px 0; display: flex; gap: 28px; font-size: 15px; }
.pstats b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pbio { font-size: 14px; line-height: 1.5; }
.pbio > b { display: block; margin-bottom: 6px; }
.pbio .tierchip { margin-bottom: 6px; }
.pbio .bar { height: 3px; background: var(--hair); margin-top: 8px; max-width: 320px; }
.pbio .bar i { display: block; height: 100%; background: var(--ink); }
@media (max-width: 759px) {
  .phead { grid-template-columns: 86px 1fr; }
  .pinfo { display: contents; }
  .pname-row { grid-column: 2; }
  .pstats { grid-column: 2; margin: 0; gap: 18px; font-size: 13.5px; }
  .pname-row { order: 0; }
  .pbio { grid-column: 1 / -1; }
  .pname-row h1 { font-size: 19px; }
}
.phl { display: flex; gap: 22px; overflow-x: auto; padding: 6px 0 22px; scrollbar-width: none; }
@media (min-width: 760px) { .phl { padding-left: 40px; } }
.phl-i { flex: none; display: grid; justify-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font: 500 12px var(--sans); color: var(--ink); width: 76px; padding: 0; }
.phl-i span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.phl-c { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--card); box-shadow: 0 0 0 2px var(--paper, #fff), 0 0 0 3px var(--hair); }
.ptabs { display: flex; justify-content: center; gap: 56px; border-top: 1px solid var(--hair); }
.ptabs button { display: flex; align-items: center; gap: 6px; background: none; border: 0; border-top: 1px solid transparent; margin-top: -1px; padding: 16px 0; cursor: pointer; color: var(--muted); font: 600 11.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.ptabs button.on { color: var(--ink); border-top-color: var(--ink); }
.ptabs svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (max-width: 759px) { .ptabs { gap: 0; justify-content: space-around; } .ptabs span { display: none; } .ptabs svg { width: 22px; height: 22px; } .ptabs button { padding: 12px 18px; } }
.pbody { padding-top: 4px; }
.pnote { font-size: 13px; text-align: center; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
@media (min-width: 760px) { .pgrid { gap: 4px; } }
.ptile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--card); color: #fff; }
.ptile .collage { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair); width: 100%; height: 100%; }
.ptile .collage > div { background: var(--card); display: grid; place-items: center; overflow: hidden; }
.ptile .collage img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.ptile .collage .plus { font: 400 22px var(--serif); color: var(--ink); }
.ptile-tag { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: grid; place-items: center; background: rgba(0,0,0,.55); border-radius: 50%; }
.ptile-tag svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 1.8; }
.ptile-over { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: grid; place-content: center; text-align: center; gap: 4px; padding: 10px; opacity: 0; transition: opacity .15s; }
.ptile-over b { font: 400 18px/1.2 var(--serif); }
.ptile-over span { font-weight: 600; font-size: 14px; }
.ptile:hover .ptile-over, .ptile:focus-visible .ptile-over { opacity: 1; }
@media (hover: none) { .ptile-over { opacity: 1; background: linear-gradient(transparent 55%, rgba(0,0,0,.6)); place-content: end start; text-align: left; } .ptile-over b { font-size: 13px; } .ptile-over span { font-size: 11px; } }
.pfield { display: grid; gap: 6px; max-width: 420px; margin-bottom: 6px; }
.pfield span { font: 600 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pfield input { border: 1px solid var(--hair); padding: 11px 12px; font: 400 15px var(--sans); }
label.btn { cursor: pointer; }
.pbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.pbtns .btn svg { width: 14px; height: 14px; }
.porders { list-style: none; padding: 0; margin: 8px 0 0; }
.porders li + li { border-top: 1px solid var(--hair); }
.porders a { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center; padding: 16px 4px; }
.porders a:hover { background: var(--card); }
.po-thumb { width: 84px; height: 84px; display: block; overflow: hidden; }
.po-thumb .collage { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair); width: 100%; height: 100%; }
.po-thumb .collage > div { background: var(--card); display: grid; place-items: center; overflow: hidden; }
.po-thumb .collage img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.po-thumb .plus { font: 400 14px var(--serif); }
.po-main { display: grid; gap: 4px; min-width: 0; }
.po-main b { font: 400 20px/1.2 var(--serif); }
.po-main .muted { font-size: 13px; }
.po-side { display: grid; justify-items: end; gap: 8px; }
.po-side b { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .porders a { grid-template-columns: 64px 1fr; } .po-thumb { width: 64px; height: 64px; } .po-side { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; } }

/* ---------- Storefront home ---------- */
.h-strip { background: var(--ink); color: #fff; text-align: center; font: 500 11.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 10px 16px; }
.h-hero { display: grid; grid-template-columns: 1fr; background: var(--card); }
@media (min-width: 900px) { .h-hero { grid-template-columns: 1.25fr 1fr; min-height: 560px; } }
.h-hero-art { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--mist); min-height: 360px; }
.h-hero-art a { background: var(--card); display: grid; place-items: center; overflow: hidden; }
.h-hero-art img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; max-height: 520px; }
.h-hero-0 { grid-row: 1 / 3; }
.h-hero-copy { padding: 40px var(--gutter) 46px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
@media (min-width: 900px) { .h-hero-copy { padding: 60px 64px; } }
.h-hero-copy h1 { font: 400 clamp(36px, 5vw, 60px)/1.05 var(--serif); margin: 12px 0 16px; letter-spacing: -.01em; }
.h-hero-copy p { color: var(--muted); max-width: 420px; margin: 0 0 24px; font-size: 16px; }
.h-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.h-cta .btn { flex: 0 0 auto; padding-left: 28px; padding-right: 28px; }
.h-sec { margin-top: 56px; }
.h-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.h-sec-head h2 { font: 400 clamp(24px, 3vw, 32px)/1.1 var(--serif); margin: 0; }
.h-sec-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.h-sec-head a { font: 600 11.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.h-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 46%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
@media (min-width: 700px) { .h-rail { grid-auto-columns: calc((100% - 48px) / 4); } }
@media (min-width: 1100px) { .h-rail { grid-auto-columns: calc((100% - 80px) / 6); } }
.h-rail > * { scroll-snap-align: start; }
.h-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .h-cats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .h-cats { grid-template-columns: repeat(7, 1fr); } }
.h-cat { display: grid; gap: 2px; }
.h-cat-img { aspect-ratio: 3/4; background: var(--card); display: grid; place-items: center; overflow: hidden; margin-bottom: 10px; transition: background .2s; }
.h-cat-img img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s; }
.h-cat:hover .h-cat-img img { transform: scale(1.05); }
.h-cat b { font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.h-cat > span:last-child { color: var(--muted); font-size: 13px; }
.h-edit { margin-top: 64px; display: grid; gap: 24px; background: var(--card); padding: 28px var(--gutter); }
@media (min-width: 900px) { .h-edit { grid-template-columns: 1fr 1.6fr; padding: 48px; align-items: center; } }
.h-edit-copy h2 { font: 400 clamp(34px, 4.5vw, 52px)/1.05 var(--serif); margin: 10px 0 12px; }
.h-edit-copy p { color: var(--muted); max-width: 340px; margin: 0 0 22px; }
.h-edit-copy .btn { width: max-content; padding-left: 28px; padding-right: 28px; }
.h-edit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
@media (min-width: 700px) { .h-edit-grid { grid-template-columns: repeat(4, 1fr); } }
.h-edit-grid a { background: var(--paper); aspect-ratio: 3/4; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 12px; }
.h-edit-grid img { width: 90%; height: 90%; object-fit: contain; mix-blend-mode: multiply; }
.h-edit-grid span { font-size: 13px; color: var(--muted); }
.h-brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
@media (min-width: 700px) { .h-brands { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .h-brands { grid-template-columns: repeat(4, 1fr); } }
.h-brands a { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--hair); }
.h-brands a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.h-brands b { font-weight: 500; }
.h-brands span { color: var(--muted); font-size: 13px; }
.h-props { margin-top: 64px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
@media (min-width: 900px) { .h-props { grid-template-columns: repeat(4, 1fr); } }
.h-props div { background: var(--paper); padding: 22px 20px; display: grid; gap: 6px; }
.h-props b { font: 400 19px var(--serif); }
.h-props span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.h-foot { margin: 56px 0 10px; text-align: center; }
.h-foot p { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }
/* Profile: buttons sit under the bio on phones */
@media (max-width: 759px) {
  .phead { row-gap: 14px; }
  .pname-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pbtns { grid-column: 1 / -1; order: 5; }
}
.pbtns-row { display: flex; gap: 8px; margin-top: 14px; }
.pbtns-row .btn { flex: 1; }
@media (min-width: 760px) { .pbtns-row { max-width: 420px; } }
.h-cta .btn { width: auto; }
.h-edit-copy .btn { width: max-content; }
.pbtns-row .btn { white-space: nowrap; letter-spacing: .08em; padding-left: 10px; padding-right: 10px; }
@media (max-width: 699px) { .h-cats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 38%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .h-cat { scroll-snap-align: start; } .h-hero-art { min-height: 300px; } }

/* ---------- One backdrop for every product photo ----------
   app.js brightens each photo until its backdrop is pure white; multiply then turns it into the shared --card grey. */
.media img, .gallery img, .row .thumb img, .collage img, .h-hero-art img, .h-cat-img img, .h-edit-grid img, .co-items .thumb img {
  mix-blend-mode: multiply;
}
.co-items .thumb { background: var(--card); }
.h-edit-grid a { background: var(--card); }
.h-edit { background: var(--mist); }

.pbio-text { margin: 6px 0 6px; white-space: pre-line; color: var(--ink); max-width: 420px; }
.plinks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 2px 0 8px; }
.plinks a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13.5px; color: #1d3a8a; }
.plinks a:hover { text-decoration: underline; }
.plinks svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pfield textarea { border: 1px solid var(--hair); padding: 11px 12px; font: 400 15px/1.4 var(--sans); resize: vertical; }
.pfield small { font-size: 12px; }
.pfield .plink + .plink { margin-top: 6px; }
.pfield input.bad { border-color: #b3261e; }

.pname-row { flex-direction: row !important; align-items: center !important; }
.picons { display: inline-flex; gap: 4px; }
.picon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.picon:hover { background: var(--card); color: var(--ink); }
.picon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Header search */
.hsearch { display: none; }
.hsearch-btn { display: grid; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; }
.topbar > .round[data-action="designers"] { justify-self: start; }
.topright { justify-self: end; }
body.on-shop .hsearch-btn, body.on-shop .hsearch { display: none !important; }
@media (min-width: 900px) {
  .hsearch-btn { display: none; }
  .hsearch { display: flex; align-items: center; gap: 8px; background: var(--mist); border-radius: 22px; padding: 0 14px; height: 40px; width: clamp(180px, 20vw, 280px); }
  .hsearch svg { width: 16px; height: 16px; flex: none; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.8; }
  .hsearch input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; }
}

/* Search suggestions */
.hsearch, .search { position: relative; }
.sg { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40; background: var(--paper); border: 1px solid var(--hair); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.12); padding: 8px; max-height: min(70vh, 560px); overflow-y: auto; text-align: left; }
.hsearch .sg { left: auto; width: min(460px, 92vw); }
.sg-h { font: 600 10px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.sg-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 7px 10px; border-radius: 10px; text-align: left; }
.sg-row:hover, .sg-row.on { background: var(--card); }
.sg-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font: 400 18px var(--serif); color: var(--ink); }
.sg-row:hover .sg-ico, .sg-row.on .sg-ico { background: var(--paper); }
.sg-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sg-thumb { width: 40px; height: 50px; background: var(--card); display: grid; place-items: center; overflow: hidden; }
.sg-thumb img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.sg-main { display: grid; min-width: 0; }
.sg-main b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-main small { color: var(--muted); font-size: 12px; }
.sg-brand { font: 600 10px var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--ink) !important; }
.sg-name { font-weight: 400 !important; color: var(--muted); }
.sg-kind { font: 600 9.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--hair); border-radius: 12px; padding: 4px 8px; white-space: nowrap; }
.sg-price { font-size: 13px; white-space: nowrap; }
.sg-all { grid-template-columns: 1fr; font-weight: 600; font-size: 13px; margin-top: 6px; border-top: 1px solid var(--hair); border-radius: 0 0 10px 10px; padding-top: 12px; }
.sg-empty { padding: 14px; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .sg-kind { display: none; } }

.pprivate { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; margin: 14px 0 6px; text-align: center; }
.pprivate svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Desktop: Achievements + stats fit on one screen (compact horizontal badges). */
@media (min-width: 900px) {
  .prof .phead { padding: 18px 40px 14px; gap: 56px; }
  .prof .avatar { width: 118px; height: 118px; }
  .prof .avatar .ini { font-size: 52px; }
  .prof .pstats { margin: 10px 0; }
  .prof .ptabs button { padding: 12px 0; }
  .prof .pnote { margin: 12px 0 10px; }
  .prof .badges { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .prof .badge { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; text-align: left; padding: 8px 12px; }
  .prof .badge .ico { grid-row: span 2; width: 34px; height: 34px; margin: 0; font-size: 15px; }
  .prof .badge b { font-size: 12.5px; }
  .prof .badge small { font-size: 11px; margin-top: 1px; }
  .prof .sec { margin-top: 22px; }
  .prof .sec > h2 { font-size: 19px; margin-bottom: 10px; padding-bottom: 8px; }
  .prof .statgrid div { padding: 10px 14px; }
  .prof .statgrid b { font-size: 20px; }
}
.padd { display: inline-block; margin-top: 6px; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.padd:hover { color: var(--ink); }
@media (min-width: 900px) {
  .prof .sec.pstats-sec { margin-top: 14px; }
  .prof .sec.pstats-sec > h2 { display: none; }
  .prof .sec.pstats-sec .statgrid div { display: flex; align-items: baseline; gap: 8px; padding: 9px 14px; }
  .prof .sec.pstats-sec .statgrid b { font-size: 18px; }
}
@media (min-width: 1100px) {
  .prof { max-width: 1080px; }
  .prof .badges { grid-template-columns: repeat(6, 1fr); }
  .prof .badge { grid-template-columns: 28px 1fr; column-gap: 9px; padding: 8px 10px; }
  .prof .badge .ico { width: 28px; height: 28px; font-size: 13px; }
}
