/* Catalog — quiet luxury. White page, black ink, greys for buttons and lines, a touch of sapphire blue for the details
   (labels, rules, focus, bag count, size drawings). Serif headings, generous space. Mobile first. */
:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --tile: #f4f4f4;       /* behind photos */
  --wash: #f6f7f9;       /* quiet panels and mats */
  --ink: #111111;
  --ink-soft: #4a4a4a;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --grey: #5c5c5c;       /* buttons under the pointer */
  --blue: #1f3d7a;       /* decoration only, never a whole surface */
  --blue-soft: #e8edf6;
  --danger: #9a2f2f;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --header-h: 56px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* elements with their own display (e.g. .sum-row) must still hide */
.nowrap { white-space: nowrap; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 1px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue-soft); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 28px; border: 1px solid var(--ink); font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .25s, border-color .25s, color .25s, letter-spacing .35s, opacity .2s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }
.btn:active:not(:disabled) { background: #000; border-color: #000; color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
@media (hover: hover) {
  /* clearly visible: black turns grey, letters open up a little */
  .btn-dark:hover:not(:disabled) { background: var(--grey); border-color: var(--grey); letter-spacing: .2em; }
  .btn-outline:hover:not(:disabled) { background: var(--ink); color: #fff; letter-spacing: .2em; }
}
.btn-block { width: 100%; }
.text-link { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding-bottom: 3px; border-bottom: 1px solid currentColor; transition: color .2s; }
.text-link:hover { color: var(--blue); }
.link-btn { padding: 0; border: 0; background: none; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); padding: 0 calc(var(--gutter) - 12px); }
.header-left { display: flex; align-items: center; height: 100%; justify-self: start; }
.header-right { display: flex; align-items: center; justify-self: end; }
.brand { font-family: var(--serif); font-weight: 500; font-size: 19px; letter-spacing: .28em; text-transform: uppercase; padding-left: .28em; white-space: nowrap; }
.brand-has-logo { display: block; padding-left: 0; line-height: 0; }
.brand-logo { width: auto; height: 28px; max-width: 46vw; object-fit: contain; } /* uploaded in Admin → Settings */
.footer-brand .brand-logo { height: 34px; }
@media (min-width: 1024px) { .brand-logo { height: 36px; max-width: 340px; } }
.cart-count { position: absolute; top: 5px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.primary-nav { display: none; }

.search-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px var(--gutter); }
.site-header.search-open .search-panel { display: block; }
.search-form { display: flex; align-items: center; max-width: 720px; margin: 0 auto; border-bottom: 1px solid var(--ink); }
.search-form input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: none; font-family: var(--serif); font-size: 22px; outline: none; }
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; }

