:root {
  --ink: #000000;
  --paper: #ffffff;
  --card: #e9e9e9;
  --card-alt: #ededed;
  --line: #dadada;
  --muted: #6b6b6b;
  --overlay: rgba(0, 0, 0, 0.35);
  --badge: #9e9e9e;
  --on-dark: #ffffff;
  --brand-red: #fc2c1f;

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  /* Unbounded has Cyrillic (incl. Ө, Ү), so Mongolian headings keep the display face. */
  --font-display: "Unbounded", "Inter", Arial, sans-serif;

  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-transform: uppercase;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-transform: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
/* Transparent over the first image hero until the page scrolls */
.site-header { transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease); }
.site-header.over-hero:not(.is-scrolled):not(.menu-open) { background: transparent; color: var(--on-dark); }
.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
}
@media (max-width: 1180px) { .header-left .search-open--mobile { display: grid; } .nav-right .search-open--desktop { display: none; } }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-word {
  font-family: "Cloister Black", "UnifrakturCook", serif;
  font-weight: normal;
  font-size: 26px; line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
}
.nav-right { display: flex; justify-content: flex-end; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; position: relative; }
.header-left { display: flex; align-items: center; gap: 20px; }
.search-open--mobile { display: none; }
.menu-toggle { margin-left: -8px; }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--brand-red); color: var(--on-dark);
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.cart-count.bump { animation: bump 0.35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }
/* ---------- Nav drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  display: flex;
  transform: translateX(-100%);
  transition: transform 0.45s var(--ease);
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
body.drawer-open .nav-drawer { transform: none; }

.drawer-panel {
  width: 352px; max-width: 88vw; height: 100%;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
}
.drawer-top {
  display: flex; align-items: center; gap: 4px;
  height: 66px; padding: 0 18px 0 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.drawer-top .drawer-close { margin-left: auto; }
.drawer-search {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 30px 0; border-bottom: 1px solid var(--ink);
}
.drawer-search[hidden] { display: none; }
.drawer-search input {
  flex: 1; min-width: 0; border: 0; padding: 10px 0; background: transparent;
  font: inherit; font-size: 14px; text-transform: none;
}
.drawer-search input:focus { outline: none; }
.drawer-search button { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; padding: 10px 0; }

.drawer-scroll { flex: 1; overflow-y: auto; padding: 0 30px; }
.drawer-group {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 22px 0 18px;
}
.drawer-group + .drawer-group { border-top: 1px solid var(--line); }
.drawer-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: #8a8a8a;
  margin-bottom: 12px;
}
.drawer-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-size: 17px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.25;
  padding: 6px 0; text-align: left;
  transition: opacity 0.2s var(--ease);
}
.drawer-link svg { color: #8a8a8a; transition: transform 0.25s var(--ease); }
.drawer-sub-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.drawer-group:hover .drawer-link:not(:hover) { opacity: 0.45; }
.drawer-sub-wrap { width: 100%; }
.drawer-sub { display: flex; flex-direction: column; padding: 2px 0 8px 14px; }
.drawer-sub[hidden] { display: none; }
.drawer-sub:not([hidden]) { animation: drawer-sub-in 1.2s var(--ease) both; }
@keyframes drawer-sub-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.drawer-sub a { font-size: 13px; letter-spacing: 0.04em; padding: 6px 0; color: #555; }
.drawer-sub a:hover { color: var(--ink); }

.drawer-legal {
  display: flex; flex-direction: column; gap: 9px;
  margin: 0 30px; padding: 20px 0 22px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.drawer-legal a { font-size: 11.5px; letter-spacing: 0.03em; color: #8a8a8a; }
.drawer-legal a:hover { color: var(--ink); }
.drawer-locale {
  display: flex; align-items: center; gap: 8px;
  padding: 20px 30px 26px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.drawer-locale select { border: 0; background: transparent; font-size: 12px; color: #6b6b6b; cursor: pointer; }

.drawer-media {
  width: 608px; height: 100%;
  background: var(--card);
  overflow: hidden;
}
.drawer-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.3s var(--ease);
}
.drawer-media img.is-product { object-fit: contain; padding: 14% 12%; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.14)); }
.drawer-media img.is-swapping { opacity: 0; }
@media (max-width: 1023px) { .drawer-media { display: none; } }

/* Photo behind the menu panel (drop the drawer-panel--photo class in layout.js for the plain white panel) */
.drawer-panel--photo {
  position: relative;
  background: #000 url("assets/drawer-panel-clock.jpg") center / cover no-repeat;
  color: var(--on-dark);
  border-right-color: rgba(255, 255, 255, 0.12);
}
.drawer-panel--photo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.4) 45%, rgba(0, 0, 0, 0.7) 100%);
}
.drawer-panel--photo > * { position: relative; }
.drawer-panel--photo .drawer-top,
.drawer-panel--photo .drawer-group + .drawer-group,
.drawer-panel--photo .drawer-legal,
.drawer-panel--photo .drawer-locale { border-color: rgba(255, 255, 255, 0.16); }
.drawer-panel--photo .drawer-label,
.drawer-panel--photo .drawer-link svg,
.drawer-panel--photo .drawer-legal a { color: rgba(255, 255, 255, 0.6); }
.drawer-panel--photo .drawer-legal a:hover,
.drawer-panel--photo .drawer-sub a:hover { color: var(--on-dark); }
.drawer-panel--photo .drawer-sub a { color: rgba(255, 255, 255, 0.75); }
.drawer-panel--photo .drawer-link { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.drawer-panel--photo .drawer-search { border-bottom-color: var(--on-dark); }
.drawer-panel--photo .drawer-search input { color: var(--on-dark); }
.drawer-panel--photo .drawer-search input::placeholder { color: rgba(255, 255, 255, 0.55); }
.drawer-panel--photo .drawer-locale select { color: rgba(255, 255, 255, 0.75); }
.drawer-panel--photo .drawer-locale option { color: var(--ink); }
.drawer-panel--photo :focus-visible { outline-color: var(--on-dark); }

/* ---------- Buttons ---------- */
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  width: 360px; max-width: 100%; height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: var(--overlay);
  color: var(--on-dark);
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-ghost--dark { border-color: rgba(0, 0, 0, 0.6); background: rgba(255, 255, 255, 0.35); color: var(--ink); }
.btn-ghost--dark:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: clamp(480px, 32vw, 640px);
  overflow: hidden;
  display: flex; align-items: center;
}
.hero--dark { background: linear-gradient(90deg, #2b2d31 0%, #5c5f64 42%, #c9cbce 72%, #e3e4e6 100%); }
.hero--light { background: linear-gradient(90deg, #f1f1f1 0%, #e2e3e5 45%, #c3c5c8 100%); }
.hero-media { position: absolute; inset: 0; animation: settle 1.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.05); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hero-item {
  position: absolute; bottom: 4%;
  height: 86%; width: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.28));
  will-change: transform;
}
.hero-item--back { right: 8%; height: 76%; bottom: 10%; opacity: 0.95; }
.hero-item--front { right: 30%; }
.hero--light .hero-item--front { right: 31%; height: 70%; bottom: 8%; }
.hero--light .hero-item--back { right: 6%; height: 84%; bottom: 6%; }
.hero-crest {
  position: absolute; left: 38%; top: 50%;
  width: 46%; max-width: 760px;
  transform: translate(-50%, -50%);
  opacity: 0.07; filter: grayscale(1) brightness(3);
}
.hero-copy {
  position: relative; z-index: 2;
  width: 360px; margin-left: calc(20% - 180px);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
  margin-top: -14%;
}
.hero h1, .hero h2, .banner-crest h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.1vw, 40px);
  letter-spacing: 0.02em; line-height: 1.05;
  color: var(--on-dark);
}
.hero--light h2 { color: var(--ink); }

