/*
 * Dott - "Warm Editorial Streetwear" (the Stitch design system), hand-written so the shop
 * needs no CSS framework and the strict Content-Security-Policy stays as it is.
 * Tokens first, then shared pieces, then the shop, then the dashboard.
 * The accent comes from the dashboard (Content > Brand > Accent colour) through --brand.
 */
@font-face { font-family: 'Bodoni Moda'; src: url('/fonts/bodoni-moda.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/plus-jakarta-sans.woff2') format('woff2'); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Material Symbols Outlined'; src: url('/fonts/material-symbols.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: block; }

:root {
  --brand: #a83303;
  --brand-hover: color-mix(in srgb, var(--brand) 84%, #fff);
  --brand-soft: color-mix(in srgb, var(--brand) 16%, #fff);
  --brand-ink: color-mix(in srgb, var(--brand) 72%, #000);
  --bg: #fcf9f2;
  --white: #fff;
  --s-low: #f6f3ec;
  --s-mid: #f1eee7;
  --s-high: #ebe8e1;
  --s-top: #e5e2db;
  --ink: #1c1c18;
  --ink-soft: #59413a;
  --stone: #766f64;
  --line: #e6e1d8;
  --dark: #31312c;
  --on-dark: #f3f0e9;
  --bad: #ba1a1a;
  --bad-soft: #ffdad6;
  --ok: #1f6b45;
  --ok-soft: #dcefe3;
  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 4px; --r: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px;
  --shadow: 0 1px 2px rgba(26, 25, 24, .05);
  --shadow-float: 0 12px 32px -8px rgba(26, 25, 24, .12);
  --pad: 16px;
}
@media (min-width: 768px) { :root { --pad: 32px; } }
@media (min-width: 1100px) { :root { --pad: 56px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/24px var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
/* Bodoni Moda thins its hairlines as text gets bigger (its optical-size axis), until the bar of an
   "H" disappears at title sizes. Pin it to the sturdy low end so headings stay readable.
   !important because every `font:` shorthand below would otherwise reset it. */
*, ::before, ::after { font-variation-settings: 'opsz' 12 !important; }
::selection { background: var(--brand-soft); }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font: 500 36px/44px var(--serif); letter-spacing: -.01em; }
h2 { font: 700 20px/28px var(--sans); letter-spacing: -.01em; }
h3 { font: 700 16px/22px var(--sans); }
p { margin: 0 0 12px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; line-height: 18px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.pre { white-space: pre-line; }
.serif { font-family: var(--serif); }
h2.serif-title { font: 500 clamp(26px, 3vw, 36px)/1.2 var(--serif); letter-spacing: -.01em; }
.icon { font-family: 'Material Symbols Outlined'; font-weight: 400; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; flex: none; width: 1em; height: 1em; overflow: hidden; vertical-align: middle; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; user-select: none; }
.icon.sm { font-size: 16px; } .icon.lg { font-size: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 11px/14px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.eyebrow.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.eyebrow.quiet { color: var(--ink-soft); }
.caps { font: 700 11px/14px var(--sans); letter-spacing: .14em; text-transform: uppercase; }

/* ------------------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 18px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--ink); color: var(--bg); font: 600 13px/20px var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .1s; }
.btn:hover { background: #33332e; border-color: #33332e; }
.btn:active { transform: scale(.98); }
.btn.brand-btn { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.brand-btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.secondary { background: var(--s-high); border-color: var(--s-high); color: var(--ink); }
.btn.secondary:hover { background: var(--s-top); border-color: var(--s-top); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--bg); }
.btn.danger { background: var(--bad-soft); border-color: var(--bad-soft); color: var(--bad); }
.btn.danger:hover { background: #ffc9c3; border-color: #ffc9c3; }
.btn.small { min-height: 30px; padding: 4px 12px; font-size: 12px; line-height: 16px; border-radius: var(--r-sm); }
.btn.lg { min-height: 50px; padding: 14px 28px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.link { font: 600 12px/16px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { color: var(--brand); }
.link.brand { color: var(--brand); }
.under { text-decoration: underline; text-underline-offset: 3px; }

label { display: block; margin-bottom: 16px; font: 700 11px/14px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
input, select, textarea { display: block; width: 100%; margin-top: 8px; padding: 11px 14px; font: 400 15px/22px var(--sans); letter-spacing: normal; text-transform: none; color: var(--ink); background: var(--s-low); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, background-color .15s; }
input::placeholder, textarea::placeholder { color: var(--stone); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
textarea { resize: vertical; min-height: 84px; }
input[type=checkbox], input[type=radio] { display: inline-block; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; flex: none; accent-color: var(--brand); }
input[type=color] { padding: 3px; height: 46px; cursor: pointer; }
input[type=file] { padding: 8px; font-size: 13px; background: var(--s-low); }
input[type=file]::file-selector-button { margin-right: 12px; padding: 6px 12px; border: 0; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); font: 600 12px var(--sans); cursor: pointer; }
input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
label.check, label.choice { font: 400 14px/20px var(--sans); letter-spacing: normal; text-transform: none; color: var(--ink); }
label.check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--s-low); border-radius: var(--r); margin-bottom: 8px; cursor: pointer; }
label.check > span { font-weight: 600; }
label.check + label:not(.check) { margin-top: 18px; }
.card[id], details[id] { scroll-margin-top: 120px; }
.help { display: block; margin-top: 4px; font: 400 12px/17px var(--sans); letter-spacing: normal; text-transform: none; color: var(--stone); }
.form-msg { min-height: 18px; margin: 10px 0 0; font-size: 13px; line-height: 18px; color: var(--ok); }
.form-msg.error, .error { color: var(--bad); }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1 1 150px; min-width: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search-field { position: relative; display: block; margin: 0; min-width: 0; }
.search-field .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.search-field input { margin: 0; padding-left: 40px; background: var(--s-mid); border-color: transparent; }
.search-field input:focus { background: var(--white); border-color: var(--ink); }
.stepper { display: inline-flex; align-items: center; background: var(--s-mid); border-radius: var(--r); padding: 3px; }
.stepper button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: var(--r-sm); background: var(--white); color: var(--ink); cursor: pointer; }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper .qty, .stepper input { width: 40px; margin: 0; padding: 0; border: 0; background: none; text-align: center; font: 600 14px var(--sans); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { background: none; }

/* ------------------------------------------------------------ blocks */
.card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.card.flush { padding: 0; overflow: hidden; }
.card.tonal { background: var(--s-low); box-shadow: none; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card.flush > .card-head { padding: 20px 24px; margin: 0; }
.card-head h2 + p, .card-head .eyebrow + h2 { margin-top: 2px; }
.card-head p { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.card-foot { padding: 14px 24px; background: var(--s-low); font-size: 13px; color: var(--ink-soft); }
.narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { margin-top: 6px; }
.page-head .lede { margin: 8px 0 0; max-width: 520px; color: var(--ink-soft); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font: 600 12px/16px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.back:hover { color: var(--brand); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { gap: 16px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font: 700 11px/14px var(--sans); letter-spacing: .06em; background: var(--s-high); color: var(--ink); white-space: nowrap; vertical-align: middle; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--brand-soft); color: var(--brand-ink); }
.badge.warn::before, .badge.live::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.live { background: none; padding-left: 0; color: var(--ink); }
.badge.live::before { background: var(--ok); }
.badge.tag { border-radius: var(--r-sm); text-transform: uppercase; letter-spacing: .1em; }
.badge.solid { background: var(--brand); color: #fff; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--r-lg); background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; line-height: 20px; }
.notice .icon { margin-top: 1px; }
.notice.error { background: var(--bad-soft); color: var(--bad); }
.notice.quiet { background: var(--s-high); color: var(--ink-soft); }
.empty { padding: 40px 24px; text-align: center; color: var(--ink-soft); }
.empty .icon { font-size: 32px; color: var(--stone); margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 16px; vertical-align: middle; }
th { font: 700 11px/14px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); background: var(--s-high); white-space: nowrap; }
tbody tr + tr td { border-top: 1px solid var(--line); }
tbody tr:hover td { background: #fdfcf9; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
td strong { font-weight: 700; }
td a { text-decoration: none; }
td a:hover strong, td a:hover { color: var(--brand); }
.table-wrap { overflow-x: auto; }
.thumb { width: 44px; height: 52px; object-fit: cover; border-radius: var(--r-sm); background: var(--s-high); }
.preview { max-height: 140px; margin: 8px 0; border-radius: var(--r); border: 1px solid var(--line); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); vertical-align: -2px; margin-right: 6px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.pills a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--s-mid); color: var(--ink); text-decoration: none; font: 600 12px/16px var(--sans); letter-spacing: .04em; transition: background-color .15s; }
.pills a { transition: background-color .15s, color .15s; }
.pills a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.pills a.active { background: var(--brand); color: #fff; }
.pills .n { min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 11px; text-align: center; }
.pills .n.hot { background: var(--bad-soft); color: var(--bad); }
.pills a.active .n { background: #fff; color: var(--brand); }
.pills.caps-pills a { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 24px; background: var(--s-low); font-size: 13px; color: var(--ink-soft); }

/* dialogs */
dialog { border: 0; border-radius: var(--r-xl); padding: 0; width: min(580px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: var(--bg); color: var(--ink); box-shadow: 0 24px 64px -12px rgba(26, 25, 24, .28); }
dialog::backdrop { background: rgba(49, 49, 44, .45); backdrop-filter: blur(6px); }
.dialog-body { padding: 28px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.dialog-head h2 { font: 500 26px/32px var(--serif); letter-spacing: -.01em; }
.x { width: 36px; height: 36px; display: grid; place-items: center; background: var(--s-high); border: 0; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer; flex: none; }
.x:hover { background: var(--s-top); }
.form-section { margin: 24px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.dialog-head + .form-section { margin-top: 0; padding-top: 0; border-top: 0; }
.side-settings .card h2 { padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 18px; letter-spacing: .04em; }
.side-settings .card form > .btn { width: 100%; margin-top: 8px; }

/* ------------------------------------------------------------ shop chrome */
.announcement { background: var(--brand); color: #fff; text-align: center; padding: 6px 16px; font: 700 11px/14px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 8px rgba(0, 0, 0, .04); }
.site-header-inner { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; min-height: 80px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 36px; width: auto; border-radius: var(--r-sm); }
.brand-word { font: 700 22px/1 var(--serif); letter-spacing: .01em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; flex: 1; min-width: 0; }
.nav a { font: 600 12px/16px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; padding: 6px 0; white-space: nowrap; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--brand); font-weight: 800; }
.header-tools { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ink-soft); text-decoration: none; background: none; border: 0; cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: var(--s-high); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--s-high); text-decoration: none; font: 600 12px/16px var(--sans); letter-spacing: .1em; text-transform: uppercase; transition: background-color .15s; }
.cart-link:hover { background: var(--s-top); }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font: 700 10px/1 var(--sans); letter-spacing: 0; }
@media (max-width: 860px) {
  .site-header-inner { min-height: 64px; gap: 4px 16px; }
  .nav { order: 3; flex: 1 0 100%; gap: 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  /* With JavaScript the row folds into a hamburger menu that drops down under the header. */
  .site-header.has-menu .nav { display: none; }
  .site-header.has-menu.menu-open .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; overflow: visible; padding: 4px 0 14px; border-top: 1px solid var(--line); animation: menu-in .22s cubic-bezier(.2, .8, .2, 1); }
  .site-header.has-menu .nav a { padding: 14px 2px; font-size: 14px; line-height: 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
  .site-header.has-menu .nav a:last-child { border-bottom: 0; }
  .site-header.has-menu .nav a.active::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
  .header-tools { gap: 8px; }
}
@media (min-width: 861px) { .menu-btn { display: none !important; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-header.has-menu.menu-open .nav { animation: none; } }
.menu-btn { color: var(--ink); }
.burger { position: relative; display: block; width: 18px; height: 12px; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .15s; }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 5px; }
.burger i:nth-child(3) { top: 10px; }
.menu-open .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.site-main { flex: 1; padding-top: 28px; padding-bottom: 72px; }
@media (min-width: 768px) { .site-main { padding-top: 40px; } }
.site-footer { background: var(--s-low); margin-top: auto; }
/* On a phone the brand blurb runs across, Assistance and Brand sit side by side under it, and
   Connect is one wrapping row of links, so the footer stays short. */
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 44px; padding-bottom: 32px; }
.footer-about, .footer-connect { grid-column: 1 / -1; }
.footer-grid .footer-connect ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-top: 64px; padding-bottom: 40px; }
  .footer-about, .footer-connect { grid-column: auto; }
  .footer-grid .footer-connect ul { display: grid; gap: 8px; }
}
.footer-grid .brand-word { font-size: 18px; letter-spacing: .12em; }
.footer-grid p { margin: 10px 0 0; max-width: 300px; font-size: 13px; line-height: 21px; color: var(--ink-soft); }
.footer-grid h3 { font: 700 11px/14px var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid li a, .footer-grid li span { font-size: 13px; line-height: 18px; color: var(--ink-soft); text-decoration: none; overflow-wrap: anywhere; }
.footer-grid li a:hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font: 700 11px/14px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* ------------------------------------------------------------ home */
.hero { position: relative; display: flex; align-items: center; min-height: 360px; border-radius: var(--r-2xl); background: var(--s-mid) center / cover no-repeat; overflow: hidden; }
@media (min-width: 768px) { .hero { min-height: 460px; } }
.hero.has-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--s-mid) 96%, transparent) 0%, color-mix(in srgb, var(--s-mid) 80%, transparent) 42%, transparent 78%); }
.hero-mark { position: absolute; right: 0; top: 50%; transform: translateY(-50%); padding-right: clamp(16px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-end; opacity: .18; pointer-events: none; user-select: none; }
.hero-mark b { font: 700 clamp(120px, 22vw, 280px)/1 var(--serif); letter-spacing: -.04em; font-variation-settings: 'opsz' 96 !important; }
.hero-mark span { margin-top: -.5em; font: 700 11px/14px var(--sans); letter-spacing: .28em; text-transform: uppercase; }
@media (max-width: 767px) { .hero-mark { top: auto; bottom: -18px; transform: none; opacity: .1; } .hero-mark span { display: none; } }
.hero-copy { position: relative; z-index: 1; max-width: 600px; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
@media (min-width: 768px) { .hero-copy { padding: 64px; gap: 24px; } }
.hero-copy h1 { font: 600 clamp(34px, 4.4vw, 52px)/1.12 var(--serif); letter-spacing: -.02em; }
.hero-copy h1 i { font-style: normal; color: var(--brand); }
.hero-copy p { margin: 0; max-width: 440px; font-size: 17px; line-height: 27px; color: var(--ink-soft); }
.hero-copy .eyebrow { color: var(--ink-soft); letter-spacing: .2em; }
.hero-copy .eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 55%, transparent); }

/* rail arrows and the quick look's colour and "added" lines */
.rail-arrow { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: background-color .15s; }
.rail-arrow:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.rail-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rp-color { display: flex; align-items: center; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.rp-added { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -4px 0 0; font-size: 13px; line-height: 18px; color: var(--ok); }

.block { margin-top: 56px; }
@media (min-width: 768px) { .block { margin-top: 80px; } }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin-top: 4px; }
.tile { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--s-low); overflow: hidden; text-decoration: none; transition: box-shadow .3s; }
.tile:hover { box-shadow: var(--shadow-float); }
.tile .frame, .pcard .frame { position: relative; aspect-ratio: 4 / 5; background: var(--s-high); overflow: hidden; }
.tile .frame img, .pcard .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-out; }
.tile:hover .frame img, .pcard:hover .frame img { transform: scale(1.05); }
.pcard .frame img.alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s, transform .5s ease-out; }
.pcard:hover .frame img.alt { opacity: 1; }
.frame .ph { position: absolute; inset: 0; display: grid; place-items: center; font: 600 44px/1 var(--serif); color: var(--stone); opacity: .35; }
.tile .meta { padding: 14px 16px 16px; }
.tile .meta b { display: flex; justify-content: space-between; align-items: center; font: 700 16px/22px var(--sans); letter-spacing: .02em; transition: color .15s; }
.tile .meta b::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: 0; transition: opacity .15s; }
.tile:hover .meta b { color: var(--brand); }
.tile:hover .meta b::after { opacity: 1; }
.tile .meta span { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.reveal { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(4px); font: 700 11px/14px var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.tile:hover .reveal { opacity: 1; }
.band { display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: var(--r-2xl); background: var(--brand); color: #fff; }
@media (min-width: 900px) { .band { flex-direction: row; align-items: center; justify-content: space-between; padding: 56px; gap: 48px; } }
.band h2 { margin: 8px 0; font: 600 clamp(26px, 3vw, 36px)/1.2 var(--serif); letter-spacing: -.01em; }
.band p { margin: 0; max-width: 620px; color: rgba(255, 255, 255, .86); }
/* On the accent band the eyebrow goes light and the buttons turn around: cream on accent. */
.band .eyebrow { color: rgba(255, 255, 255, .8); }
.band .btn { background: var(--bg); border-color: var(--bg); color: var(--brand-ink); }
.band .btn:hover { background: #fff; border-color: #fff; }
.band .btn.secondary { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.band .btn.secondary:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* Customize your fits: the dark band that closes the home page. Copy and steps on one side,
   a few printable pieces on the other. */
.custom-band { display: grid; gap: 28px; padding: 28px; border-radius: var(--r-2xl); background: var(--dark); color: var(--on-dark); }
@media (min-width: 900px) { .custom-band { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 56px; padding: 56px; } }
.custom-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.custom-band .eyebrow { color: color-mix(in srgb, var(--brand) 55%, #fff); }
.custom-band h2 { font: 600 clamp(28px, 3.4vw, 42px)/1.15 var(--serif); letter-spacing: -.01em; }
.custom-band p { margin: 0; max-width: 460px; color: color-mix(in srgb, var(--on-dark) 80%, transparent); }
.custom-steps { list-style: none; counter-reset: step; margin: 8px 0 12px; padding: 0; display: grid; gap: 12px; width: 100%; max-width: 420px; }
.custom-steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.custom-steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font: 700 12px/20px var(--sans); color: color-mix(in srgb, var(--brand) 55%, #fff); letter-spacing: .06em; }
.custom-steps b { font: 700 15px/20px var(--sans); }
.custom-steps span { font-size: 13px; line-height: 18px; color: color-mix(in srgb, var(--on-dark) 65%, transparent); }
.custom-pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .custom-pieces { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .custom-pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .custom-piece:nth-child(even) { transform: translateY(28px); } }
.custom-piece { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: rgba(255, 255, 255, .06); text-decoration: none; }
.custom-piece img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-out; }
.custom-piece span { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 5px 8px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--dark) 78%, transparent); backdrop-filter: blur(4px); font: 600 11px/14px var(--sans); color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .custom-piece:hover img { transform: scale(1.05); } }

/* product card */
.pcard { display: flex; flex-direction: column; text-decoration: none; }
.pcard .frame { border-radius: var(--r-lg); }
.pcard .flags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 1; }
.flag { padding: 3px 8px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--s-top) 92%, transparent); backdrop-filter: blur(4px); font: 700 11px/14px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.flag.sale { background: var(--brand); color: #fff; }
.flag.out { background: var(--ink); color: var(--bg); }
.pcard .cta { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--ink) 90%, transparent); color: var(--bg); backdrop-filter: blur(4px); font: 600 12px/16px var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.pcard:hover .cta { opacity: 1; transform: none; }
.pcard .body { padding: 12px 2px 0; }
.pcard h3 { font: 600 15px/22px var(--sans); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.pcard:hover h3 { color: var(--brand); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.price b { font: 700 15px/22px var(--sans); letter-spacing: .04em; }
.old { font-size: 13px; color: var(--ink-soft); text-decoration: line-through; }
.pcard .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.dots { display: flex; }
.dots i { width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--bg), inset 0 0 0 1px rgba(0, 0, 0, .12); margin-left: -4px; }
.dots i:first-child { margin-left: 0; }

/* clothes rail on the home page: the pieces hang side-on from a sagging rail.
   --y is how far down the rail's curve a piece hangs; the script sets it from where the piece is.
   It runs the full width of the window on the page's own background (it breaks out of .wrap),
   while its text lines up with the page's content: --edge is where .wrap's content starts.
   --sbw is the scrollbar's width (100vw counts it), measured by the script. */
.rail { --card: 190px; --slot: 88px; --sag: 42px; --full: calc(100vw - var(--sbw, 0px)); --edge: max(var(--pad), calc(var(--full) / 2 - 720px + var(--pad))); position: relative; width: var(--full); margin: 0 0 44px calc(50% - var(--full) / 2); overflow: hidden; }
@media (min-width: 768px) { .rail { --card: 250px; --slot: 116px; } }
.rail-top { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 calc(var(--edge) - 8px) 0 var(--edge); }
.rail-count { font: 700 11px/14px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
@media (max-width: 520px) { .rail-count { display: none; } }
.rail-arrows { display: flex; margin-left: auto; }
.rail-bar { position: absolute; z-index: 3; left: 0; right: 0; top: 60px; width: 100%; height: 60px; fill: none; pointer-events: none; }
.rail-bar path { stroke: #a39c92; stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rail-bar .shade { stroke: rgba(26, 25, 24, .1); stroke-width: 12; }
.rail-track { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-strip { display: flex; align-items: flex-start; width: max-content; padding: 4px calc(50% - var(--slot) / 2) 40px; }
/* Driven by the script: the strip is moved, not scrolled. A phone scrolling a strip this long
   natively painted it in tiles that a fast fling outran, and the whole rail went blank until it
   slowed down. Up and down swipes still scroll the page. */
.rail.driven .rail-track { overflow: hidden; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.rail.driven .rail-track.dragging { cursor: grabbing; }
.rail.driven .rail-strip { will-change: transform; }
/* a piece well off screen keeps its place on the rail but is not drawn (see hangOnCurve) */
.hang.far .hang-piece, .hang.far .hang-tag { display: none; }
.hang { position: relative; flex: none; display: flex; justify-content: center; width: var(--slot); padding-bottom: var(--sag); transform: translateY(var(--y, 20px)); text-decoration: none; outline: none; cursor: pointer; transition: width .6s cubic-bezier(.22, .8, .2, 1); -webkit-tap-highlight-color: transparent; }
.hang-piece { flex: none; display: flex; flex-direction: column; align-items: center; width: var(--card); transform-origin: 50% 0; transform: perspective(1100px) rotateY(62deg); transition: transform .7s cubic-bezier(.22, .8, .2, 1), scale .28s cubic-bezier(.2, .7, .2, 1), translate .28s cubic-bezier(.2, .7, .2, 1); }
.hang:nth-child(3n) .hang-piece { transform: perspective(1100px) rotateY(66deg); }
.hang:nth-child(4n + 1) .hang-piece { transform: perspective(1100px) rotateY(58deg); }
.hanger { width: 100%; height: auto; overflow: visible; fill: none; stroke: var(--ink-soft); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hang-piece img { width: 90%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin-top: -3%; border-radius: var(--r); background: var(--s-high); box-shadow: 0 16px 28px -14px rgba(26, 25, 24, .4); pointer-events: none; user-select: none; }
/* a colour with garment pictures hangs as the cut-out garment: front, and back behind it for the flip */
.hang.garment .hang-piece { position: relative; height: calc(var(--card) * 1.44); justify-content: flex-start; transform-style: preserve-3d; }
.hang.garment .face { width: auto; height: auto; max-width: 100%; max-height: 100%; margin: 0; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 12px 12px rgba(26, 25, 24, .2)); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hang.garment .face.back { position: absolute; top: 0; left: 50%; transform: translateX(-50%) rotateY(180deg); }
.hang.garment.open.flipped .hang-piece { transform: perspective(1100px) rotateY(180deg); }
/* the metal hook between the rail and the wooden hanger. The front and back pictures are cut out
   without theirs, so they hang a hook's length below the rail with this one drawn above them. */
.rail { --hook: calc(var(--card) * .1); }
.hang.garment .hook { position: absolute; z-index: 1; top: 0; left: 50%; width: calc(var(--hook) * .6); height: var(--hook); translate: -50% 0; overflow: visible; fill: none; stroke: #8f8a83; stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }
.hang.garment:not(.has-side) .hang-piece { padding-top: var(--hook); }
.hang.garment:not(.has-side) .face.back { top: var(--hook); }
/* with a side view the garment hangs as it would on a real rail: seen from the side. Turning it
   swings the side view away edge-on and the front in after it (and the back after the front),
   so three flat pictures read as one garment turning round. */
.hang.has-side { width: calc(var(--card) * .46); pointer-events: none; }
.hang.has-side .hang-piece, .hang.has-side:hover .hang-piece, .hang.has-side.open .hang-piece, .hang.has-side.open.flipped .hang-piece { transform: none; transform-style: flat; }
.hang.garment.has-side .face { position: absolute; top: var(--hook); left: 50%; height: calc(var(--card) * 1.3); max-height: none; max-width: none; backface-visibility: visible; -webkit-backface-visibility: visible; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%) perspective(900px) rotateY(-90deg); transition: transform .3s cubic-bezier(.5, 0, .9, .4), opacity 0s .3s, visibility 0s .3s; }
/* (A face that is not on show is hidden outright, not just see-through, and nothing asks for a
   standing GPU layer: with every garment hanging three times over, phones ran out of layer
   memory and dropped pieces from the rail for a moment while swiping.) */
/* the face on show swings in from edge-on, after the one before it has swung out */
.hang.has-side:not(.open) .face.side, .hang.has-side.open:not(.flipped) .face.front, .hang.has-side.open.flipped .face.back { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) perspective(900px) rotateY(0deg); transition: transform .42s cubic-bezier(.15, .7, .2, 1) .28s, opacity 0s .28s, visibility 0s .28s; }
/* the side view keeps its own hook, so it hangs right from the rail; the drawn hook comes in with the front */
.hang.garment.has-side .face.side { top: 0; }
.hang.has-side .hook { opacity: 0; transition: opacity .15s; }
.hang.has-side.open .hook { opacity: 1; transition: opacity .2s .3s; }
/* a face that has already been shown leaves the other way, so the turn keeps going round */
.hang.has-side.open .face.side, .hang.has-side.open.flipped .face.front { transform: translateX(-50%) perspective(900px) rotateY(90deg); }
.hang.has-side .hang-tag { top: calc(var(--card) * .07); left: calc(50% + 8px); pointer-events: none; transition: opacity .3s, translate .28s cubic-bezier(.2, .7, .2, 1); }
.hang.garment .hang-tag { top: calc(var(--card) * .1); left: calc(50% + 10px); }
.hang.garment .hang-tag::before { height: calc(var(--card) * .06); }
.hang-tag { position: absolute; z-index: 1; top: calc(var(--card) * .16); left: calc(50% + 5px); padding: 2px 6px; border-radius: 3px; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow); color: var(--ink); font: 700 10px/14px var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; transform: rotate(7deg); transform-origin: 0 0; transition: opacity .3s; }
.hang-tag::before { content: ''; position: absolute; left: 5px; bottom: 100%; width: 1px; height: calc(var(--card) * .11); background: var(--stone); }
/* hovering lifts a piece off the rail towards you: it grows a little from its hook and comes in
   front of its neighbours. Scale and translate are their own properties, so they never fight
   the turn, which is a transform. */
@media (hover: hover) {
  .hang:hover { z-index: 2; }
  .hang:not(.open):hover .hang-piece { scale: 1.06; translate: 0 3px; }
  .hang:not(.open):hover .hang-tag { translate: 0 3px; }
}
.hang:focus-visible .hang-piece img { outline: 2px solid var(--brand); outline-offset: 3px; }
.hang.open { z-index: 2; width: calc(var(--card) + 40px); }
.hang.open .hang-piece { transform: perspective(1100px) rotateY(0deg); }
.hang.open .hang-tag { opacity: 0; }
/* going round the rail: the turned piece moves to its twin in an instant */
.rail-track.jump .hang, .rail-track.jump .hang *, .rail-track.jump .hang *::before { transition: none !important; }
.rail-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 32px; flex-wrap: wrap; padding: 4px var(--edge) 22px; }
.rail-now { min-width: 0; }
.rail-now b { display: block; font: 700 15px/22px var(--sans); }
.rail-note { display: flex; align-items: flex-start; gap: 6px; max-width: 340px; margin: 0 0 10px; font-size: 12px; line-height: 17px; color: var(--stone); }
.rail-note .icon { flex: none; font-size: 15px; line-height: 17px; }
.rail-now span { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.rail-actions { display: flex; gap: 8px; margin-top: 10px; }
.quick-media.garment { display: grid; place-items: center; background: var(--white); }
.quick-media.garment img { width: auto; height: auto; max-width: 100%; max-height: min(52vh, 520px); aspect-ratio: auto; object-fit: contain; padding: 28px 24px 56px; }
.rail-about { max-width: 380px; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.rail-about p { margin: 0; font: 600 14px/20px var(--sans); }
/* the rail as the home page hero: the headline, text and button sit at its foot */
.rail-hero .rail-about { max-width: 460px; gap: 10px; }
.rail-hero .rail-about h1 { font: 600 clamp(28px, 3.4vw, 42px)/1.1 var(--serif); letter-spacing: -.02em; }
.rail-hero .rail-about h1 i { font-style: normal; color: var(--brand); }
.rail-hero .rail-about p { font-weight: 500; color: var(--ink-soft); }
.rail-hero .rail-about .btn { margin-top: 4px; }
@media (max-width: 600px) { .rail-hero .rail-about { margin-left: 0; align-items: flex-start; text-align: left; } }
dialog.quick { width: min(820px, calc(100vw - 24px)); overflow: auto; }
.quick-body { display: grid; }
@media (min-width: 700px) { .quick-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.quick-media { position: relative; background: var(--s-high); }
.quick-media img { width: 100%; height: 100%; max-height: 44vh; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 700px) { .quick-media img { max-height: none; } }
.quick-sides { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); }
.quick-sides button { padding: 5px 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-soft); font: 700 11px/16px var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.quick-sides button[aria-pressed=true] { background: var(--ink); color: var(--bg); }
.quick-info { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px 24px; }
.quick-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quick-info h2 { font: 500 28px/34px var(--serif); letter-spacing: -.01em; }
.quick-info .price b { font-size: 18px; letter-spacing: 0; }
.quick-info .rp-color { margin: 0; }
.quick-info .opt-head { margin: 8px 0 -2px; }
.quick-info .rp-added { margin: 0; }
.quick-info > .link { align-self: flex-start; margin-top: auto; padding-top: 8px; }

/* shop listing */
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 20px; }
.shop-head h1 { margin-top: 6px; font-size: clamp(30px, 4vw, 40px); }
.shop-head h1 small { font: 600 12px/16px var(--sans); letter-spacing: .04em; color: var(--ink-soft); margin-left: 6px; vertical-align: middle; }
.shop-head .lede { margin: 6px 0 0; max-width: 560px; color: var(--ink-soft); }
.shop-head form { flex: 0 1 340px; }
.shop-grid { row-gap: 32px; }
@media (min-width: 900px) { .shop-grid { gap: 40px 20px; } }

/* product page */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs b { color: var(--ink); font-weight: 600; }
.product { display: grid; gap: 28px; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; } }
.gallery { position: relative; }
.gallery-main { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); background: var(--s-high); }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(4px); color: var(--ink); cursor: pointer; }
.slide-nav.prev { left: 12px; } .slide-nav.next { right: 12px; }
.slide-nav:disabled { opacity: .3; cursor: default; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
@media (min-width: 640px) { .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.thumbs button { padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--s-high); cursor: pointer; aspect-ratio: 4 / 5; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .15s, opacity .15s; opacity: .8; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover { opacity: 1; }
.thumbs button.active { outline-color: var(--brand); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .slides { scroll-behavior: auto; } * { transition: none !important; } }
.pinfo-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pinfo h1 { margin: 6px 0 8px; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; }
.pinfo .price b { font-size: 20px; letter-spacing: 0; }
.pinfo .price .old { font-size: 15px; }
.save { font: 700 11px/14px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.opt { margin-top: 24px; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font: 700 11px/14px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.opt-head b { color: var(--ink); }
.opt-head .n { font: 400 12px/16px var(--sans); letter-spacing: 0; text-transform: none; }
.options { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .15s, transform .15s; }
.swatch-btn:hover { transform: scale(1.06); }
.swatch-btn.selected { outline-color: var(--brand); }
.options.sizes { gap: 8px; }
.size-btn { flex: 1 1 56px; min-height: 44px; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--r); background: var(--s-mid); color: var(--ink); font: 600 13px/20px var(--sans); letter-spacing: .04em; cursor: pointer; transition: background-color .15s, color .15s; }
.size-btn:hover:not(:disabled) { background: var(--s-top); }
.size-btn.selected, .size-btn.selected:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.size-btn:disabled { opacity: .4; cursor: not-allowed; background: linear-gradient(to top right, transparent calc(50% - .5px), var(--stone) 50%, transparent calc(50% + .5px)), var(--s-mid); }
.find-size { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s-low); color: var(--ink); text-align: left; cursor: pointer; transition: background-color .15s, border-color .15s; }
.find-size:hover { background: var(--s-mid); border-color: var(--ink); }
.find-size > .icon:first-child { color: var(--brand); }
.find-size-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.find-size b { font: 700 14px/20px var(--sans); letter-spacing: .02em; }
.find-size small { font: 400 13px/18px var(--sans); color: var(--ink-soft); }

/* size advisor: a drawer from the right, a sheet from the bottom on phones */
dialog.advisor { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); height: 100dvh; max-height: none; border-radius: var(--r-xl) 0 0 var(--r-xl); overflow: hidden; }
dialog.advisor[open] { animation: adv-in .35s cubic-bezier(.22, .8, .2, 1); }
@keyframes adv-in { from { transform: translateX(40px); opacity: 0; } }
@media (max-width: 640px) {
  dialog.advisor { inset: auto 0 0 0; width: 100%; max-width: none; height: auto; max-height: 92dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  dialog.advisor[open] { animation-name: adv-up; }
  dialog.advisor .adv-shell { max-height: 92dvh; }
}
@keyframes adv-up { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { dialog.advisor[open] { animation: none; } }
.adv-shell { display: flex; flex-direction: column; height: 100%; }
.adv-head { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); }
.adv-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 24px 24px; }
.adv-foot { flex: none; display: grid; gap: 10px; padding: 16px 24px 18px; border-top: 1px solid var(--line); background: var(--bg); }
.adv-foot .btn { width: 100%; }
.adv-product { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-lg); background: var(--s-mid); }
.adv-product img { flex: none; width: 44px; height: 55px; object-fit: cover; border-radius: var(--r-sm); background: var(--s-high); }
.adv-product div { display: flex; flex-direction: column; min-width: 0; }
.adv-product b { font: 600 14px/20px var(--sans); }
.adv-product span { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.adv-progress { display: flex; gap: 6px; margin-top: 16px; }
.adv-progress i { flex: 1; height: 3px; border-radius: 2px; background: var(--s-top); transition: background-color .3s; }
.adv-progress i.on { background: var(--ink); }
.adv-label { min-height: 16px; margin: 8px 0 20px; font-size: 12px; line-height: 16px; color: var(--stone); }
.adv-body h2 { font: 600 26px/32px var(--serif); letter-spacing: -.01em; }
.adv-center { text-align: center; }
.adv-lede { margin: 4px 0 20px; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.adv-q { margin: 18px 0 8px; font: 700 13px/18px var(--sans); }
.adv-hint { margin: 12px 0 0; font-size: 13px; line-height: 19px; color: var(--ink-soft); }
.adv-fine { margin: 0; font-size: 12px; line-height: 17px; color: var(--stone); text-align: center; }
.adv-measure { display: flex; align-items: center; gap: 20px; }
.adv-figure { flex: none; width: 54px; height: 150px; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 100%; transform: scale(calc(.82 + var(--wide, .3) * .36), calc(.8 + var(--tall, .45) * .25)); transition: transform .2s ease-out; }
.adv-fields { flex: 1; min-width: 0; display: grid; gap: 22px; }
.adv-field-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink-soft); }
.unit { display: inline-flex; gap: 4px; }
.unit button { min-width: 38px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: none; color: var(--stone); font: 700 10px/14px var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.unit button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.adv-value { margin: 2px 0 6px; }
.adv-value b { font: 600 34px/40px var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.adv-value small { font-size: 13px; color: var(--ink-soft); }
.adv-slider { display: flex; align-items: center; gap: 10px; }
.adv-slider button { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font: 400 18px/1 var(--sans); cursor: pointer; }
.adv-slider button:hover { border-color: var(--ink); }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; }
input[type=range]:focus { background: none; }
input[type=range]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-sm); }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--ink) var(--fill, 50%), var(--s-top) var(--fill, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 12%, transparent); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--s-top); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--ink); }
.adv-live { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.adv-live div { display: flex; flex-direction: column; }
.adv-live b { font: 700 11px/16px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.adv-live span { font-size: 12px; line-height: 16px; color: var(--stone); }
.adv-live strong { font: 700 24px/28px var(--sans); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg button { min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink-soft); font: 500 13px/18px var(--sans); cursor: pointer; transition: border-color .15s, background-color .15s; }
.seg button:hover { border-color: var(--stone); }
.seg button[aria-pressed=true] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--s-mid); color: var(--ink); font-weight: 700; }
.adv-ring { width: 132px; height: 132px; margin: 16px auto; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 6px solid var(--ok); border-radius: 50%; }
.adv-ring b { font: 700 40px/44px var(--sans); letter-spacing: -.02em; }
.adv-ring span { font-size: 12px; line-height: 16px; color: var(--ink-soft); }
.adv-summary { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--s-mid); font-size: 14px; line-height: 20px; }
.adv-compare { margin: 22px 0 18px; text-align: center; color: var(--stone); }
.adv-chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.adv-chips .size-btn { position: relative; flex: 0 0 auto; min-width: 48px; background: var(--white); border-color: var(--line); }
.adv-chips .size-btn[aria-pressed=true], .adv-chips .size-btn[aria-pressed=true]:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.adv-chips .size-btn.gone { color: var(--stone); text-decoration: line-through; }
.adv-chips .size-btn.you::before { content: 'You'; position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translateX(-50%); font: 700 9px/12px var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ok); }
.adv-rows { display: grid; gap: 16px; margin: 20px 0 16px; }
.adv-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.adv-row-head b { font: 700 13px/18px var(--sans); }
.adv-row-head small { margin-left: 8px; font: 400 12px/18px var(--sans); color: var(--stone); font-variant-numeric: tabular-nums; }
.adv-verdict { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; text-align: right; }
.adv-verdict::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.adv-row.smaller .adv-verdict::before, .adv-row.bigger .adv-verdict::before { background: var(--stone); }
.adv-row.small .adv-verdict::before, .adv-row.big .adv-verdict::before { background: var(--bad); }
.adv-meter { position: relative; height: 4px; margin: 10px 0 6px; border-radius: 2px; background: linear-gradient(to right, color-mix(in srgb, var(--brand) 45%, #fff), var(--ok-soft) 38%, var(--ok-soft) 62%, #cdd6e0); }
.adv-meter i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--bg); transition: left .35s cubic-bezier(.22, .8, .2, 1); }
.adv-ends { display: flex; justify-content: space-between; font-size: 11px; line-height: 14px; color: var(--stone); }
.adv-chart { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.adv-chart summary { display: flex; align-items: baseline; gap: 8px; cursor: pointer; list-style: none; font: 700 13px/20px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.adv-chart summary::-webkit-details-marker { display: none; }
.adv-chart summary small { font: 400 12px/18px var(--sans); letter-spacing: 0; text-transform: none; color: var(--stone); }
.adv-chart summary .chev { margin-left: auto; align-self: center; transition: transform .2s; }
.adv-chart[open] summary .chev { transform: rotate(180deg); }
.adv-chart .table-wrap { margin-top: 12px; border-radius: var(--r); background: var(--white); }
.adv-chart img { margin-top: 12px; border-radius: var(--r); }
.adv-added { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0; font-size: 13px; line-height: 18px; color: var(--ok); }
.adv-links { display: flex; justify-content: center; gap: 8px 24px; flex-wrap: wrap; padding-top: 2px; }
.buy { display: flex; gap: 12px; margin-top: 24px; }
.buy .stepper { padding: 4px; }
.buy .stepper button { width: 40px; height: 42px; background: none; }
.buy .btn { flex: 1; }
.stock-note { min-height: 0; margin: 10px 0 0; font: 700 12px/16px var(--sans); letter-spacing: .04em; color: var(--brand); }
.stock-note:empty { display: none; }
.added { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--s-mid); font-size: 14px; }
.added .icon { color: var(--ok); }
.prose { margin-top: 28px; font-size: 15px; line-height: 26px; }
.bullets { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.bullets li { position: relative; padding-left: 16px; }
.bullets li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.spec th, .spec td { text-align: center; padding: 11px 12px; font-variant-numeric: tabular-nums; }
.spec th { background: var(--s-high); white-space: normal; }
.spec th:first-child, .spec td:first-child { text-align: left; padding-left: 16px; }
.spec td { font-size: 13px; }
.spec td:first-child { font-weight: 700; }
.spec tr.active td { color: var(--brand); font-weight: 700; background: var(--brand-soft); }
.rule-title { display: flex; align-items: center; gap: 16px; margin: 72px 0 20px; font: 700 11px/14px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.rule-title::before, .rule-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.rule-title i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* cart + checkout */
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.cart-head h1 { display: flex; align-items: center; gap: 14px; }
.cart-head h1 .badge { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; }
.two-col { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; } .two-col.wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .two-col.even { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two-col .sticky { position: sticky; top: 104px; } }
.two-col > * > .card:last-child { margin-bottom: 0; }
.ship-bar { padding: 20px 24px; margin-bottom: 20px; border-radius: var(--r-lg); background: var(--s-low); }
.ship-bar .top { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ship-bar .top .icon { color: var(--brand); }
.ship-bar .top b { font-weight: 700; }
.ship-bar .track { height: 4px; margin-top: 12px; border-radius: 4px; background: var(--s-top); overflow: hidden; }
.ship-bar .track i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--brand); transition: width .4s; }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px 20px; padding: 20px; margin-bottom: 12px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.cart-line .pic { width: 96px; aspect-ratio: 4 / 5; border-radius: var(--r-sm); background: var(--s-high); overflow: hidden; display: block; }
.cart-line .pic img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .name { display: block; font: 700 16px/22px var(--sans); text-decoration: none; }
.cart-line .name:hover { color: var(--brand); }
.cart-line .sub { font-size: 13px; line-height: 18px; color: var(--ink-soft); margin-top: 2px; }
.cart-line .issue { font-size: 13px; line-height: 18px; color: var(--bad); font-weight: 600; margin-top: 4px; }
.cart-line .issue:empty { display: none; }
.cart-line .controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; grid-column: 2 / -1; }
.cart-line .sum { text-align: right; }
.cart-line .sum b { display: block; font: 700 17px/22px var(--sans); letter-spacing: .04em; white-space: nowrap; }
.cart-line .sum span { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.cart-line.static { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 14px 0; margin: 0; border-radius: 0; background: none; box-shadow: none; align-items: center; }
.cart-line.static + .cart-line.static { border-top: 1px solid var(--line); }
.cart-line.static .pic { width: 64px; }
@media (max-width: 520px) { .cart-line { grid-template-columns: 72px minmax(0, 1fr); } .cart-line .pic { width: 72px; } .cart-line .sum { grid-column: 2; text-align: left; } .cart-line .controls { grid-column: 1 / -1; } }
.summary h2 { font: 700 16px/22px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.summary > p { margin: 2px 0 20px; font-size: 13px; color: var(--ink-soft); }
.promo { display: flex; gap: 8px; margin-top: 8px; }
.promo input { margin: 0; text-transform: uppercase; }
.promo .btn { flex: none; text-transform: uppercase; letter-spacing: .08em; }
.totals { margin-top: 16px; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 15px; }
.totals > div > span:first-child { color: var(--ink-soft); }
.totals > div > span:last-child { font-weight: 600; text-align: right; }
.totals .discount > span { color: var(--brand) !important; }
.totals .grand { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); align-items: baseline; }
.totals .grand > span:first-child { font: 700 16px/22px var(--sans); letter-spacing: .06em; color: var(--ink); }
.totals .grand > span:last-child { font: 600 24px/28px var(--serif); color: var(--brand); letter-spacing: 0; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font: 700 11px/14px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 8px; border: 1px solid transparent; border-radius: var(--r); background: var(--s-low); cursor: pointer; transition: border-color .15s, background-color .15s; }
.choice:hover { background: var(--s-mid); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--white); }
.choice > span { flex: 1; min-width: 0; }
.choice strong { display: block; font: 700 14px/20px var(--sans); }
.choice .acct { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.choice .acct code { padding: 3px 8px; border-radius: var(--r-sm); background: var(--s-high); font: 600 13px/18px var(--sans); letter-spacing: .04em; }
.choice .preview { max-height: 160px; }
.pay-now { padding: 18px; margin: 16px 0; border-radius: var(--r-lg); background: var(--s-mid); }
.pay-now .choice { background: var(--white); }
.pay-now label:last-child { margin-bottom: 0; }

/* order status page */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 24px 0; }
.steps span { position: relative; padding-top: 14px; font: 700 11px/14px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.steps span::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: var(--s-top); }
.steps span.done { color: var(--ink); }
.steps span.done::before { background: var(--brand); }
.kv { display: grid; gap: 10px; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.order-no { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: var(--r); background: var(--s-mid); font: 700 15px/20px var(--sans); letter-spacing: .08em; }

/* ------------------------------------------------------------ dashboard */
.admin-bar { position: sticky; top: 0; z-index: 40; background: var(--dark); color: var(--on-dark); }
.admin-bar-inner { display: flex; align-items: center; gap: 0 24px; flex-wrap: wrap; min-height: 64px; }
.admin-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 15px/20px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); white-space: nowrap; }
.admin-brand .mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--on-dark); color: var(--dark); font: 700 18px/1 var(--serif); overflow: hidden; }
.admin-brand .mark img { width: 100%; height: 100%; object-fit: cover; }
.admin-nav { display: flex; align-items: stretch; gap: 20px; flex: 1; min-width: 0; align-self: stretch; overflow-x: auto; scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a, .admin-tools a { display: flex; align-items: center; min-height: 64px; font: 600 12px/16px var(--sans); letter-spacing: .04em; color: #a39c92; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; border-top: 2px solid transparent; transition: color .15s; }
.admin-nav a:hover, .admin-tools a:hover { color: var(--on-dark); }
.admin-nav a.active { color: var(--on-dark); border-bottom-color: var(--brand-hover); }
.admin-tools { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.admin-tools .avatar { min-height: 0; width: 32px; height: 32px; justify-content: center; border: 0; border-radius: 50%; background: var(--brand); color: #fff; }
@media (max-width: 1180px) { .admin-nav { order: 3; flex: 1 0 100%; border-top: 1px solid #45453f; } .admin-nav a { min-height: 46px; } }
.admin-footer { background: var(--s-low); padding: 24px 0; }
.admin-footer .wrap { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; font: 700 11px/14px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { position: relative; display: block; padding: 20px 22px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; transition: box-shadow .2s; }
a.stat:hover { box-shadow: var(--shadow-float); }
.stat .ico { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r); background: var(--s-high); color: var(--ink-soft); }
.stat b { display: block; font: 600 46px/50px var(--serif); letter-spacing: -.02em; }
.stat b small { font: 700 14px/20px var(--sans); letter-spacing: .08em; color: var(--ink-soft); margin-left: 4px; }
.stat .t { display: block; margin-top: 8px; font: 700 15px/20px var(--sans); letter-spacing: .06em; }
.stat .d { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.stat.alert::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.stat.alert b { color: var(--brand); }
.stat.alert .ico { background: var(--brand-soft); color: var(--brand-ink); }
.stat .cap { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font: 700 11px/14px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.stat .meter { height: 4px; margin-top: 14px; border-radius: 4px; background: var(--s-top); overflow: hidden; }
.stat .meter i { display: block; height: 100%; border-radius: 4px; background: var(--ink-soft); }
.stat .foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.stat .foot b { font: 700 13px/18px var(--sans); letter-spacing: .04em; color: var(--ink); }
.stat.mini { padding: 14px 18px; background: var(--s-low); box-shadow: none; }
.stat.mini b { font: 700 20px/26px var(--sans); letter-spacing: 0; margin-top: 6px; }
.stat.mini .cap { margin: 0; }
.stat.mini.alert::before { display: none; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; }
.rows li + li { border-top: 1px solid var(--line); }
.rows a { text-decoration: none; }
.rows b { display: block; font: 700 15px/20px var(--sans); letter-spacing: .04em; }
.rows a:hover b { color: var(--brand); }
.rows span.sub { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.order-id { font: 700 14px/20px var(--sans); letter-spacing: .08em; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.amount small { font: 400 12px var(--sans); color: var(--ink-soft); }
.group-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.group-title .icon { color: var(--brand); }
.photos { display: flex; gap: 12px; flex-wrap: wrap; }
.photo-tile { width: 116px; margin: 0; font: 400 12px/16px var(--sans); letter-spacing: normal; text-transform: none; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.photo-tile img { width: 116px; height: 145px; object-fit: cover; border-radius: var(--r); background: var(--s-high); }
.photo-tile.add { justify-content: center; align-items: center; height: 145px; border: 1px dashed var(--stone); border-radius: var(--r); cursor: pointer; text-align: center; padding: 8px; }
.photo-tile.add:hover { border-color: var(--brand); color: var(--brand); }
.photo-tile.add .icon { font-size: 24px; }
.colour-block { padding: 18px 0; border-top: 1px solid var(--line); }
.colour-block .actions { margin-bottom: 12px; }
.colour-block .actions strong { font-size: 15px; letter-spacing: .04em; margin-right: 4px; }
.stock-table th, .stock-table td { text-align: center; }
.stock-table th:first-child, .stock-table td:first-child { text-align: left; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.stock-table input { width: 68px; margin: 0 auto; padding: 7px 6px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stock-table input::-webkit-outer-spin-button, .stock-table input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock-table input.zero { color: var(--bad); background: var(--bad-soft); border-color: var(--bad-soft); font-weight: 700; }
.proof { max-height: 440px; margin: 14px 0; border-radius: var(--r-lg); border: 1px solid var(--line); }
.proof-empty { display: grid; place-items: center; gap: 6px; padding: 32px; margin: 14px 0; border-radius: var(--r-lg); background: var(--s-high); color: var(--ink-soft); text-align: center; font-size: 13px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.size-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.size-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: var(--r); background: var(--s-mid); font: 700 13px/20px var(--sans); letter-spacing: .04em; }
.size-chip button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-soft); cursor: pointer; }
.size-chip button:hover { background: var(--white); color: var(--ink); }
.size-chip button.del:hover { color: var(--bad); }
.login { min-height: calc(100vh - 220px); display: grid; place-items: center; }
.login .card { width: min(440px, 100%); padding: 36px; margin: 0; }
.login h1 { margin: 8px 0 6px; }
.settings-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.settings-grid .card { margin: 0; scroll-margin-top: 90px; }
.settings-grid .card h2 { padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 18px; letter-spacing: .04em; }
.settings-grid .card form > .btn { margin-top: 8px; }

/* ------------------------------------------------------------ custom prints */
.flag.print { background: var(--brand-soft); color: var(--brand-ink); }
.print-box { margin-top: 24px; border-radius: var(--r-lg); background: var(--s-low); border: 1px solid transparent; transition: border-color .15s, background-color .15s; }
.print-box.on { border-color: var(--brand); background: var(--white); }
.print-toggle { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 18px; cursor: pointer; font: 400 14px/20px var(--sans); letter-spacing: normal; text-transform: none; color: var(--ink); }
.print-toggle .icon { color: var(--brand); }
.print-toggle-text { flex: 1; min-width: 0; }
.print-toggle-text b { display: block; font: 700 15px/20px var(--sans); letter-spacing: .04em; }
.print-toggle-text small { display: block; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.print-fee { font: 700 12px/16px var(--sans); letter-spacing: .06em; color: var(--brand); white-space: nowrap; }
.print-fields { padding: 0 18px 18px; }
.print-upload { display: flex; gap: 12px; align-items: stretch; }
.print-preview { width: 96px; height: 96px; object-fit: contain; border-radius: var(--r); background: var(--s-mid) repeating-conic-gradient(var(--s-top) 0 25%, transparent 0 50%) 0 0 / 16px 16px; flex: none; }
.print-drop { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 96px; margin: 0; padding: 12px; border: 1px dashed var(--stone); border-radius: var(--r); cursor: pointer; text-align: center; font: 600 14px/20px var(--sans); letter-spacing: normal; text-transform: none; color: var(--ink); transition: border-color .15s, color .15s; }
.print-drop:hover { border-color: var(--brand); color: var(--brand); }
.print-drop .icon { font-size: 24px; }
.print-drop small { font-size: 12px; font-weight: 400; color: var(--stone); }
.print-sides { display: flex; gap: 8px; }
.chip { flex: 1; margin: 0; cursor: pointer; font: 600 13px/20px var(--sans); letter-spacing: .04em; text-transform: none; color: var(--ink); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: block; padding: 10px; border-radius: var(--r); background: var(--s-mid); text-align: center; transition: background-color .15s, color .15s; }
.chip:hover span { background: var(--s-top); }
.chip input:checked + span { background: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.print-fields .help { margin-top: 10px; }
.print-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--brand-ink); }
.print-row img { width: 40px; height: 40px; object-fit: contain; border-radius: var(--r-sm); background: var(--s-mid); border: 1px solid var(--line); }