@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .brand { font-size: 25px; }
  .primary-nav { display: flex; height: 100%; gap: 34px; padding-left: 12px; }
  .nav-item { display: flex; align-items: center; height: 100%; }
  .nav-link { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; }
  .nav-link { transition: border-color .2s, color .2s; }
  .nav-item:hover .nav-link, .nav-item.is-open .nav-link, .nav-link:focus-visible { border-color: var(--blue); color: var(--blue); }
  .mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transition: opacity .2s ease .08s, visibility 0s linear .28s; }
  .nav-item.is-open .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transition-delay: 0s; }
  .mega-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 32px 40px; max-width: 1440px; margin: 0 auto; padding: 40px var(--gutter) 52px; }
  .mega-head { display: block; margin-bottom: 14px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
  .mega ul { list-style: none; margin: 0; padding: 0; }
  .mega li a { display: inline-block; padding: 4px 0; font-size: 14px; color: var(--ink-soft); }
  .mega li a:hover, .mega-head:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
  .mega-all { align-self: end; }
  .mega-designers { display: block; }
  .designer-list { columns: 5 150px; column-gap: 40px; }
  .designer-list li { break-inside: avoid; }
  .mega-foot { display: flex; align-items: baseline; gap: 24px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
  .mega-all a { font-family: var(--serif); font-size: 22px; border-bottom: 1px solid var(--ink); }
}
@media (min-width: 1024px) and (hover: hover) {
  .nav-item:hover .mega { opacity: 1; visibility: visible; transition-delay: .08s, 0s; }
}

/* ---------- drawers (menu, bag, filters) */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; transition: visibility 0s linear .35s; }
.drawer.is-open { visibility: visible; transition-delay: 0s; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .38); opacity: 0; transition: opacity .35s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; width: min(440px, 92vw); background: var(--bg); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.drawer-right .drawer-panel { right: 0; transform: translateX(100%); }
.drawer-left .drawer-panel { left: 0; transform: translateX(-100%); }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 8px 0 20px; border-bottom: 1px solid var(--line); flex: none; }
.drawer-title { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 20px; overscroll-behavior: contain; }
.drawer-foot { flex: none; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.drawer-foot .sum-row { margin-bottom: 14px; }

.drawer-nav { overflow-y: auto; padding: 8px 20px 32px; }
.drawer-nav details { border-bottom: 1px solid var(--line); }
.drawer-nav summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-family: var(--serif); font-size: 26px; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav summary::after { content: "+"; font-family: var(--sans); font-size: 18px; font-weight: 300; color: var(--muted); }
.drawer-nav details[open] > summary::after { content: "−"; }
.drawer-nav .drawer-sub { border: 0; border-top: 1px solid var(--line); }
.drawer-nav .drawer-sub summary { padding: 14px 0; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.drawer-nav .drawer-sub a { display: block; padding: 9px 0 9px 14px; font-size: 15px; color: var(--ink-soft); }
.drawer-nav .drawer-sub[open] { padding-bottom: 10px; }
.drawer-all { display: block; padding: 0 0 16px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
/* size guide: a popup in the middle of the screen; on phones a sheet from the bottom */
.drawer-modal .drawer-panel { top: 50%; bottom: auto; left: 50%; width: min(820px, calc(100vw - 48px)); max-height: min(88vh, 960px); box-shadow: 0 40px 100px -40px rgba(17, 17, 17, .45); opacity: 0; transform: translate(-50%, -46%); transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .25s; }
.drawer-modal.is-open .drawer-panel { opacity: 1; transform: translate(-50%, -50%); }
.drawer-modal .drawer-head { padding: 0 8px 0 24px; }
.drawer-modal .drawer-body { min-height: 0; padding: 4px 24px 32px; }
.size-guide-tools { display: flex; align-items: center; gap: 6px; }
.size-guide-body .size-table-wrap { margin: 0; padding: 0; }
@media (max-width: 767px) {
  .drawer-modal .drawer-panel { top: auto; bottom: 0; left: 0; width: 100%; max-height: 92vh; opacity: 1; transform: translateY(100%); }
  .drawer-modal.is-open .drawer-panel { transform: none; }
  .drawer-modal .drawer-head { padding-left: 16px; }
  .drawer-modal .drawer-body { padding: 4px 16px calc(28px + env(safe-area-inset-bottom)); }
}
.drawer-link { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 26px; }

/* ---------- home */
.intro { padding: 52px var(--gutter) 40px; text-align: center; }
.display { max-width: 15ch; margin: 14px auto 0; font-family: var(--serif); font-size: clamp(38px, 8vw, 84px); line-height: 1.02; letter-spacing: -.01em; }
.split { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; }
.split-media { aspect-ratio: 3 / 4; background: var(--tile); overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.split-panel:hover .split-media img { transform: scale(1.03); }
.split-caption { padding: 16px var(--gutter) 0; }
.split-caption h2 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-bottom: 8px; }
@media (min-width: 1024px) {
  .split { gap: 24px; padding: 0 var(--gutter); }
  .split-media { aspect-ratio: 4 / 5; }
  .split-caption { padding: 22px 0 0; }
  .split-caption h2 { font-size: 44px; }
}

.section { padding: 60px var(--gutter) 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-title { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.section-title::before { content: ""; display: block; width: 28px; height: 1px; margin-bottom: 14px; background: var(--blue); } /* the blue hairline above each heading */
@media (min-width: 1024px) { .section { padding-top: 96px; } .section-title { font-size: 42px; } .section-head { margin-bottom: 36px; } }

.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; }
.tiles::-webkit-scrollbar { display: none; }
.tile { scroll-snap-align: start; }
.tile-media { aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-label { display: block; margin-top: 12px; font-family: var(--serif); font-size: 21px; }
@media (min-width: 768px) { .tiles { grid-auto-columns: 30%; } }
@media (min-width: 1024px) { .tiles { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; overflow: visible; margin: 0; padding: 0; } }

/* ---------- product grid and cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 2px; margin: 0 calc(var(--gutter) * -1); }
.card-link { display: block; }
.card-media { position: relative; aspect-ratio: 1; background: var(--paper); overflow: hidden; } /* white: a tall photo's sides blend in (owner, 2026-10-16) */
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; } /* whole photo, never cut */
.card-alt { opacity: 0; transition: opacity .45s ease; }
.card-title { margin: 14px 12px 4px; font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin: 0 12px; font-size: 13px; color: var(--muted); }
.price-was { margin-left: 6px; color: var(--muted); font-size: .9em; }
.badge { position: absolute; top: 10px; left: 10px; padding: 5px 8px; background: var(--bg); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.badge-inline { position: static; margin-left: 10px; vertical-align: 2px; border: 1px solid var(--line); }
@media (hover: hover) { .card-media.has-alt:hover .card-alt { opacity: 1; } }
/* phones: swipe the photo sideways to the second one (site.js builds the track when the card comes into view) */
.card-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.card-track::-webkit-scrollbar { display: none; }
.card-media .card-track img { position: static; flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; scroll-snap-stop: always; }
.card-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.card-dots span { width: 14px; height: 2px; background: var(--ink); opacity: .15; transition: opacity .25s, background .25s; }
.card-dots span.is-on { opacity: 1; background: var(--blue); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 16px; margin: 0; } .card-title, .card-price { margin-left: 0; margin-right: 0; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 20px; } .card-title { margin-top: 16px; } }

/* ---------- listing */
.page { padding: 22px var(--gutter) 72px; }
.page-title { font-family: var(--serif); font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 10px 0 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-soft); }
.chips { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 6px; padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 0; border-bottom: 1px solid transparent; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.chip:hover, .chip.is-on { color: var(--ink); border-color: var(--ink); }
.toolbar { position: sticky; top: var(--header-h); z-index: 10; display: flex; align-items: center; justify-content: space-between; margin: 10px calc(var(--gutter) * -1) 22px; padding: 6px var(--gutter); background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.toolbar-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; border: 0; background: none; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.toolbar-btn .icon { width: 18px; height: 18px; }
.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 56px; }
.load-more-wrap .btn { min-width: 220px; }
.empty-state { padding: 56px 0; text-align: center; }
.empty-state p { margin-bottom: 24px; color: var(--ink-soft); }

.filters { flex: 1; overflow-y: auto; padding: 22px 20px 0; display: flex; flex-direction: column; }
.filters fieldset { margin: 0 0 26px; padding: 0; border: 0; }
.filters legend, .field > span { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.radio { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; cursor: pointer; }
.radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.price-range { display: flex; align-items: center; gap: 12px; }
.price-range label { flex: 1; }
.filters-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); background: var(--bg); }
.filters-actions .btn { padding: 0 12px; }

/* ---------- forms */
.field { display: block; margin-bottom: 18px; }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input, .field textarea, .field select, .price-range input { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); font-size: 16px; line-height: 1.4; -webkit-appearance: none; appearance: none; }
.field select { padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus, .price-range input:focus { border-color: var(--ink); outline: none; }
.field textarea { resize: vertical; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field-error { display: block; margin-top: 6px; font-size: 12px; color: var(--danger); }
.field-error:empty { display: none; }
.form-error { margin-top: 12px; font-size: 13px; color: var(--danger); }
.fine { margin-top: 14px; font-size: 12px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- product page */
.gallery { position: relative; }
.gallery-thumbs { display: none; }
.gallery-main { position: relative; }
/* First photo square; the others keep their own shape. site.js sets the track's height to the photo on show. */
.gallery-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; transition: height .35s ease; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; margin: 0; background: var(--tile); scroll-snap-align: start; }
.gallery-slide img { width: 100%; height: auto; }
.gallery-slide:first-child img, .gallery-empty { aspect-ratio: 1; object-fit: contain; background: var(--paper); } /* whole, on white like the cards */
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: .22; transition: opacity .2s; }
.gallery-dots span.is-on { opacity: .85; }
.gallery-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: rgba(255, 255, 255, .9); cursor: pointer; opacity: 0; transition: opacity .2s; }
.gallery-arrow.prev { left: 14px; }
.gallery-arrow.next { right: 14px; }
.gallery-main:hover .gallery-arrow, .gallery-arrow:focus-visible { opacity: 1; }

.pdp-info { padding: 22px var(--gutter) 0; }
.pdp-title { margin: 12px 0 10px; font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: .04em; text-transform: uppercase; }
.pdp-price { font-size: 15px; color: var(--ink-soft); }
.buy { margin-top: 28px; }
.opt { margin: 0 0 22px; padding: 0; border: 0; }
.opt legend, .opt-static span, .qty-row label { margin-bottom: 12px; padding: 0; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.opt-value { margin-left: 6px; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--muted); font-size: 13px; }
.opt-static { margin-bottom: 22px; font-size: 14px; }
.opt-static span { margin-right: 8px; }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btn { position: relative; cursor: pointer; }
.opt-btn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-btn span { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 46px; padding: 0 14px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; transition: border-color .15s, background .15s, color .15s; }
.opt-btn:hover span { border-color: var(--ink); }
.opt-btn input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt-btn input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }
.opt-btn input:disabled + span { opacity: .45; cursor: not-allowed; }
.opt-error { margin-top: 10px; font-size: 12px; color: var(--danger); }

/* cm / inches switch (size tables, height and weight) */
.unit-switch { display: inline-flex; border: 1px solid var(--line); background: var(--paper); }
.unit-switch button { min-width: 52px; height: 34px; padding: 0 12px; border: 0; background: none; font: 500 12px/1 var(--sans); letter-spacing: .06em; color: var(--ink-soft); cursor: pointer; }
.unit-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* height and weight (clothes): product page and checkout */
.body-fit { margin: 0 0 22px; padding: 0; border: 0; }
.body-fit legend { margin-bottom: 12px; padding: 0; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.body-why { font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--muted); font-size: 13px; }
.body-fit .unit-switch { margin-bottom: 12px; }
.body-row { display: flex; flex-wrap: wrap; gap: 10px; }
.body-field { flex: 1 1 96px; display: block; font-size: 12px; color: var(--ink-soft); }
.body-field > span:first-child { display: block; min-height: 1.4em; margin-bottom: 6px; }
.body-input { display: flex; align-items: center; border: 1px solid var(--line); background: var(--paper); }
.body-input:focus-within { border-color: var(--ink); }
.body-input input { width: 100%; min-width: 0; padding: 11px 12px; border: 0; background: none; font-size: 16px; -moz-appearance: textfield; }
.body-input input::-webkit-outer-spin-button, .body-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.body-input input:focus { outline: none; }
.body-input em { padding-right: 12px; font-style: normal; color: var(--muted); font-size: 13px; }
.co-body { margin-top: 6px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.qty-row label { margin: 0; }
.buy-note { min-height: 20px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.pdp-more { border-top: 1px solid var(--line); }
.pdp-more:last-of-type { border-bottom: 1px solid var(--line); }
.pdp-more summary { list-style: none; display: flex; justify-content: space-between; padding: 18px 0; cursor: pointer; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.pdp-more summary::-webkit-details-marker { display: none; }
.pdp-id { margin: 14px 0 18px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pdp-id span { margin-left: 6px; color: var(--ink, inherit); letter-spacing: .08em; }
.pdp-more summary::after { content: "+"; font-size: 16px; font-weight: 300; line-height: 1; }
.pdp-more[open] summary::after { content: "−"; }
.pdp-more dl, .pdp-more p { margin: 0 0 20px; font-size: 14px; color: var(--ink-soft); }
.pdp-more dl div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.pdp-more dt { color: var(--muted); }
.pdp-more dd { margin: 0; text-align: right; }
.pdp-more a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr); gap: 64px; align-items: start; padding: 28px var(--gutter) 0; }
  .gallery.has-thumbs { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; }
  .gallery-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 80vh; overflow-y: auto; scrollbar-width: none; }
  .gallery-thumb { flex: none; aspect-ratio: 4 / 5; padding: 0; border: 1px solid transparent; background: var(--tile); opacity: .55; cursor: pointer; transition: opacity .2s, border-color .2s; }
  .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .gallery-thumb:hover, .gallery-thumb.is-on { opacity: 1; }
  .gallery-thumb.is-on { border-color: var(--ink); }
  .gallery-arrow { display: flex; }
  .gallery-dots { display: none; }
  .pdp-info { position: sticky; top: calc(var(--header-h) + 32px); max-width: 440px; padding: 0; }
  .pdp-title { font-size: 34px; }
}

/* ---------- Add to bag bar: slides up while the form's own button is off screen (site.js) */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); border-top: 1px solid var(--line); box-shadow: 0 -12px 32px -20px rgba(17, 17, 17, .3); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); transform: translateY(110%); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.buy-bar.is-on { transform: none; }
.buy-bar-inner { display: flex; align-items: center; gap: 14px; max-width: 1340px; margin: 0 auto; }
.buy-bar-img { display: none; flex: none; width: 52px; height: 52px; object-fit: contain; background: var(--paper); }
.buy-bar-info { display: grid; gap: 3px; flex: 1; min-width: 0; }
.buy-bar-title { overflow: hidden; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.buy-bar-meta { font-size: 13px; color: var(--ink-soft); }
.buy-bar-meta [data-buy-bar-size] { color: var(--blue); }
.buy-bar .btn { flex: none; min-height: 46px; padding: 0 22px; }
body.has-buy-bar { padding-bottom: 72px; } /* the end of the page stays readable above the bar */
@media (min-width: 768px) {
  .buy-bar-img { display: block; }
  .buy-bar .btn { min-width: 280px; }
  body.has-buy-bar { padding-bottom: 76px; }
}

/* ---------- steppers */
.stepper { display: inline-flex; align-items: center; height: 46px; border: 1px solid var(--line); background: var(--paper); }
.stepper button { width: 44px; height: 100%; padding: 0; border: 0; background: none; font-size: 18px; cursor: pointer; }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper input { width: 40px; height: 100%; padding: 0; border: 0; background: none; text-align: center; font-size: 15px; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-sm { height: 34px; }
.stepper-sm button { width: 32px; font-size: 15px; }
.stepper-val { min-width: 26px; text-align: center; font-size: 13px; }

/* ---------- bag lines (drawer and bag page) */
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line-img { display: block; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-title { display: block; font-size: 12px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; }
.line-meta { margin-top: 4px; font-size: 12px; color: var(--muted); }
.line-warn { margin-top: 6px; font-size: 12px; color: var(--danger); }
.line-actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.line-price { font-size: 14px; white-space: nowrap; }
.line-error .line-img, .line-error .line-title { opacity: .5; }
.empty-bag { padding: 48px 0; text-align: center; }
.empty-bag p { margin-bottom: 22px; color: var(--ink-soft); }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14px; }
.sum-total { margin: 8px 0 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; }

.cart-layout { display: grid; gap: 36px; }
.cart-page .line { grid-template-columns: 110px minmax(0, 1fr) auto; }
.cart-summary { padding: 24px 20px; background: var(--paper); border: 1px solid var(--line); }
.summary-title { margin-bottom: 14px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
@media (min-width: 1024px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: start; }
  .cart-page .line { grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; }
  .cart-summary { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; }
}

/* ---------- footer */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--wash); }
.footer-inner { display: grid; gap: 34px; padding: 48px var(--gutter) 32px; }
.footer-brand p { margin-top: 12px; max-width: 32ch; font-family: var(--serif); font-size: 19px; color: var(--ink-soft); }
.footer-brand .brand { padding-left: 0; }
.footer-col h2 { margin-bottom: 14px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.footer-col a { display: block; padding: 3px 0; font-size: 14px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--blue); }
.footer-legal { padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; padding-top: 64px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.drawer-nav .drawer-sub-open { padding-bottom: 10px; }

/* ---------- product page: description, size guide, model photos */
.pdp-story { display: grid; gap: 40px; padding: 56px var(--gutter) 0; }
.pdp-story-text { max-width: 640px; min-width: 0; } /* a wide size table scrolls inside instead of widening the page */
.story-title { margin: 0 0 14px; font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.story-title + .story-body { margin-bottom: 36px; }
.story-body p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.story-body ul { margin: 0 0 12px; padding: 0; list-style: none; }
.story-body li { position: relative; padding: 7px 0 7px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.story-body li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 5px; height: 1px; background: var(--ink); }
.size-guide-link { display: inline-block; margin-top: 12px; padding: 0; border: 0; background: none; font-size: 12px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color .2s; }
.size-guide-link:hover { color: var(--blue); }
.pdp-price + .size-guide-link { margin: 6px 0 0; }
.size-title { margin: 18px 0 8px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.size-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.size-table-wrap { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.size-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.size-table thead th { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); border-bottom-color: var(--ink); }
.size-table tbody th { font-weight: 500; text-align: left; }
.size-chart-img { width: 100%; max-width: 520px; margin-bottom: 12px; }
.pdp-looks { display: grid; gap: 6px; margin: 0 calc(var(--gutter) * -1); }
.pdp-looks img { width: 100%; height: auto; background: var(--tile); }
@media (min-width: 1024px) {
  .pdp-story { padding-top: 96px; }
  .pdp-story.has-looks { grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .pdp-story.has-looks .pdp-story-text { position: sticky; top: calc(var(--header-h) + 32px); }
  .pdp-story:not(.has-looks) .pdp-story-text { margin: 0 auto; }
  .pdp-looks { margin: 0; gap: 12px; }
  .size-table-wrap { margin: 0; padding: 0; }
}

/* members-only (email lock) panel */
.unlock { margin: 20px 0; padding: 20px; background: var(--paper); border: 1px solid var(--line); }
.unlock-title { margin: 0 0 6px; font: 500 22px/1.2 var(--serif); }
.unlock-text { margin: 0 0 14px; color: var(--ink-soft); }
.unlock-row { display: flex; gap: 8px; }
.unlock-row input { flex: 1; min-width: 0; padding: 12px; border: 1px solid var(--line); background: var(--bg); font: inherit; }
.unlock-error { margin: 8px 0 0; color: var(--danger); }

/* ---------- checkout */
.back-link { margin-top: 4px; }
.is-disabled { opacity: .4; pointer-events: none; }
.co-layout { display: grid; gap: 28px; }
.co-main { min-width: 0; }
.co-section { min-width: 0; margin: 0 0 32px; padding: 0; border: 0; }
.co-legend { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.co-step { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--sans); font-size: 12px; }
.co-grid { display: grid; gap: 0 16px; }
@media (min-width: 640px) {
  .co-grid { grid-template-columns: 1fr 1fr; }
  .co-grid-3 { grid-template-columns: 1.6fr 1.4fr 1fr; }
}
.co-notice { padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); }
.pay-options { display: grid; gap: 12px; }
.pay-option { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pay-option:hover { border-color: var(--ink-soft); }
.pay-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-option input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.pay-option-body { display: grid; gap: 8px; }
.pay-option strong { font-size: 15px; font-weight: 500; }
.pay-note { font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.pay-coins { display: flex; flex-wrap: wrap; gap: 6px; }
.coin-badge { padding: 4px 8px; border: 1px solid var(--line); background: var(--bg); font-size: 12px; }
.coin-badge small { color: var(--muted); font-size: 11px; }
.co-summary { order: -1; min-width: 0; }
.co-summary-toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 16px 18px; border: 1px solid var(--line); background: var(--paper); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.co-summary-toggle::after { content: '+'; font-size: 18px; font-weight: 400; }
.co-summary-open .co-summary-toggle::after { content: '−'; }
.co-toggle-total { margin-left: auto; letter-spacing: 0; text-transform: none; font-size: 15px; }
.co-summary-body { display: none; padding: 20px 18px; border: 1px solid var(--line); border-top: 0; background: var(--paper); }
.co-summary-open .co-summary-body { display: block; }
.co-lines { list-style: none; margin: 0 0 14px; padding: 0; }
.co-line { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; }
.co-line-img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--tile); }
.co-line-img img { width: 100%; height: 100%; object-fit: cover; }
.co-line-qty { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; line-height: 20px; text-align: center; }
.co-line-info { display: grid; gap: 2px; font-size: 13px; line-height: 1.4; }
.co-line-title { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.co-line-meta { font-size: 12px; color: var(--muted); }
.co-line-price { font-size: 13px; white-space: nowrap; }
.co-coupon { padding: 14px 0; border-top: 1px solid var(--line); }
.co-coupon-row { display: flex; gap: 8px; }
.co-coupon-row input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--bg); font-size: 16px; text-transform: uppercase; }
.co-coupon-row input:focus { border-color: var(--ink); outline: none; }
.co-coupon-row input::placeholder { text-transform: none; }
.co-coupon-row .btn { min-height: 48px; padding: 0 18px; }
.co-coupon-ok { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.co-offers { display: grid; gap: 8px; padding-bottom: 14px; }
.co-offers-title { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.co-offer { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px dashed var(--line); background: none; font-size: 13px; text-align: left; cursor: pointer; }
.co-offer strong { font-weight: 500; letter-spacing: .06em; }
.co-offer span { color: var(--ink-soft); }
.co-offer:hover, .co-offer.is-on { border-style: solid; border-color: var(--ink); }
.co-totals { padding-top: 10px; border-top: 1px solid var(--line); }
.co-place { margin: -8px 0 32px; }
.co-place-total { margin-bottom: 14px; font-size: 16px; }
.co-discount { color: var(--ink-soft); }
.co-discount em, .order-totals em { font-style: normal; letter-spacing: .06em; }
.co-trust { display: grid; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.co-trust a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 1024px) {
  .co-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: start; }
  .co-summary { order: 2; position: sticky; top: calc(var(--header-h) + 24px); }
  .co-summary-toggle { display: none; }
  .co-summary-body { display: block; padding: 28px; border-top: 1px solid var(--line); }
  .co-place-total { display: none; } /* the summary beside it shows the total */
}

/* ---------- order page (confirmation, status, tracking) */
.order-lead { max-width: 60ch; margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.order-tracking { margin: 0 0 20px; font-size: 15px; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 30px 0 44px; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; align-content: start; gap: 4px; padding: 22px 8px 0 0; font-size: 12px; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--line); }
.timeline-dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); }
.timeline .is-done { color: var(--ink); }
.timeline .is-done::before { background: var(--ink); }
.timeline .is-done .timeline-dot { border-color: var(--ink); background: var(--ink); }
.timeline-label { font-weight: 500; letter-spacing: .03em; }
.order-cols { display: grid; gap: 36px; }
.order-side p { margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.order-side a { text-decoration: underline; text-underline-offset: 2px; }
.order-totals { margin-top: 10px; }
@media (min-width: 1024px) { .order-cols { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; } }

/* ---------- crypto payment screen */
.pay-total { margin: 0 0 28px; font-size: 16px; color: var(--ink-soft); }
.pay-total strong { margin-left: 6px; font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--ink); }
.pay-layout { display: grid; gap: 36px; }
.pay-main { min-width: 0; }
.pay-h { margin: 0 0 16px; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.1; }
.pay-coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pay-coin { display: grid; gap: 4px; padding: 18px 16px; border: 1px solid var(--line); background: var(--paper); text-align: left; cursor: pointer; transition: border-color .15s; }
.pay-coin strong { font-size: 16px; font-weight: 500; }
.pay-coin span { font-size: 12px; color: var(--muted); }
.pay-coin:hover, .pay-coin.is-busy { border-color: var(--ink); }
.pay-coin:disabled { cursor: progress; }
.pay-expired { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); font-size: 14px; }
.pay-panel { padding: 22px; border: 1px solid var(--line); background: var(--paper); }
.pay-status { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pay-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #c8a24a; animation: pay-pulse 1.6s ease-in-out infinite; }
.pay-status.is-confirming .pay-dot, .pay-status.is-confirmed .pay-dot, .pay-status.is-sending .pay-dot { background: #4a7bc8; }
.pay-status.is-finished .pay-dot { background: #2f6b45; animation: none; }
.pay-status.is-partially_paid { color: var(--danger); }
.pay-status.is-partially_paid .pay-dot { background: var(--danger); }
@keyframes pay-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pay-dot { animation: none; } }
.pay-timer { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.pay-grid { display: grid; gap: 22px; }
.pay-qr { justify-self: center; width: 200px; padding: 10px; background: #fff; border: 1px solid var(--line); }
.pay-qr svg { display: block; width: 100%; height: auto; }
.pay-fields { display: grid; gap: 18px; min-width: 0; }
.pay-label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.pay-value { display: flex; align-items: flex-start; gap: 10px; }
.pay-amount { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pay-address { flex: 1; min-width: 0; padding: 10px 12px; background: var(--bg); font: 14px/1.5 ui-monospace, Consolas, monospace; word-break: break-all; }
.pay-copy { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); background: none; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.pay-copy:hover { background: var(--ink); color: #fff; }
.pay-warning { margin: 22px 0 14px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.pay-done { padding: 32px 24px; border: 1px solid var(--line); background: var(--paper); }
.pay-done p { margin: 0 0 20px; color: var(--ink-soft); }
.pay-side .fine a { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 640px) { .pay-grid { grid-template-columns: 200px minmax(0, 1fr); align-items: start; } }
@media (min-width: 1024px) {
  .pay-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; }
  .pay-panel { padding: 32px; }
}

/* ---------- order tracking */
.track-form { max-width: 440px; margin-top: 8px; }
.track-form .form-error { margin: 0 0 18px; }

/* ---------- reviews and Shorts (reviews.php, video.php, homepage rows) */
.content-head { display: grid; gap: 14px; margin: 14px 0 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.content-head .page-title { margin: 0; font-size: clamp(48px, 10vw, 112px); line-height: .9; letter-spacing: -.015em; }
.content-side { display: grid; gap: 14px; }
.content-lead { max-width: 44ch; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.content-count { display: flex; align-items: baseline; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.content-count strong { font: 500 30px/1 var(--serif); letter-spacing: 0; color: var(--blue); }
@media (min-width: 1024px) {
  .content-head { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: end; column-gap: 64px; margin: 30px 0 56px; padding-bottom: 48px; }
  .content-side { grid-column: 2; grid-row: 1 / span 2; }
}

/* the wall: photos on soft mats; site.js deals them into columns left to right, in the set order (CSS columns without it) */
.review-wall { --cols: 2; --gap: 10px; columns: var(--cols); column-gap: var(--gap); }
.review-wall.is-masonry { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); align-items: start; columns: auto; }
.review-col { display: grid; gap: var(--gap); }
.review { break-inside: avoid; margin: 0 0 var(--gap); }
.review-wall.is-masonry .review { margin: 0; }
.review-open { display: block; width: 100%; padding: 8px; border: 0; background: var(--wash); cursor: zoom-in; transition: background .4s; }
.review-open img { width: 100%; height: auto; box-shadow: 0 1px 2px rgba(17, 17, 17, .06); transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s; }
.review figcaption { padding: 10px 2px 2px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.review figcaption a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) {
  .review-open:hover { background: var(--blue-soft); }
  .review-open:hover img { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(31, 61, 122, .5); }
}
@media (min-width: 768px) { .review-wall { --cols: 3; --gap: 18px; } .review-open { padding: 10px; } }
@media (min-width: 1200px) { .review-wall { --cols: 4; --gap: 24px; } }

/* Shorts: tall dark cards, number top left, play bottom left */
.shorts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.short { position: relative; display: block; aspect-ratio: 9 / 16; padding: 0; border: 0; overflow: hidden; background: #0d0d0d; color: #fff; text-align: left; cursor: pointer; }
.short img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.short::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .6) 100%); pointer-events: none; }
.short-index { position: absolute; top: 14px; left: 14px; z-index: 1; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.short-index::after { content: ""; width: 18px; height: 1px; background: #9db5ea; }
.short-play { position: absolute; left: 14px; bottom: 14px; z-index: 1; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%; transition: background .3s, border-color .3s; }
.short-play::after { content: ""; position: absolute; left: 16px; top: 13.5px; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; transition: border-color .3s; }
.short-title { position: absolute; left: 68px; right: 14px; bottom: 18px; z-index: 1; font-size: 11px; font-weight: 500; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
@media (hover: hover) {
  .short:hover img { transform: scale(1.05); }
  .short:hover .short-play { background: #fff; border-color: #fff; }
  .short:hover .short-play::after { border-left-color: var(--ink); }
}
@media (min-width: 768px) { .shorts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { .shorts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .shorts-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; } }
.shorts-row { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.shorts-row::-webkit-scrollbar { display: none; }
.shorts-row .short { scroll-snap-align: start; }
@media (min-width: 768px) { .shorts-row { grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px; margin: 0; padding: 0; } }
.reviews-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.reviews-strip::-webkit-scrollbar { display: none; }
.reviews-strip a { display: block; aspect-ratio: 3 / 4; padding: 8px; background: var(--wash); scroll-snap-align: start; transition: background .4s; }
.reviews-strip img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.reviews-strip a:hover { background: var(--blue-soft); }
@media (min-width: 768px) { .reviews-strip { grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px; margin: 0; padding: 0; } }

/* viewer: Shorts on black, reviews on white (viewer-light) */
.viewer { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(10, 10, 10, .96); color: #fff; animation: viewer-in .3s ease both; }
.viewer-light { background: rgba(255, 255, 255, .985); color: var(--ink); }
@keyframes viewer-in { from { opacity: 0; } }
.viewer-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 72px 12px 40px; overflow: auto; }
.viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; animation: viewer-img-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.viewer-light .viewer-img { box-shadow: 0 40px 90px -40px rgba(31, 61, 122, .45); }
@keyframes viewer-img-in { from { opacity: 0; transform: translateY(10px); } }
.viewer-stage.is-zoomed { display: block; padding: 0; }
.viewer-stage.is-zoomed .viewer-img { max-width: none; max-height: none; width: 100%; min-width: 900px; cursor: zoom-out; animation: none; box-shadow: none; }
.viewer-video { display: flex; flex-direction: column; align-items: center; gap: 16px; height: 100%; width: 100%; }
.viewer-video iframe { flex: 1 1 auto; width: min(100%, calc((100vh - 170px) * 9 / 16)); max-height: calc(100vh - 170px); aspect-ratio: 9 / 16; border: 0; background: #000; }
.viewer-product { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #fff; border-bottom: 1px solid #9db5ea; padding-bottom: 3px; }
.viewer-close, .viewer-nav { position: absolute; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: none; color: inherit; cursor: pointer; opacity: .75; transition: opacity .2s, background .2s, color .2s, border-color .2s; }
.viewer-nav::before { content: ""; width: 10px; height: 10px; border-left: 1.25px solid currentColor; border-bottom: 1.25px solid currentColor; }
.viewer-prev::before { transform: translateX(2px) rotate(45deg); }
.viewer-next::before { transform: translateX(-2px) rotate(-135deg); }
.viewer-close::before, .viewer-close::after { content: ""; position: absolute; width: 16px; height: 1.25px; background: currentColor; transform: rotate(45deg); }
.viewer-close::after { transform: rotate(-45deg); }
.viewer-close { top: 14px; right: 14px; }
.viewer-prev { left: 14px; top: 50%; margin-top: -23px; }
.viewer-next { right: 14px; top: 50%; margin-top: -23px; }
.viewer-count { position: absolute; top: 30px; left: 22px; font-size: 11px; font-weight: 500; letter-spacing: .2em; font-variant-numeric: tabular-nums; opacity: .8; }
.viewer-light .viewer-count { color: var(--blue); opacity: 1; }
@media (hover: hover) {
  .viewer-close:hover, .viewer-nav:hover { opacity: 1; background: #fff; border-color: #fff; color: var(--ink); }
  .viewer-light .viewer-close:hover, .viewer-light .viewer-nav:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
}
@media (max-width: 767px) {
  .viewer-nav { top: auto; bottom: 18px; margin: 0; }
  .viewer-prev { left: calc(50% - 56px); }
  .viewer-next { right: calc(50% - 56px); }
  .viewer-stage { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .viewer, .viewer-img { animation: none; } }

/* ---------- size guide: how to measure (clothes) */
.measure { margin-top: 34px; }
.measure-body { display: grid; gap: 20px; align-items: center; }
.measure-art { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; padding: 16px; background: var(--wash); overflow: visible; }
.measure-piece path:first-child { fill: #fff; stroke: var(--ink); stroke-width: 1.25; stroke-linejoin: round; }
.measure-piece path + path { fill: none; stroke: var(--muted); stroke-width: 1; stroke-linecap: round; }
.measure-line { fill: var(--blue); stroke: var(--blue); stroke-width: 1.5; transition: opacity .25s; }
.measure-line line { fill: none; }
.measure-dot { fill: #fff; stroke-width: 1.25; transition: fill .25s; }
.measure-line text { fill: var(--blue); stroke: none; font: 500 11px var(--sans); text-anchor: middle; transition: fill .25s; }
.measure[data-active] .measure-line { opacity: .2; }
.measure[data-active] .measure-line.is-on { opacity: 1; }
.measure-line.is-on .measure-dot { fill: var(--blue); }
.measure-line.is-on text { fill: #fff; }
.measure-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.measure-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; font-size: 13px; line-height: 1.55; color: var(--ink-soft); cursor: default; }
.measure-list strong { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.measure-key { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--blue); border-radius: 50%; font-size: 11px; font-weight: 500; color: var(--blue); transition: background .25s, color .25s; }
.measure-list li.is-on .measure-key { background: var(--blue); color: #fff; }
.size-table [data-key]::before { content: attr(data-key); display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border: 1px solid var(--blue); border-radius: 50%; font-size: 10px; font-weight: 500; letter-spacing: 0; color: var(--blue); vertical-align: 1px; }
.size-table .is-on { background: var(--blue-soft); }
@media (hover: hover) { .size-table tbody tr:hover > * { background: var(--blue-soft); } }
@media (min-width: 640px) { .measure-body { grid-template-columns: 250px minmax(0, 1fr); gap: 30px; } .measure-art { margin: 0; } }

/* ---------- footer: Instagram and WhatsApp */
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.social-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border: 1px solid var(--line); background: var(--paper); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; transition: border-color .2s, color .2s; }
.social-btn .icon { width: 18px; height: 18px; }
.social-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- designers: menu, page and filter; members-only ones greyed for visitors who have not entered their email */
.is-locked { opacity: .4; }
.is-locked:hover { opacity: .7; }
.designer-note { font-size: 12px; color: var(--muted); }
.drawer-designers { columns: 2; column-gap: 16px; }
.drawer-nav .drawer-designers a { padding-left: 0; break-inside: avoid; }
.designer-pick { max-height: 260px; overflow-y: auto; padding-right: 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.designer-index { columns: 2; column-gap: 24px; }
.designer-letter { break-inside: avoid; margin: 0 0 30px; }
.designer-letter h2 { margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font: 500 22px/1 var(--serif); color: var(--blue); }
.designer-letter ul { margin: 0; padding: 0; list-style: none; }
.designer-letter a { display: inline-block; padding: 5px 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.designer-letter a:not(.is-locked):hover { color: var(--blue); }
@media (min-width: 768px) { .designer-index { columns: 3; column-gap: 40px; } }
@media (min-width: 1200px) { .designer-index { columns: 5; } }

/* ---------- members-only: after entering an email not approved yet, "contact us on WhatsApp" */
.welcome .drawer-panel { width: min(460px, calc(100vw - 48px)); }
.welcome-body { padding: 8px 28px 30px; text-align: center; }
.welcome-title { margin: 14px 0 12px; font: 400 34px/1.1 var(--serif); }
.welcome-body p { color: var(--ink-soft); line-height: 1.7; }
.welcome-body .btn { margin-top: 24px; }
.welcome-body .btn .icon { width: 18px; height: 18px; }
.welcome-body .link-btn { margin-top: 14px; }
@media (max-width: 767px) { .welcome .drawer-panel { width: 100%; } }

/* ---------- the owner sees the shop as a visitor (admin/preview.php) */
.preview-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding: 9px var(--gutter); background: var(--blue); color: #fff; font-size: 12px; letter-spacing: .04em; text-align: center; }
.preview-bar a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