/* Image hero: full-bleed photo, left-to-right shade, copy on the left */
.hero--image {
  height: auto;
  min-height: 80vh;
  background: #0b0b0b;
}
main > .hero--image:first-child { margin-top: calc(-1 * var(--header-h)); }
.hero-bg {
  position: absolute; inset: 0;
  background: url("assets/header.jpg") center / cover no-repeat;
  animation: settle 1.4s var(--ease) both;
}
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 35%, rgba(0, 0, 0, 0) 65%);
}
.hero-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.3em; color: rgba(255, 255, 255, 0.75);
}
.hero--image .hero-copy {
  width: min(520px, 92vw);
  margin: 0 0 0 clamp(40px, 7vw, 140px);
  padding: clamp(24px, 6vh, 56px) 0;
}
.hero--image .btn-ghost {
  width: min(360px, 92vw);
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.28);
  font-weight: 800; letter-spacing: 0.08em;
}
.hero--image .btn-ghost:hover { background: rgba(0, 0, 0, 0.35); color: var(--on-dark); border-color: rgba(255, 255, 255, 0.36); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.product-grid--two { grid-template-columns: repeat(2, 1fr); }
.card { border-right: 1px solid var(--line); background: var(--paper); }
.card:last-child { border-right: 0; }
.card-media {
  position: relative;
  aspect-ratio: 1 / 1.02;
  background: var(--card);
  display: grid; place-items: center;
  overflow: hidden;
}
.product-grid--two .card-media { aspect-ratio: 16 / 11; }
.card-media { perspective: 900px; }
.card-media img {
  width: 66%; height: 72%; object-fit: contain;
  transition: transform 0.6s var(--ease);
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.12));
}
.card-media img.is-photo { width: 100%; height: 100%; object-fit: cover; filter: none; }
.card-media.is-tilting img { transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) scale(1.05); transition-duration: 0.25s; }
.card-media.is-tilting img.is-photo { transform: scale(1.06); transform-origin: var(--mx, 50%) var(--my, 50%); }
/* Soft light that follows the pointer across the tile */
.card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.35), transparent 45%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.card-media.is-tilting::after { opacity: 1; }
.product-grid--two .card-media img { width: 52%; height: 78%; }
.product-grid--two .card-media img.is-photo { width: 100%; height: 100%; }
.card:hover .card-media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--badge); color: var(--on-dark);
  padding: 4px 8px; font-size: 10px; font-weight: 500; letter-spacing: 0.03em;
}
.progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--line);
}
.progress::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 16%;
  background: var(--ink);
  transition: width 0.5s var(--ease);
}
.card:hover .progress::before { width: 100%; }
.quick-add {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  width: 32px; height: 32px;
  font-size: 22px; font-weight: 300; line-height: 1;
  display: grid; place-items: center;
  transition: transform 0.25s var(--ease);
}
.card.sizes-open .quick-add { transform: rotate(45deg); }
.sizes {
  position: absolute; left: 0; right: 0; bottom: 2px; z-index: 2;
  display: flex; gap: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 12px 64px 12px 16px;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}
.card.sizes-open .sizes { transform: translateY(0); }
.sizes button {
  flex: 1; height: 32px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  border: 1px solid transparent;
}
.sizes button:hover { border-color: var(--ink); }
.card-info {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 26px 20px 30px;
}
.card-info h3 { font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; }
.price { font-size: 11.5px; font-weight: 400; white-space: nowrap; }

/* ---------- Brand banner ---------- */
.banner-crest {
  position: relative;
  height: clamp(420px, 28vw, 560px);
  background: radial-gradient(ellipse at 50% 60%, #1c1c1e 0%, #0a0a0a 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  overflow: hidden;
}
.banner-bg {
  position: absolute; inset: -20px;
  background: url("assets/lb-chain.jpg") center / cover no-repeat;
  opacity: 0.28; filter: grayscale(0.4) contrast(1.1);
}
.banner-crest::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, transparent 0%, rgba(0, 0, 0, 0.75) 75%);
}
.crest-big {
  position: relative; z-index: 1;
  height: 52%; width: auto;
  filter: drop-shadow(0 0 60px rgba(252, 44, 31, 0.25));
}
.banner-copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.banner-copy .btn-ghost { width: 196px; background: rgba(0, 0, 0, 0.55); }

/* ---------- Footer ---------- */
.site-footer { padding: 96px 0 0; }
.footer-inner {
  max-width: 1760px; margin: 0 auto; padding: 0 80px 80px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
  gap: 48px;
}
.footer-col h4 { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; margin-bottom: 22px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a, .footer-col p { font-size: 12.5px; letter-spacing: 0.04em; }
.footer-col ul a:hover { text-decoration: underline; }
.footer-signup { max-width: 300px; }
.newsletter {
  display: flex; align-items: center; margin-top: 22px;
  border-bottom: 1px solid var(--ink);
}
.newsletter input {
  flex: 1; min-width: 0; border: 0; padding: 8px 0;
  font: inherit; font-size: 13px; text-transform: none; background: transparent;
}
.newsletter input:focus { outline: none; }
.newsletter button { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; padding: 8px 0 8px 12px; }
.form-msg { min-height: 18px; margin-top: 8px; font-size: 11px !important; color: var(--muted); }
.whatsapp { display: inline-flex; align-items: center; gap: 8px; font-size: 11px !important; font-weight: 500; letter-spacing: 0.12em !important; }
.whatsapp u { text-underline-offset: 4px; font-weight: 700; }
.locale { display: flex; align-items: center; gap: 8px; }
.locale select {
  border: 0; background: transparent; font: inherit; font-size: 12.5px; letter-spacing: 0.04em; cursor: pointer;
}
.flag {
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(90deg, #c4272f 33%, #015197 33% 66%, #c4272f 66%);
  border: 1px solid var(--line);
}
.footer-wordmark { max-width: 1760px; margin: 0 auto; padding: 0 80px 40px; overflow: hidden; }
.footer-wordmark img { width: 100%; max-width: 1100px; height: auto; margin: 0 auto; opacity: 0.9; }
.footer-col a[data-no-i18n] { text-transform: none; }
.footer-bottom {
  max-width: 1760px; margin: 0 auto; padding: 32px 80px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.copy { font-size: 11px; color: var(--muted); letter-spacing: 0.03em; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.legal a { font-size: 12.5px; letter-spacing: 0.04em; }
.legal a:hover { text-decoration: underline; }

/* ---------- Wishlist heart on cards ---------- */
.wish-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 36px; height: 36px; display: grid; place-items: center;
  color: var(--ink);
  transition: transform 0.2s var(--ease);
}
.wish-btn:hover { transform: scale(1.1); }
.wish-btn svg path { transition: fill 0.2s var(--ease); }
.wish-btn[aria-pressed="true"] svg path { fill: currentColor; }

/* ---------- Buttons ---------- */
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 44px; padding: 0 24px;
  background: var(--ink); color: var(--on-dark);
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  transition: background-color 0.2s var(--ease);
}
.btn-solid:hover { background: #2a2a2a; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 40px;
  border: 1px solid var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-outline:hover { background: var(--ink); color: var(--on-dark); }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: 550px; max-width: 100vw;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}
body.cart-open { overflow: hidden; }
body.cart-open .cart-overlay { opacity: 1; visibility: visible; }
body.cart-open .cart-drawer { transform: none; }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; padding: 0 14px 0 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-head h2 { font-size: 17px; font-weight: 700; letter-spacing: 0.02em; }
.cart-head-count { font-weight: 400; color: var(--muted); }
.cart-body { flex: 1; overflow-y: auto; }

.cart-empty {
  min-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px; text-align: center;
}
.cart-empty-icon svg { width: 26px; height: 26px; }
.cart-empty-title { margin: 14px 0 20px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; }
.cart-empty .btn-solid { width: auto; min-width: 236px; height: 48px; }
.cart-login { margin-top: 56px; }
.cart-login-title { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.cart-login-text { margin-top: 6px; font-size: 12px; color: var(--muted); text-transform: none; }
.cart-login-link { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-decoration: underline; text-underline-offset: 4px; }

.cart-lines { list-style: none; margin: 0; padding: 0 18px; }
.cart-line { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line-media { width: 104px; flex-shrink: 0; aspect-ratio: 1 / 1.1; background: var(--card); display: grid; place-items: center; }
.cart-line-media img { width: 78%; height: 78%; object-fit: contain; }
.cart-line-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cart-line-name { font-size: 12px; font-weight: 600; letter-spacing: 0.03em; }
.cart-line-meta { font-size: 11px; color: var(--muted); }
.cart-line-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.cart-line-price { font-size: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 32px; }
.qty button { width: 32px; height: 100%; font-size: 15px; }
.qty button:hover { background: var(--card-alt); }
.qty span { min-width: 26px; text-align: center; font-size: 12px; }
.cart-line-remove { align-self: flex-start; font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cart-line-remove:hover { color: var(--ink); }

.cart-foot { padding: 18px 18px 22px; border-top: 1px solid var(--line); flex-shrink: 0; }
.cart-foot[hidden] { display: none; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.cart-note { margin: 6px 0 16px; font-size: 11px; color: var(--muted); text-transform: none; }
.cart-continue { display: block; margin: 14px auto 0; font-size: 11px; letter-spacing: 0.1em; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pages (account, wishlist) ---------- */
.page { padding: 120px 16px 140px; min-height: 62vh; }
.page--wide { padding-top: 90px; }

.auth { max-width: 577px; margin: 0 auto; text-align: center; }
.auth[hidden] { display: none; }
.auth h1 { font-size: 34px; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 30px; }
.auth-lead { margin: -14px 0 26px; font-size: 13px; color: var(--muted); text-transform: none; }
.auth-lead strong { color: var(--ink); font-weight: 600; }
.auth-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.auth-form input {
  width: 100%; height: 53px; padding: 0 18px;
  border: 1px solid #cfcfcf; border-radius: 0; background: var(--paper);
  font: inherit; font-size: 13px; text-transform: none;
  transition: border-color 0.2s var(--ease);
}
.auth-form input::placeholder { color: #6b6b6b; }
.auth-form input:focus { outline: none; border-color: var(--ink); }
.auth-form .btn-solid { height: 40px; font-size: 12.5px; letter-spacing: 0.04em; }
.auth-link { font-size: 12.5px; text-transform: none; }
.auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-forgot { margin-top: 4px; align-self: flex-start; }
.auth-switch { display: inline-block; margin-top: 30px; }
.auth-error { min-height: 0; font-size: 12px; color: #c4271f; text-transform: none; }
.auth-error:empty { display: none; }

.auth--account { max-width: 760px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; margin-bottom: 32px; }
.account-box { border: 1px solid var(--line); padding: 24px; }
.account-box h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 10px; }
.account-box p { font-size: 13px; color: var(--muted); text-transform: none; margin-bottom: 8px; }

.wishlist-head { text-align: center; padding-bottom: 56px; border-bottom: 1px solid var(--line); margin: 0 auto; max-width: 1570px; }
.wishlist-head h1 { font-size: 21px; font-weight: 800; letter-spacing: 0.14em; }
.share-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
}
.share-link span { text-decoration: underline; text-underline-offset: 4px; }
.share-link[hidden] { display: none; }
.wishlist-body { max-width: 1570px; margin: 0 auto; }
.wishlist-empty { padding: 56px 0; text-align: center; font-size: 12px; text-transform: none; }
.wishlist-empty[hidden] { display: none; }
.wishlist-grid { border-bottom: 0; margin-top: 40px; }
.wishlist-grid[hidden] { display: none; }

@media (max-width: 767px) {
  .page { padding: 64px 16px 96px; }
  .auth h1 { font-size: 28px; }
  .account-grid { grid-template-columns: 1fr; }
  .wish-btn { top: 4px; right: 4px; }
  .cart-line-media { width: 84px; }
}

/* ---------- Stock states ---------- */
.sizes button:disabled { color: #b3b3b3; text-decoration: line-through; cursor: not-allowed; border-color: transparent; }
.quick-add:disabled { opacity: 0.25; cursor: not-allowed; }
.card.is-sold-out .card-media img { opacity: 0.55; }
.cart-line-soldout { color: #c4271f; font-weight: 600; }
.grid-error { grid-column: 1 / -1; padding: 60px 16px; text-align: center; font-size: 12px; text-transform: none; }

/* ---------- Forms (shared) ---------- */
.page-loading { text-align: center; font-size: 12px; color: var(--muted); text-transform: none; padding: 40px 0; }
.page-loading[hidden] { display: none; }
.auth-success { font-size: 12px; color: #1d7a3a; text-transform: none; }
.auth-success:empty { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; text-align: left; }
.field > span { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid #cfcfcf; border-radius: 0; background: var(--paper);
  font: inherit; font-size: 13px; text-transform: none; color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field-row { display: flex; gap: 14px; }
.notfound-crest { margin: 0 auto 20px; }

/* ---------- Profile ---------- */
.profile-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px;
  padding: 28px; margin-bottom: 16px; border: 1px solid var(--line); text-align: left;
}
.avatar-wrap { position: relative; }
.avatar {
  display: grid; place-items: center; overflow: hidden; border-radius: 50%;
  background: var(--card); color: var(--ink); font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar img[hidden] { display: none; }
.avatar--xl { width: 104px; height: 104px; font-size: 38px; }
.avatar-edit {
  position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: var(--paper); border: 3px solid var(--paper);
  transition: transform 0.15s var(--ease);
}
.avatar-edit:hover { transform: scale(1.06); }
.avatar-edit:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.avatar-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 5; min-width: 190px;
  display: grid; padding: 6px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}
.avatar-menu[hidden] { display: none; }
.avatar-menu button { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; }
.avatar-menu button:hover { background: var(--card-alt); }
.avatar-menu button[hidden] { display: none; }
.avatar-menu .avatar-remove { color: #c4271f; }
.auth .profile-name { margin: 0 0 6px; font-size: 24px; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.profile-email { margin: 0; font-size: 13px; text-transform: none; overflow-wrap: anywhere; }
.profile-since { margin: 4px 0 0; font-size: 12px; color: var(--muted); text-transform: none; }
.profile-since:empty { display: none; }
.profile-stats { display: flex; gap: 0; margin: 0; }
.profile-stats > div { min-width: 84px; padding: 0 18px; border-left: 1px solid var(--line); text-align: center; }
.profile-stats dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }
.profile-stats dd { margin: 6px 0 0; font-size: 18px; font-weight: 800; white-space: nowrap; }
.profile-stats a:hover { text-decoration: underline; text-underline-offset: 4px; }

.account-danger { margin-top: 40px; text-align: left; border-top: 1px solid var(--line); padding-top: 18px; }
.account-danger summary { cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); width: fit-content; }
.account-danger summary:hover { color: #c4271f; }
.account-delete { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin-top: 16px; }
.account-delete p:not(.auth-error) { font-size: 13px; color: var(--muted); text-transform: none; margin: 0; }
.btn-danger { align-self: flex-start; border-color: #c4271f; color: #c4271f; }
.btn-danger:hover { background: #c4271f; color: #fff; }

.avatar-dialog { width: min(380px, calc(100vw - 32px)); padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.avatar-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.avatar-dialog-body { display: grid; gap: 16px; padding: 24px; }
.avatar-dialog h2 { font-size: 14px; font-weight: 800; letter-spacing: 0.12em; margin: 0; }
.crop { width: 100%; max-width: 280px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.crop-canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.crop-canvas:active { cursor: grabbing; }
.crop-canvas:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.crop-zoom { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; }
.crop-zoom input { width: 100%; accent-color: var(--ink); }
.crop-hint { margin: -6px 0 0; font-size: 12px; color: var(--muted); text-align: center; text-transform: none; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-actions .btn-outline, .dialog-actions .btn-solid { padding: 0 10px; letter-spacing: 0.06em; white-space: nowrap; }

.icon-btn.has-avatar { padding: 0; }
.header-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
.header-avatar--initial { background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; }

@media (max-width: 767px) {
  .profile-head { grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 20px; }
  .avatar--xl { width: 84px; height: 84px; font-size: 30px; }
  .auth .profile-name { font-size: 20px; }
  .profile-stats { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; }
  .profile-stats > div { flex: 1; min-width: 0; padding: 0 8px; }
  .profile-stats > div:first-child { border-left: 0; }
}

/* ---------- Account extras ---------- */
.account-orders { text-align: left; margin-bottom: 16px; }
.account-profile, .account-password { display: flex; flex-direction: column; gap: 12px; }
.account-profile .btn-outline, .account-password .btn-outline { align-self: flex-start; }
.auth--account > .account-box { text-align: left; margin-bottom: 16px; }
.orders { list-style: none; margin: 0; padding: 0; }
.orders a {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line); font-size: 12px;
}
.orders li:first-child a { border-top: 0; }
.orders a:hover .orders-number { text-decoration: underline; }
.orders-number { font-weight: 700; }
.orders-date { color: var(--muted); }
.orders-total { text-align: right; min-width: 90px; }

.status {
  display: inline-block; padding: 3px 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  background: var(--card); color: var(--ink); white-space: nowrap;
}
.status--paid, .status--processing { background: #e7f3ea; color: #1d6b34; }
.status--shipped { background: #e6eefb; color: #1f4f9c; }
.status--delivered { background: var(--ink); color: var(--on-dark); }
.status--pending_payment { background: #fff4d6; color: #7a5600; }
.status--cancelled, .status--expired, .status--failed { background: #f3e3e2; color: #9c2a22; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; max-width: 1180px; margin: 0 auto; align-items: start; }
.checkout[hidden], .checkout-empty[hidden] { display: none; }
.checkout-form { display: flex; flex-direction: column; gap: 22px; }
.checkout-form h1 { font-size: 28px; font-weight: 800; }
.checkout-signin { font-size: 12.5px; text-transform: none; margin-top: -10px; }
.checkout-signin a { text-decoration: underline; text-underline-offset: 3px; }
.checkout-signin[hidden] { display: none; }
.checkout-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checkout-form legend { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 12px; }
.checkout-submit { height: 52px; font-size: 13px; }
.checkout-hint { font-size: 11.5px; color: var(--muted); text-transform: none; }
.checkout-empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.checkout-empty .btn-solid { width: auto; }

.checkout-summary { background: #f6f6f6; padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); }
.checkout-summary h2, .order-ship h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 18px; }
.summary-lines { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.summary-lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; font-size: 12px; }
.summary-media { position: relative; width: 64px; height: 64px; background: var(--card); display: grid; place-items: center; }
.summary-media img { width: 80%; height: 80%; object-fit: contain; }
.summary-qty {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--ink); color: var(--on-dark); font-size: 10px; line-height: 20px; text-align: center;
}
.summary-name { font-weight: 600; letter-spacing: 0.02em; }
.summary-name small { display: block; font-weight: 400; color: var(--muted); margin-top: 3px; }
.summary-totals { margin: 0; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.summary-totals div { display: flex; justify-content: space-between; gap: 12px; }
.summary-totals dd { margin: 0; text-align: right; }
.summary-totals .sum-shipping { color: var(--muted); text-transform: none; }
.summary-grand { font-size: 14px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }

/* ---------- Order / payment ---------- */
.order-page { max-width: 760px; margin: 0 auto; }
.order-pay, .order-done { text-align: center; margin-bottom: 40px; }
.order-pay[hidden], .order-done[hidden], .order-details[hidden] { display: none; }
.order-pay h1, .order-done h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.order-lead { font-size: 13px; text-transform: none; color: var(--muted); line-height: 1.7; }
.order-lead strong { color: var(--ink); }
.order-done.is-paid h1::before { content: "✓"; display: block; font-size: 34px; margin-bottom: 8px; }
.order-timer { margin-top: 6px; font-size: 12px; font-weight: 600; text-transform: none; }
.pay-grid { display: grid; grid-template-columns: 260px 1fr; gap: 32px; margin: 28px 0 20px; text-align: left; align-items: start; }
.pay-qr { text-align: center; }
.pay-qr img { width: 260px; height: 260px; border: 1px solid var(--line); background: #fff; image-rendering: pixelated; }
.pay-qr p, .pay-status { font-size: 12px; color: var(--muted); text-transform: none; margin-top: 10px; }
.pay-apps-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 12px; }
.bank-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; max-height: 300px; overflow-y: auto; }
.bank-link {
  display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line);
  font-size: 11.5px; text-transform: none; line-height: 1.2;
}
.bank-link:hover { border-color: var(--ink); }
.bank-link img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.bank-links-empty { font-size: 12px; color: var(--muted); text-transform: none; }
.pay-short[hidden] { display: none; }
.pay-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 360px; margin: 18px auto 0; }
.order-details { border-top: 1px solid var(--line); padding-top: 28px; display: grid; grid-template-columns: 1fr 260px; gap: 40px; }
.order-ship p { font-size: 12.5px; text-transform: none; line-height: 1.6; }

@media (max-width: 1100px) {
  .checkout { grid-template-columns: 1fr; gap: 32px; }
  .checkout-summary { position: static; order: -1; }
}
@media (max-width: 767px) {
  .field-row { flex-direction: column; }
  .pay-grid { grid-template-columns: 1fr; }
  .pay-qr img { width: 220px; height: 220px; }
  /* On phones the bank buttons are the quickest way to pay, so show them first. */
  .pay-apps { order: -1; }
  .order-details { grid-template-columns: 1fr; gap: 24px; }
  .orders a { grid-template-columns: 1fr auto; }
  .orders-date { display: none; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 20px);
  opacity: 0; visibility: hidden;
  background: var(--ink); color: var(--on-dark);
  padding: 14px 22px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .hero { height: 60vh; min-height: 460px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(2n) { border-right: 0; }
  .card { border-bottom: 1px solid var(--line); }
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
  .footer-signup { grid-column: 1 / -1; max-width: 420px; }
  .hero-copy { margin-left: 6%; }
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }
  .header-inner { padding: 0 12px; }
  .brand-word { display: none; }
  .nav-right { gap: 0; }
  .search-open--desktop { display: none; }
  .header-left { gap: 0; }

  .hero { height: 75vh; min-height: 520px; align-items: flex-end; }
  .hero-item--front { right: auto; left: -2%; height: 40%; bottom: 31%; }
  .hero-item--back { right: -2%; height: 36%; bottom: 40%; }
  .hero--light .hero-item--front { left: 4%; right: auto; height: 46%; bottom: 34%; }
  .hero--light .hero-item--back { right: 0; height: 54%; bottom: 30%; }
  .hero--dark { background: linear-gradient(180deg, #c9cbce 0%, #8a8d92 50%, #2b2d31 100%); }
  .hero--light { background: linear-gradient(180deg, #c3c5c8 0%, #e2e3e5 60%, #f1f1f1 100%); }
  .hero-crest { left: 50%; top: 40%; width: 110%; }
  /* Show the whole photo at its native ratio, copy sits below it */
  .hero--image { min-height: 0; height: auto; flex-direction: column; align-items: stretch; }
  .hero-bg {
    position: relative; inset: auto;
    width: 100%; aspect-ratio: 1672 / 941;
    background-size: contain; background-position: center;
  }
  .hero-overlay { display: none; }
  .hero--image .hero-copy { display: none; }
  .hero--image .btn-ghost { width: min(280px, 86vw); height: 36px; font-size: 11px; }
  .hero-copy { width: auto; margin: 0 16px 40px; flex: 1; }
  .btn-ghost { width: 100%; }

  .product-grid--two { grid-template-columns: 1fr 1fr; }
  .product-grid--two .card-media { aspect-ratio: 1 / 1.02; }
  .product-grid--two .card-media img { width: 66%; height: 72%; }
  .card-info { flex-direction: column; gap: 6px; padding: 14px 12px 18px; }
  .card-info h3, .price { font-size: 12px; line-height: 1.35; }
  .price { font-weight: 600; }
  /* Thumb-sized controls (44px) */
  .quick-add { right: 4px; bottom: 4px; width: 44px; height: 44px; }
  .wish-btn { width: 44px; height: 44px; top: 2px; right: 2px; }
  .sizes { padding: 6px 48px 6px 6px; flex-wrap: wrap; }
  .sizes button { height: 40px; min-width: 40px; font-size: 12px; }

  .banner-crest { height: auto; padding: 72px 16px; gap: 22px; }
  .crest-big { height: auto; width: 46%; }
  .hero--light { height: auto; min-height: 0; padding: 64px 0 56px; align-items: center; }
  .hero--light .hero-copy { margin: 0 16px; }

  .site-footer { padding-top: 56px; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 0 16px 48px; gap: 36px 24px; }
  .footer-signup { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 24px 16px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ======================================================================
   Home additions: marquee, shop filter, lookbook, service, Instagram
   ====================================================================== */

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--on-dark); border-bottom: 1px solid #222; }
.marquee-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  padding: 14px 0;
  animation: marquee 38s linear infinite;
}
.marquee-track span { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; white-space: nowrap; }
.marquee-track img { height: 18px; width: auto; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cross-page links (tab bar, header) cross-fade instead of flashing white */
@view-transition { navigation: auto; }

/* ---------- Shop head + category chips ---------- */
.shop { border-bottom: 1px solid var(--line); }
.chips {
  position: relative;
  display: flex; gap: 8px; padding: 36px 32px 26px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  scroll-padding-inline: 32px;
}
.chips::-webkit-scrollbar { display: none; }

/* Sliding pill behind the active chip: glossy black with a spinning red rim (main.js moves it). */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.chips-pill {
  position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(120% 160% at 30% 0%, #4a4a4a 0%, #121212 45%, #000 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -3px 8px rgba(0, 0, 0, 0.7), 0 10px 20px -8px rgba(0, 0, 0, 0.55);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.3s var(--ease);
}
.chips-pill.no-anim { transition: none; }
.chips-pill::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--spin), transparent 0 55%, rgba(252, 44, 31, 0.95) 70%, #fff 76%, rgba(252, 44, 31, 0.95) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: pill-spin 3.2s linear infinite;
}
.chips-pill::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 2px; height: 42%; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
}
@keyframes pill-spin { to { --spin: 360deg; } }

.chips button {
  position: relative; z-index: 1; isolation: isolate; overflow: hidden;
  flex-shrink: 0; height: 40px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.7);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 15px; font-weight: 700; letter-spacing: 0.12em;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transform: perspective(500px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--z, 0px)) scale(var(--s, 1));
  transition: transform 0.35s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
/* Light that follows the pointer / finger */
.chips button::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.chips button.is-lit { --z: 8px; border-color: #b9b9b9; box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.45); transition-duration: 0.12s, 0.25s, 0.25s, 0.25s, 0.3s; }
.chips button.is-lit::before { opacity: 0.6; }
.chips button[aria-pressed="true"] { color: var(--on-dark); border-color: transparent; background: transparent; }
.chips button[aria-pressed="true"]::before { background: radial-gradient(70px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.35), transparent 70%); }
.chips button.is-pressed { --s: 0.92; --z: -6px; transition-duration: 0.08s; }
.chips button.is-bounce { animation: chip-bounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes chip-bounce { 0% { scale: 0.92; } 55% { scale: 1.07; } 100% { scale: 1; } }
.chip-ripple {
  position: absolute; z-index: -1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: currentColor; opacity: 0.28; pointer-events: none;
  animation: chip-ripple 0.6s ease-out forwards;
}
@keyframes chip-ripple { to { transform: scale(18); opacity: 0; } }

/* Cards re-deal when the category changes */
.card.card-deal { animation: card-deal 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes card-deal { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
.shop .product-grid { border-top: 1px solid var(--line); border-bottom: 0; }
.card[hidden] { display: none; }

/* ---------- Lookbook ---------- */
.lookbook { background: #0b0b0b; color: var(--on-dark); padding: 88px 0 72px; overflow: hidden; }
.lookbook-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 44px; }
.lookbook-mark { width: min(340px, 70vw); height: auto; }
.lookbook-head h2 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 44px); letter-spacing: 0.04em; }
.lookbook-head p { font-size: 12px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.65); text-transform: none; }
/* Endless strip drifting to the right (main.js); drag or swipe to scrub, hover pauses. */
.lookbook-viewport { overflow: hidden; }
.lookbook-track {
  display: flex; gap: 14px; width: max-content;
  will-change: transform; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: grab;
}
.lookbook-track.is-dragging { cursor: grabbing; }
.lookbook-track.is-static { width: auto; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.lb { flex: 0 0 auto; height: clamp(300px, 38vw, 560px); margin: 0; overflow: hidden; position: relative; background: #151515; }
.lb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.5s var(--ease); filter: saturate(0.9); }
.lb:hover img { transform: scale(1.04); filter: saturate(1.1); }
/* Room for the pointer parallax (motion.js) so the photo edge never shows */
.has-cursor .lb img { width: calc(100% + 24px); height: calc(100% + 24px); margin: -12px; }
.lookbook-more {
  display: block; width: fit-content; margin: 36px auto 0;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-decoration: underline; text-underline-offset: 6px;
}

/* ---------- Hero 2 watermark ---------- */
.hero-watermark {
  position: absolute; right: -4%; top: 50%; width: min(70%, 1100px);
  transform: translateY(-50%) rotate(-4deg);
  opacity: 0.12; pointer-events: none;
}

/* ---------- Service strip ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.service {
  display: flex; flex-direction: column; gap: 8px;
  padding: 36px 32px; border-right: 1px solid var(--line);
  transition: background-color 0.25s var(--ease);
}
.service:last-child { border-right: 0; }
.service:hover { background: #f6f6f6; }
.service svg { margin-bottom: 8px; }
.service strong { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.service span { font-size: 12px; color: var(--muted); text-transform: none; line-height: 1.5; }

/* ---------- Instagram ---------- */
.insta { padding: 72px 32px 24px; max-width: 1200px; margin: 0 auto; }
.insta-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.insta-avatar {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: #1a0000;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--brand-red);
}
.insta-avatar img { width: 58%; }
.insta-head h2 { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; text-transform: none; }
.insta-head p { font-size: 12px; color: var(--muted); text-transform: none; margin-top: 4px; }
.insta-follow { width: auto; margin-left: auto; padding: 0 28px; }
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.insta-grid a { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #111; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.insta-grid a::after {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.insta-grid a:hover img { transform: scale(1.05); }
.insta-grid a:hover::after { opacity: 1; }

/* ---------- Cursor (motion.js, mouse only) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none;
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--brand-red); }
.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1.5px solid rgba(255, 255, 255, 0.95); border-radius: 50%;
  mix-blend-mode: difference;
}
.cursor-ring.is-down { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.has-cursor.cursor-on, .has-cursor.cursor-on body,
.has-cursor.cursor-on a, .has-cursor.cursor-on button, .has-cursor.cursor-on select, .has-cursor.cursor-on label { cursor: none; }
[data-magnetic], .btn-solid, .icon-btn { transition: transform 0.35s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }

/* ---------- Language-specific long copy ---------- */
html[lang="mn"] [data-lang="en"], html[lang="en"] [data-lang="mn"] { display: none !important; }

/* ---------- Home: responsive ---------- */
@media (max-width: 1023px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(2n) { border-right: 0; }
  .service:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 767px) {
  .marquee-track { padding: 11px 0; gap: 20px; animation-duration: 28s; }
  .marquee-track span { font-size: 10px; }
  .marquee-track img { height: 14px; }
  .chips {
    padding: 28px 16px 18px;
    scroll-padding-inline: 16px;
    /* Fade only the side that can still scroll (main.js sets the classes) */
    --fade-l: 0px; --fade-r: 0px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  }
  .chips.can-left { --fade-l: 22px; }
  .chips.can-right { --fade-r: 32px; }
  .chips button { height: 42px; padding: 0 18px; font-size: 15px; }

  .lookbook { padding: 56px 0 48px; }
  .lookbook-head { margin-bottom: 28px; padding: 0 16px; }
  .lookbook-track { gap: 8px; }
  .lb { height: clamp(260px, 72vw, 380px); }

  .hero-watermark { width: 120%; right: -10%; opacity: 0.1; }

  .services { grid-template-columns: 1fr 1fr; }
  .service { padding: 24px 16px; }
  .service svg { width: 22px; height: 22px; margin-bottom: 4px; }

  .insta { padding: 48px 16px 8px; }
  .insta-head { gap: 14px; flex-wrap: wrap; }
  .insta-avatar { width: 60px; height: 60px; }
  .insta-follow { width: 100%; margin-left: 0; height: 40px; }
  .insta-grid { gap: 2px; }

  .footer-wordmark { padding: 0 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Checkout: delivery methods ---------- */
.delivery-methods { gap: 10px !important; }
.method {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px; border: 1px solid #cfcfcf; cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.method:hover { border-color: var(--ink); }
.method.is-checked { border-color: var(--ink); background: #f6f6f6; box-shadow: inset 0 0 0 1px var(--ink); }
.method input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.method-main { display: flex; flex-direction: column; gap: 4px; }
.method-main strong { font-size: 12px; letter-spacing: 0.08em; }
.method-main small { font-size: 12px; color: var(--muted); text-transform: none; }
.method-price { font-size: 12px; font-weight: 700; white-space: nowrap; }
[data-for][hidden] { display: none !important; }
.free-hint { margin-top: 14px; padding: 10px 12px; background: #fff4d6; color: #7a5600; font-size: 12px; text-transform: none; }
.free-hint[hidden] { display: none; }

/* ---------- Help page ---------- */
.info { max-width: 980px; margin: 0 auto; }
.info-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-bottom: 16px; }
.info-hero img { width: min(420px, 80vw); }
.info-hero h1 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); }
.info-nav { justify-content: center; flex-wrap: wrap; padding: 0; }
.info-nav a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
}
.info-nav a:hover { border-color: var(--ink); }
.info-section { padding: 56px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 48px; scroll-margin-top: calc(var(--header-h) + 12px); }
.info-section:last-child { border-bottom: 0; }
.info-section h2 { font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 24px); margin-bottom: 22px; }
.info-section p, .info-list li { font-size: 14px; line-height: 1.7; text-transform: none; color: #2a2a2a; }
.info-section p + p { margin-top: 10px; }
.info-section a:not(.btn-solid) { text-decoration: underline; text-underline-offset: 3px; }
.info-list { margin: 18px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.info-small { margin-top: 16px; font-size: 13px !important; color: var(--muted) !important; }
.delivery-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.delivery-card { border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.delivery-card h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
.delivery-card .delivery-price { font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.delivery-card p:not(.delivery-price) { font-size: 13px; color: var(--muted); }
.size-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.size-table caption { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; padding-bottom: 10px; }
.size-table th, .size-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.size-table tbody th { text-align: left; font-weight: 600; text-transform: none; }
.size-table thead th { font-size: 11px; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 300; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 18px; }
.info-cta { width: auto; margin-top: 22px; }
.notfound-mark { width: min(320px, 70vw); margin: 40px auto 0; opacity: 0.85; }

@media (max-width: 767px) {
  .method { padding: 14px 12px; gap: 12px; }
  .delivery-cards, .size-tables { grid-template-columns: 1fr; }
  .info-section { padding: 40px 0 36px; }
  .info-section p, .info-list li { font-size: 13.5px; }
  .size-table { font-size: 12px; }
}

/* ======================================================================
   Product sheet (all screens), phone tab bar, checkout pay bar
   ====================================================================== */

/* ---------- Product sheet: centred panel on larger screens ---------- */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
body.sheet-open { overflow: hidden; }
body.sheet-open .sheet-overlay { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; z-index: 120; left: 50%; top: 50%;
  width: min(960px, calc(100vw - 48px)); height: min(620px, calc(100vh - 48px));
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: minmax(0, 1fr) auto;
  background: var(--paper); color: var(--ink); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -46%) scale(0.98); opacity: 0; visibility: hidden;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), visibility 0.4s;
}
body.sheet-open .sheet { transform: translate(-50%, -50%); opacity: 1; visibility: visible; }
.sheet-grab { display: none; }
.sheet-close { position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(255, 255, 255, 0.9); border-radius: 50%; }
.sheet-scroll { display: contents; }
.sheet-media { grid-row: 1 / 3; position: relative; background: var(--card); display: grid; place-items: center; overflow: hidden; }
.sheet-media img { width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.16)); }
.sheet-media.is-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.sheet-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 44px 32px 16px; display: flex; flex-direction: column; gap: 10px; }
.sheet-cat { font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; color: var(--muted); }
.sheet-title { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.3; }
.sheet-price { font-size: 16px; font-weight: 600; }
.sheet-desc { font-size: 13px; line-height: 1.6; color: #333; text-transform: none; }
.sheet-desc[hidden] { display: none; }
.sheet-sizes-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.sheet-sizes-head a { font-weight: 500; letter-spacing: 0.04em; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.sheet-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sheet-sizes:has(> button:only-child) { grid-template-columns: 1fr; }
.sheet-sizes button {
  height: 52px; border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.sheet-sizes button:hover:not(:disabled) { border-color: var(--ink); }
.sheet-sizes button:active:not(:disabled) { transform: scale(0.95); }
.sheet-sizes button[aria-checked="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.sheet-sizes button:disabled { color: #b5b5b5; background: #f6f6f6; cursor: not-allowed; text-decoration: line-through; }
.sheet-sizes button small { font-size: 9px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; }
.sheet-perks { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 12px; color: #444; text-transform: none; }
.sheet-perks li::before { content: "✓"; margin-right: 8px; font-weight: 700; color: var(--ink); }
.sheet-actions { display: flex; gap: 10px; padding: 14px 32px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.sheet-wish { width: 52px; height: 52px; flex-shrink: 0; border: 1px solid var(--line); display: grid; place-items: center; }
.sheet-wish svg path { transition: fill 0.2s var(--ease); }
.sheet-wish[aria-pressed="true"] svg path { fill: currentColor; }
.sheet-add { flex: 1; height: 52px; font-size: 12.5px; }
.sheet-add:disabled { background: #bdbdbd; cursor: not-allowed; }
.card .card-media, .card .card-info { cursor: pointer; }

/* ---------- Tab bar + pay bar: phones only ---------- */
.tabbar, .paybar { display: none; }
.cart-foot { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }

@media (max-width: 767px) {
  /* Bottom sheet */
  .sheet {
    left: 0; right: 0; top: auto; bottom: 0; width: auto; height: auto; max-height: 92vh; max-height: 92dvh;
    display: flex; flex-direction: column; border-radius: 18px 18px 0 0;
    transform: translateY(100%); opacity: 1;
    transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.42s;
  }
  body.sheet-open .sheet { transform: translateY(var(--drag, 0px)); }
  .sheet.is-dragging { transition: none; }
  .sheet-grab { display: flex; justify-content: center; position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: 10px 0 14px; }
  .sheet-grab span { width: 40px; height: 4px; border-radius: 2px; background: rgba(0, 0, 0, 0.28); }
  .sheet-close { top: 14px; right: 12px; }
  .sheet-scroll { display: block; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .sheet-media { height: min(50vh, 420px); }
  .sheet-body { overflow: visible; padding: 20px 16px 10px; }
  .sheet-title { font-size: 16px; }
  .sheet-sizes button { height: 50px; }
  .sheet-actions { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }

  /* Tab bar: the header keeps menu, crest and account; the rest moves under the thumb */
  body.has-tabbar { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .has-tabbar .header-left .search-open--mobile,
  .has-tabbar .nav-right .wish-link,
  .has-tabbar .nav-right .cart-btn { display: none; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: grid; grid-template-columns: repeat(4, 1fr);
    height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--line);
    transition: transform 0.3s var(--ease);
  }
  .tabbar.is-tucked, body.drawer-open .tabbar, body.cart-open .tabbar, body.sheet-open .tabbar { transform: translateY(105%); }
  .tab {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: #8a8a8a; font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em;
    -webkit-tap-highlight-color: transparent;
  }
  .tab svg { transition: transform 0.2s var(--ease); }
  .tab:active svg { transform: scale(0.86); }
  .tab.is-active { color: var(--ink); }
  .tab.is-active::before {
    content: ""; position: absolute; top: 0; left: 50%; width: 22px; height: 2px; margin-left: -11px;
    background: var(--brand-red); border-radius: 0 0 2px 2px;
  }
  .tab .cart-count { top: 6px; right: calc(50% - 22px); }
  .has-tabbar .toast { bottom: calc(74px + env(safe-area-inset-bottom)); }

  /* Checkout: sticky total + pay, collapsible summary */
  body:has(.paybar) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .paybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transition: transform 0.3s var(--ease);
  }
  .paybar.is-away, .paybar.is-empty { transform: translateY(110%); }
  .paybar-total { display: flex; flex-direction: column; gap: 2px; font-size: 10px; letter-spacing: 0.1em; color: var(--muted); }
  .paybar-total strong { font-size: 15px; letter-spacing: 0.02em; color: var(--ink); }
  .paybar-btn { flex: 1; height: 48px; }
  .checkout-summary { padding: 18px 16px; }
  .checkout-summary h2 { display: flex; align-items: center; justify-content: space-between; margin: 0; cursor: pointer; }
  .checkout-summary h2::after { content: "+"; font-size: 20px; font-weight: 300; line-height: 1; transition: transform 0.25s var(--ease); }
  .checkout-summary.is-open h2::after { transform: rotate(45deg); }
  .checkout-summary:not(.is-open) .summary-lines { display: none; }
  .checkout-summary .summary-lines { margin-top: 16px; }
  .checkout-summary .summary-totals { margin-top: 14px; }

  /* Footer: link groups fold into rows */
  .footer-inner { grid-template-columns: 1fr; gap: 0; }
  .footer-signup { padding-bottom: 28px; max-width: none; }
  .footer-col:not(.footer-signup) { border-top: 1px solid var(--line); }
  .footer-col:not(.footer-signup) h4 { margin: 0; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
  .footer-col:not(.footer-signup) h4::after { content: "+"; font-size: 20px; font-weight: 300; line-height: 1; transition: transform 0.25s var(--ease); }
  .footer-col.is-open h4::after { transform: rotate(45deg); }
  .footer-col:not(.footer-signup):not(.is-open) > ul,
  .footer-col:not(.footer-signup):not(.is-open) > .locale { display: none; }
  .footer-col.is-open > ul, .footer-col.is-open > .locale { padding-bottom: 20px; }
  .footer-col ul a { display: inline-block; padding: 4px 0; }
}

/* ======================================================================
   Phones: no side menu — search screen, shop panel, liquid-glass tab bar.
   Everything below is inside the phone breakpoint; desktop is untouched.
   ====================================================================== */
.msearch { display: none; }

@media (max-width: 767px) {
  /* The side menu's jobs moved to the tab bar, search screen and shop panel. */
  .menu-toggle, .search-open, .nav-drawer, .drawer-overlay { display: none !important; }

  /* Header: frosted glass once the page scrolls */
  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px);
    border-bottom-color: rgba(0, 0, 0, 0.06);
  }

  /* ---------- Flat tab bar: white strip, black active tab with a top line ---------- */
  body.has-tabbar { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .tabbar {
    left: 0; right: 0; bottom: 0; height: calc(60px + env(safe-area-inset-bottom)); padding: 0 0 env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--line);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: none; z-index: 130;
  }
  .tabbar.is-tucked, body.cart-open .tabbar, body.sheet-open .tabbar { transform: translateY(105%); }
  .tab { z-index: 1; color: var(--brand-red); }
  .tab.is-active { color: var(--brand-red); }
  .tab::before {
    content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; background: var(--ink);
    opacity: 0; transition: opacity 0.2s var(--ease);
  }
  .tab.is-active::before { opacity: 1; }
  .tab { transition: color 0.35s var(--ease); }
  .tab svg {
    width: 22px; height: 22px;
    transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  .tab.is-active svg { filter: drop-shadow(0 0 4px rgba(252, 44, 31, 0.7)) drop-shadow(0 0 10px rgba(252, 44, 31, 0.45)); }
  .tab:active svg { transform: none; }
  .tab .cart-count { top: 7px; right: calc(50% - 22px); box-shadow: 0 0 0 2px #fff; border-radius: 8px; }

  .has-tabbar .toast { bottom: calc(88px + env(safe-area-inset-bottom)); border-radius: 14px; }

  /* ---------- Search screen ---------- */
  .msearch {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 115;
    background: rgba(248, 248, 248, 0.78);
    -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8);
    padding-top: env(safe-area-inset-top);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 0.28s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  body.msearch-open { overflow: hidden; }
  /* Visible at once on open so the field can take focus (and raise the keyboard) in the same tap */
  body.msearch-open .msearch { opacity: 1; visibility: visible; transform: none; transition: opacity 0.28s var(--ease), transform 0.35s var(--ease), visibility 0s; }
  .msearch-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
  .msearch-field {
    flex: 1; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px;
    border-radius: 16px; color: #666;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 0 0 1px rgba(0, 0, 0, 0.07), 0 6px 18px -10px rgba(0, 0, 0, 0.3);
  }
  .msearch-field input {
    flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink);
    text-transform: none; outline: none;
  }
  .msearch-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
  .msearch-cancel { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; padding: 10px 2px; }
  .msearch-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 16px calc(24px + env(safe-area-inset-bottom)); }
  .msearch-idle[hidden], .msearch-found[hidden], .msearch-recent[hidden], .msearch-all[hidden] { display: none; }
  .msearch-idle section + section { margin-top: 26px; }
  .msearch-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
  .msearch-h h3 { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
  .msearch-clear { font-size: 11px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
  .msearch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .msearch-chips a, .msearch-chips button {
    display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: none;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  }
  .msearch-chips a { text-transform: uppercase; }
  .msearch-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .msearch-results button {
    width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; text-align: left;
    border-radius: 16px; background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s var(--ease);
  }
  .msearch-results button:active { transform: scale(0.98); }
  .msearch-results svg { color: #9a9a9a; flex-shrink: 0; }
  .msearch-thumb { width: 58px; height: 58px; flex-shrink: 0; border-radius: 12px; background: var(--card); display: grid; place-items: center; overflow: hidden; }
  .msearch-thumb img { width: 82%; height: 82%; object-fit: contain; }
  .msearch-thumb.is-photo img { width: 100%; height: 100%; object-fit: cover; }
  .msearch-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .msearch-text strong { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.3; }
  .msearch-text small { font-size: 11px; color: var(--muted); text-transform: none; }
  .msearch-none { padding: 30px 0; text-align: center; font-size: 13px; color: var(--muted); text-transform: none; }
  .msearch-none:empty { display: none; }
  .msearch-all { margin-top: 16px; border-radius: 14px; }

  /* Product sheet + cart get the same rounded glass edges on phones */
  .sheet { border-radius: 24px 24px 0 0; }
  .sheet-close { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
  .sheet-actions { background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); }
  .sheet-add, .sheet-wish { border-radius: 14px; }
}

/* ---------- Product sheet: 3D turn (layout.js turnTo) ---------- */
.turn {
  position: absolute; inset: 0; perspective: 1100px; outline: none;
  touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none;
}
.is-turning .turn { cursor: grabbing; }
.turn:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.turn-card {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(var(--ry, 0deg)); will-change: transform;
}
.turn-card.is-settling { transition: transform 0.75s cubic-bezier(0.22, 1.3, 0.36, 1); }
.turn-face {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.turn-back { transform: rotateY(180deg); background: var(--card); }
.turn-face img {
  width: 76%; height: 76%; object-fit: contain; pointer-events: none; -webkit-user-drag: none;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.16));
}
.turn-face.is-photo img { position: static; width: 100%; height: 100%; object-fit: cover; filter: none; }
/* Photos fill the panel; the crop leans towards the lower middle so a face and the clothes both stay in view */
.turn-face.is-photo img { object-position: 50% 65%; }
/* A new picture fades in once it has loaded; until then the previous product's picture stays hidden */
.turn-face img { transition: opacity 0.25s var(--ease); }
.turn-face.is-loading img { opacity: 0; transition: none; }
/* Light sweeping across the piece while it turns */
.turn-sheen {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s var(--ease);
  background: linear-gradient(105deg, transparent calc(var(--sheen, 0%) - 28%), rgba(255, 255, 255, 0.45) var(--sheen, 0%), transparent calc(var(--sheen, 0%) + 28%));
  mix-blend-mode: soft-light;
}
.is-turning .turn-sheen { opacity: 1; }
.sheet-media.is-intro .turn-card { animation: turn-intro 1.6s cubic-bezier(0.3, 0.7, 0.3, 1) 0.35s both; }
@keyframes turn-intro { 0% { rotate: y 0deg; } 35% { rotate: y 40deg; } 68% { rotate: y -14deg; } 100% { rotate: y 0deg; } }

.turn-ui {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none;
}
.turn-ui > * { pointer-events: auto; }
.sheet-media:not(.has-back) .turn-ui { display: none; }
.turn-hint, .turn-dots, .turn-btn {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px) saturate(1.6); backdrop-filter: blur(10px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 4px 12px -6px rgba(0, 0, 0, 0.3);
}
.turn-hint {
  padding: 8px 13px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.turn-hint::before { content: "↔"; margin-right: 6px; }
.is-touched .turn-hint { opacity: 0; transform: translateY(6px); pointer-events: none; }
.turn-dots { display: flex; gap: 5px; padding: 8px 10px; border-radius: 999px; margin-left: auto; }
.turn-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, 0.25); transition: width 0.3s var(--ease), background-color 0.3s var(--ease); }
.turn-dots i.is-on { width: 16px; background: var(--ink); }
.turn-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: transform 0.2s var(--ease); }
.turn-btn:active { transform: scale(0.9) rotate(-30deg); }

/* ---------- Notice bars set by the owner ---------- */
.announce {
  padding: 9px 16px; text-align: center; background: var(--ink); color: var(--on-dark);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: none;
}
.announce--closed { background: #9c2a22; }
.method[hidden], .delivery-card[hidden] { display: none; }
.checkout-closed { padding: 12px 14px; background: #f3e3e2; color: #9c2a22; font-size: 13px; font-weight: 600; text-transform: none; }
.checkout-closed[hidden] { display: none; }
.pickup-address, .contact-phone { color: var(--ink) !important; font-weight: 600; }

/* ======================================================================
   Dark mode (theme.js sets data-theme on <html>)
   ====================================================================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f4f2;
  --paper: #0e0e0e;
  --card: #2b2b2b;
  --card-alt: #242424;
  --line: #2c2c2c;
  --muted: #a3a3a3;
  --badge: #4d4d4d;
  --field-line: #3d3d3d;
  --panel: #181818;
}
/* The header button shows the theme it switches to */
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Light fills: their text was white, and now has to be dark */
html[data-theme="dark"] .btn-solid,
html[data-theme="dark"] .btn-ghost--dark:hover,
html[data-theme="dark"] .btn-outline:hover,
html[data-theme="dark"] .status--delivered,
html[data-theme="dark"] .summary-qty,
html[data-theme="dark"] .toast,
html[data-theme="dark"] .sheet-sizes button[aria-checked="true"] { color: #0e0e0e; }
html[data-theme="dark"] .btn-solid:hover { background: #d6d6d4; }
html[data-theme="dark"] .sheet-add:disabled,
html[data-theme="dark"] .btn-solid:disabled { background: #333; color: #8c8c8c; }

/* Bands that stay black in both themes */
html[data-theme="dark"] .marquee,
html[data-theme="dark"] .announce { background: #000; color: #fff; border-bottom: 1px solid #222; }
html[data-theme="dark"] .announce--closed { background: #7d211b; }

/* Product tiles: a soft light behind the piece so black clothes stay visible */
html[data-theme="dark"] .card-media,
html[data-theme="dark"] .sheet-media,
html[data-theme="dark"] .turn-back,
html[data-theme="dark"] .cart-line-media,
html[data-theme="dark"] .summary-media,
html[data-theme="dark"] .msearch-thumb {
  background: radial-gradient(circle at 50% 44%, #5a5a5a 0%, #3a3a3a 48%, #272727 100%);
}
html[data-theme="dark"] .card-media img:not(.is-photo),
html[data-theme="dark"] .turn-face:not(.is-photo) img { filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.5)); }
html[data-theme="dark"] .card-media img.is-photo,
html[data-theme="dark"] .turn-face.is-photo img { filter: brightness(0.92); }
html[data-theme="dark"] .card-media::after { background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 45%); }
html[data-theme="dark"] .sizes { background: rgba(20, 20, 20, 0.92); }
html[data-theme="dark"] .sizes button:disabled { color: #666; }

/* Sections */
html[data-theme="dark"] .hero--light { background: linear-gradient(90deg, #141414 0%, #1d1d1d 45%, #2b2b2b 100%); }
html[data-theme="dark"] .hero-watermark { opacity: 0.28; }
html[data-theme="dark"] .btn-ghost--dark { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.05); color: var(--ink); }
html[data-theme="dark"] .service:hover { background: #171717; }
html[data-theme="dark"] .info-section p,
html[data-theme="dark"] .info-list li,
html[data-theme="dark"] .sheet-desc,
html[data-theme="dark"] .sheet-perks { color: #c9c9c7; }
html[data-theme="dark"] .pickup-address,
html[data-theme="dark"] .contact-phone { color: var(--ink) !important; }
html[data-theme="dark"] .info-small { color: var(--muted) !important; }
html[data-theme="dark"] .delivery-card .delivery-price { color: var(--ink); }
html[data-theme="dark"] .delivery-card p:not(.delivery-price) { color: var(--muted); }
html[data-theme="dark"] .drawer-sub a { color: #b5b5b5; }

/* Category chips */
html[data-theme="dark"] .chips button { background: rgba(255, 255, 255, 0.05); }
html[data-theme="dark"] .chips button[aria-pressed="true"] { background: transparent; color: #fff; }
html[data-theme="dark"] .chips button.is-lit { border-color: #555; }
html[data-theme="dark"] .chips button::before { background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 70%); }
html[data-theme="dark"] .chips-pill {
  background: radial-gradient(120% 160% at 30% 0%, #5a5a5a 0%, #2c2c2c 50%, #1a1a1a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 20px -8px rgba(0, 0, 0, 0.8);
}

/* Forms */
html[data-theme="dark"] .auth-form input,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .method { border-color: var(--field-line); }
html[data-theme="dark"] .auth-form input:focus,
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field textarea:focus,
html[data-theme="dark"] .method:hover,
html[data-theme="dark"] .method.is-checked { border-color: var(--ink); }
html[data-theme="dark"] .auth-form input::placeholder { color: #8c8c8c; }
html[data-theme="dark"] .method.is-checked { background: #1b1b1b; }
html[data-theme="dark"] .checkout-summary { background: var(--panel); }
html[data-theme="dark"] select option { background: #1b1b1b; color: var(--ink); }

/* Messages and order states */
html[data-theme="dark"] .status { background: #2a2a2a; }
html[data-theme="dark"] .status--paid, html[data-theme="dark"] .status--processing { background: #17331f; color: #7fd498; }
html[data-theme="dark"] .status--shipped { background: #17294a; color: #93b8f2; }
html[data-theme="dark"] .status--delivered { background: var(--ink); }
html[data-theme="dark"] .status--pending_payment, html[data-theme="dark"] .free-hint { background: #3a2e0c; color: #ecc768; }
html[data-theme="dark"] .status--cancelled, html[data-theme="dark"] .status--expired, html[data-theme="dark"] .status--failed,
html[data-theme="dark"] .checkout-closed { background: #3d1a17; color: #f0a39c; }
html[data-theme="dark"] .auth-error, html[data-theme="dark"] .cart-line-soldout { color: #f0887f; }
html[data-theme="dark"] .auth-success { color: #7fd498; }

/* Product window */
html[data-theme="dark"] .sheet { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
html[data-theme="dark"] .sheet-sizes button:disabled { color: #666; background: #171717; }
html[data-theme="dark"] .sheet-close,
html[data-theme="dark"] .turn-hint,
html[data-theme="dark"] .turn-dots,
html[data-theme="dark"] .turn-btn,
html[data-theme="dark"] .glass-btn {
  background: rgba(30, 30, 30, 0.72); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .turn-dots i { background: rgba(255, 255, 255, 0.3); }
html[data-theme="dark"] .turn-dots i.is-on { background: var(--ink); }
html[data-theme="dark"] .sheet-grab span { background: rgba(255, 255, 255, 0.3); }

/* Phone bars and panels */
@media (max-width: 767px) {
  html[data-theme="dark"] .site-header.is-scrolled { background: rgba(14, 14, 14, 0.78); border-bottom-color: rgba(255, 255, 255, 0.08); }
  html[data-theme="dark"] .tabbar {
    background: rgba(20, 20, 20, 0.92); border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
  html[data-theme="dark"] .tabbar::before { opacity: 0.1; }
  html[data-theme="dark"] .tab { color: var(--brand-red); }
  html[data-theme="dark"] .tab.is-active { color: var(--brand-red); }
  html[data-theme="dark"] .tab .cart-count { box-shadow: 0 0 0 2px #141414; }
  html[data-theme="dark"] .tab-bubble {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 6px 14px -6px rgba(0, 0, 0, 0.7);
  }
  html[data-theme="dark"] .tab-bubble::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent); }
  html[data-theme="dark"] .paybar,
  html[data-theme="dark"] .sheet-actions { background: rgba(20, 20, 20, 0.9); }
  html[data-theme="dark"] .msearch { background: rgba(14, 14, 14, 0.84); }
  html[data-theme="dark"] .msearch-field,
  html[data-theme="dark"] .msearch-chips a,
  html[data-theme="dark"] .msearch-chips button,
  html[data-theme="dark"] .msearch-results button,
  html[data-theme="dark"] .browse-list {
    background: rgba(255, 255, 255, 0.07); color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  }
  html[data-theme="dark"] .browse { background: rgba(20, 20, 20, 0.88); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 -20px 50px -20px rgba(0, 0, 0, 0.8); }
  html[data-theme="dark"] .browse-list a + a { border-top-color: rgba(255, 255, 255, 0.08); }
  html[data-theme="dark"] .browse-lang { background: rgba(255, 255, 255, 0.08); }
  html[data-theme="dark"] .browse-lang button[aria-pressed="true"] { background: #3a3a3a; color: var(--ink); }
}

/* ======================================================================
   Drop countdown (early access) — the first screen on the home page while a drop is coming
   ====================================================================== */
body.drop-open { overflow: hidden; }
.drop-gate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow-y: auto;
  padding: 32px 16px calc(32px + env(safe-area-inset-bottom));
  background: radial-gradient(90% 60% at 50% 0%, #1c1c1c 0%, #050505 70%); color: #f4f4f2;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.drop-gate.is-in { opacity: 1; }
.drop-inner { width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.drop-crest { width: 72px; height: 72px; margin-bottom: 22px; filter: drop-shadow(0 6px 24px rgba(252, 44, 31, 0.35)); }
.drop-kicker { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.32em; color: var(--brand-red); }
.drop-title { margin: 0 0 28px; font-family: var(--font-display); font-size: clamp(26px, 7vw, 40px); font-weight: 800; letter-spacing: 0.04em; line-height: 1.05; }
.drop-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; margin-bottom: 22px; }
.drop-clock > div { padding: 14px 0 10px; border: 1px solid #2a2a2a; background: rgba(255, 255, 255, 0.03); }
.drop-clock b { display: block; font-family: var(--font-display); font-size: clamp(26px, 8vw, 38px); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.drop-clock span { display: block; margin-top: 8px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.2em; color: #8d8d8d; }
.drop-message { margin: 0 0 24px; max-width: 360px; font-size: 12.5px; line-height: 1.6; color: #b5b5b5; text-transform: none; }
.drop-message:empty { display: none; }
.drop-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; border: 1px solid #f4f4f2; }
.drop-form[hidden] { display: none; }
.drop-form input {
  min-width: 0; height: 50px; padding: 0 16px; border: 0; background: transparent; color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.drop-form input::placeholder { color: #7a7a7a; font-weight: 500; letter-spacing: 0.12em; }
.drop-form input:focus { outline: none; background: rgba(255, 255, 255, 0.05); }
.drop-form button {
  height: 50px; padding: 0 22px; background: #f4f4f2; color: #050505;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.18em; transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.drop-form button:hover { background: var(--brand-red); color: #fff; }
.drop-form.is-busy { opacity: 0.6; pointer-events: none; }
.drop-form.is-wrong { animation: drop-shake 0.4s var(--ease); border-color: var(--brand-red); }
@keyframes drop-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.drop-error { min-height: 18px; margin: 10px 0 0; font-size: 12px; color: #ff6a5f; text-transform: none; }
.drop-gate.is-unlocked .drop-kicker { color: #6fdc8c; }
.drop-gate.is-unlocked .drop-form { border-color: #6fdc8c; }
.drop-live { display: grid; gap: 14px; width: 100%; }
.drop-live[hidden] { display: none; }
.drop-live p { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.24em; color: var(--brand-red); }
.drop-enter { height: 50px; background: #f4f4f2; color: #050505; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; }
.drop-enter:hover { background: var(--brand-red); color: #fff; }
.drop-skip {
  margin-top: 26px; padding: 6px 2px; color: #9a9a9a; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em;
  border-bottom: 1px solid #3a3a3a; transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.drop-skip:hover { color: #fff; border-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .drop-gate { transition: none; }
  .drop-form.is-wrong { animation: none; }
}

/* ---------- Locked products: on show, not for sale ---------- */
.badge--locked { display: inline-flex; align-items: center; gap: 5px; background: var(--ink); color: var(--paper); }
.badge--locked svg { flex: none; }
.card.is-locked .card-media img { filter: grayscale(0.35); opacity: 0.8; }
.card.is-locked .quick-add { display: none; }
.sheet-add.is-locked, .sheet-add.is-locked:disabled { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: var(--paper); opacity: 0.55; }
