/* =============================================================
   Culture Sneaks — Storefront
   Load AFTER cs.css
   ============================================================= */

.wrap { max-width: 1440px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.brandmark {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav { display: flex; gap: 28px; font-size: var(--text-sm); }
.site-nav a { text-decoration: none; color: var(--muted); transition: color 0.2s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }

.header-actions { margin-left: auto; display: flex; gap: 4px; }

.icon-link {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--fg); border-radius: 50%;
  transition: background-color 0.2s var(--ease);
}
.icon-link:hover { background: var(--surface); }

/* ---------- Hero (home) ---------- */
.hero { border-bottom: 1px solid var(--line); }

.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 32px 96px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: end;
}

.hero-brand { color: var(--muted); font-size: var(--text-sm); }

.hero-title {
  font-size: clamp(44px, 6.4vw, 104px);
  margin: 12px 0 36px;
  text-wrap: balance;
}

.hero-label { max-width: 420px; margin-bottom: 36px; }

.hero-media { display: block; background: var(--graphite); }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.hero-empty {
  max-width: 1440px; margin: 0 auto; padding: 140px 32px;
}
.hero-empty h1 { font-size: clamp(44px, 8vw, 120px); }
.hero-empty p { margin-top: 20px; color: var(--muted); }

/* The one orchestrated moment: hero rises in on load */
.reveal { animation: rise 0.9s var(--ease) both; }
.reveal-late { animation: rise 1.1s var(--ease) 0.15s both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Home sections ---------- */
.section { max-width: 1440px; margin: 0 auto; padding: 88px 32px; }
.section + .section { padding-top: 0; }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-bottom: 32px;
}
.section-title { font-size: clamp(28px, 3.4vw, 44px); }

.link-quiet {
  font-size: var(--text-sm); font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px;
  white-space: nowrap;
}

/* ---------- Product grid & cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px 20px;
}

.card { display: block; color: inherit; text-decoration: none; }

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #f4f4f4;
  overflow: hidden;
}

.card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.45s var(--ease), transform 0.9s var(--ease);
}

.card-img-alt { opacity: 0; }

@media (hover: hover) {
  .card:hover .card-img-alt { opacity: 1; }
  .card:hover .card-img { transform: scale(1.02); }
}

.card.is-soldout .card-img { opacity: 0.45; }

.card-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }

.tag {
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  font-size: 11px; font-weight: 600; line-height: 1;
  padding: 5px 8px;
}
.tag-light { background: var(--paper); color: var(--ink); }

.card-body { padding-top: 14px; }
.card-brand { font-size: var(--text-xs); color: var(--muted); }
.card-name { font-size: var(--text-md); font-weight: 600; line-height: 1.3; margin-top: 2px; }
.card-price { font-size: var(--text-sm); margin-top: 6px; }

.price-was { margin-left: 8px; color: var(--muted); text-decoration: line-through; }

/* ---------- Shop page ---------- */
.shop-head { max-width: 1440px; margin: 0 auto; padding: 56px 32px 28px; }
.shop-title { font-size: clamp(44px, 6vw, 92px); }
.shop-count { margin-top: 12px; color: var(--muted); font-size: var(--text-sm); }

.shop-bar {
  max-width: 1440px; margin: 0 auto; padding: 0 32px 24px;
  display: flex; gap: 12px; align-items: center;
}
.shop-bar .shop-search { flex: 1; max-width: 440px; }
.shop-bar .shop-sort { width: 230px; margin-left: auto; }
.filter-toggle { display: none; }

.shop-layout {
  max-width: 1440px; margin: 0 auto; padding: 8px 32px 112px;
  display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px;
  align-items: start;
}

.shop-layout .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.filters { position: sticky; top: 88px; max-height: calc(100dvh - 104px); overflow-y: auto; padding-right: 4px; }
.filters-head { display: none; }

.filter-group { border-top: 1px solid var(--line); padding: 18px 0; }
.filter-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.filter-list { display: flex; flex-direction: column; gap: 10px; }

.size-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.chip {
  height: 38px; padding: 0 4px;
  border: 1px solid var(--line); background: none;
  color: var(--fg); font: inherit; font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs .input { height: 40px; }

.filters-foot { display: none; }

.empty-results { padding: 80px 0; text-align: center; color: var(--muted); }
.empty-results .btn { margin-top: 20px; }

/* ---------- Footer ---------- */
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 80px 32px 40px; }
.footer-mark { font-size: clamp(48px, 10vw, 160px); }
.footer-cols {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
}
.footer-links { display: flex; gap: 28px; font-size: var(--text-sm); }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--fg); }
.footer-note { color: var(--muted); font-size: var(--text-sm); max-width: 360px; }
.footer-legal { margin-top: 40px; color: var(--muted); font-size: var(--text-xs); }

/* ---------- Loading placeholder ---------- */
.loading-block { padding: 120px 32px; text-align: center; color: var(--muted); font-size: var(--text-sm); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-layout .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; }

  .filters {
    position: fixed; inset: 0; z-index: 60;
    max-height: none; padding: 20px 20px 96px;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    visibility: hidden;
  }
  .filters.is-open { transform: none; visibility: visible; }

  .filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .filters-head h2 { font-size: 22px; }

  .filters-foot {
    display: block; position: fixed; left: 0; right: 0; bottom: 0;
    padding: 16px 20px; background: var(--bg); border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .wrap, .header-inner, .hero-inner, .section, .shop-head, .shop-bar, .shop-layout, .footer-inner {
    padding-left: 16px; padding-right: 16px;
  }

  .header-inner { height: auto; flex-wrap: wrap; gap: 0; padding-top: 12px; }
  .brandmark { font-size: 16px; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; gap: 24px; padding: 12px 0; }

  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; padding-bottom: 64px; }
  .hero-media { order: -1; }

  .section { padding-top: 64px; padding-bottom: 64px; }

  .grid, .shop-layout .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }

  .shop-bar { flex-wrap: wrap; }
  .shop-bar .shop-search { max-width: none; flex-basis: 100%; }
  .shop-bar .shop-sort { width: auto; flex: 1; margin-left: 0; }
}

/* =============================================================
   Product page
   ============================================================= */
.preview-bar { background: var(--ink); color: var(--paper); text-align: center; font-size: 13px; padding: 10px 16px; }

.pdp {
  max-width: 1440px; margin: 0 auto; padding: 32px 32px 96px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px; align-items: start;
}

.pdp-gallery { position: relative; }
.gallery-track { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery-item { margin: 0; aspect-ratio: 4 / 5; background: #f4f4f4; overflow: hidden; }
.gallery-item:first-child { grid-column: 1 / -1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { display: none; }

.pdp-sticky { position: sticky; top: 96px; }
.pdp-brand { color: var(--muted); font-size: var(--text-sm); }
.pdp-title { font-size: clamp(32px, 3.3vw, 54px); margin: 10px 0 18px; text-wrap: balance; }
.pdp-price { font-size: 20px; font-weight: 600; }

.preorder-box { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--fg); font-size: var(--text-sm); line-height: 1.6; }
.preorder-box p + p { margin-top: 6px; }

.pdp-label { margin: 28px 0 32px; }

.size-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.size-title { font-weight: 700; font-size: var(--text-sm); }

.unit-toggle { display: inline-flex; border: 1px solid var(--line); }
.unit-toggle button {
  height: 30px; min-width: 44px; padding: 0 10px;
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 12px; font-weight: 600;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.unit-toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.size-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.size-btn {
  height: 50px; border: 1px solid var(--line); background: none;
  color: var(--fg); font: inherit; font-size: var(--text-sm); cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.size-btn:hover:not(:disabled) { border-color: var(--fg); }
.size-btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.size-btn:disabled {
  color: var(--muted); cursor: not-allowed;
  background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--line) 50%, transparent calc(50% + 0.5px));
}

.size-chart-link { margin-top: 14px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.size-note { min-height: 1.5em; margin-top: 14px; font-size: var(--text-sm); color: var(--muted); }
.size-note.is-error { color: var(--alert); }

.btn-lg { height: 58px; font-size: var(--text-md); }
#add { margin-top: 8px; }

.pdp-accordion { margin-top: 36px; border-top: 1px solid var(--line); }
.pdp-accordion details { border-bottom: 1px solid var(--line); }
.pdp-accordion summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--text-sm);
}
.pdp-accordion summary::-webkit-details-marker { display: none; }
.pdp-accordion summary::after { content: "+"; font-weight: 400; font-size: 18px; }
.pdp-accordion details[open] summary::after { content: "−"; }
.details-body { padding-bottom: 20px; font-size: var(--text-sm); line-height: 1.7; white-space: pre-line; color: var(--muted); }

.related { border-top: 1px solid var(--line); }

.notfound { max-width: 720px; margin: 0 auto; padding: 140px 32px; text-align: center; }
.notfound h1 { font-size: clamp(44px, 7vw, 96px); }
.notfound p { margin: 20px 0 32px; color: var(--muted); }

/* Size chart dialog */
.size-dialog { border: 0; padding: 0; width: calc(100% - 32px); max-width: 480px; background: var(--bg); color: var(--fg); }
.size-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.dialog-inner { padding: 28px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dialog-head h2 { font-size: 26px; }
.table-scroll { max-height: 55vh; overflow-y: auto; }
.size-chart { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.size-chart th, .size-chart td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.size-chart th { font-weight: 700; position: sticky; top: 0; background: var(--bg); }
.dialog-note { margin-top: 16px; font-size: var(--text-xs); }

/* =============================================================
   Bag
   ============================================================= */
.bag-btn { position: relative; background: none; border: 0; cursor: pointer; }
.bag-count {
  position: absolute; top: 3px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  font-size: 11px; font-weight: 700; line-height: 1;
}

.bag-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.bag-overlay.is-open { opacity: 1; pointer-events: auto; }

.bag {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.bag.is-open { transform: none; visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }

.bag-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.bag-title { font-size: 26px; }

.bag-items { flex: 1; overflow-y: auto; padding: 0 24px; }
.bag-item { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.bag-item img, .bag-img-empty { width: 88px; aspect-ratio: 4 / 5; object-fit: cover; background: #f4f4f4; }
.bag-brand { font-size: var(--text-xs); color: var(--muted); }
.bag-name { font-size: var(--text-sm); font-weight: 600; line-height: 1.3; }
.bag-meta { font-size: var(--text-xs); color: var(--muted); margin-top: 4px; }
.bag-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.bag-price { font-size: var(--text-sm); font-weight: 600; }
.bag-remove { font-size: var(--text-xs); margin-top: 10px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 32px; height: 32px; background: none; border: 0; color: var(--fg); font: inherit; cursor: pointer; }
.qty button:disabled { color: var(--muted); opacity: 0.4; cursor: not-allowed; }
.qty span { min-width: 24px; text-align: center; font-size: var(--text-sm); }

.bag-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.sum-row { display: flex; justify-content: space-between; font-size: var(--text-sm); padding: 4px 0; }
.sum-row.is-total { font-weight: 700; font-size: var(--text-md); padding-top: 10px; }
.bag-note { font-size: var(--text-xs); color: var(--muted); margin: 10px 0 16px; }
.bag-empty { padding: 72px 0; text-align: center; color: var(--muted); }
.bag-empty .btn { margin-top: 20px; }

/* ---------- Product page: mobile ---------- */
@media (max-width: 1100px) {
  .size-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; padding: 0 0 72px; }
  .gallery-track {
    display: flex; overflow-x: auto; gap: 0;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .gallery-track::-webkit-scrollbar { display: none; }
  .gallery-item { flex: 0 0 100%; scroll-snap-align: start; }
  .gallery-count {
    display: block; position: absolute; right: 12px; bottom: 12px;
    background: var(--paper); color: var(--ink);
    font-size: 12px; font-weight: 600; padding: 4px 10px;
  }
  .pdp-info { padding: 0 16px; }
  .pdp-sticky { position: static; }
}

/* =============================================================
   Account & sign in
   ============================================================= */
.auth { max-width: 440px; margin: 0 auto; padding: 72px 20px 112px; }
.auth-title { font-size: clamp(40px, 6vw, 60px); }
.auth-sub { margin: 14px 0 32px; color: var(--muted); font-size: var(--text-sm); }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.auth-tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 12px 0; cursor: pointer; color: var(--muted); font: inherit; font-size: var(--text-sm);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.auth-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); font-weight: 600; }

.or { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--muted); font-size: var(--text-xs); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-forgot { display: flex; justify-content: flex-end; margin-top: -6px; }
.auth-legal { margin-top: 24px; font-size: var(--text-xs); color: var(--muted); }
.check a { text-underline-offset: 3px; }

.account { max-width: 720px; margin: 0 auto; padding: 72px 20px 112px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.account > * { width: 100%; }
.account > .btn { width: auto; }
.account-title { font-size: clamp(40px, 6vw, 68px); }
.account-email { color: var(--muted); margin-top: -12px; }

.notice { border: 1px solid var(--fg); padding: 20px 22px; font-size: var(--text-sm); line-height: 1.6; }
.notice-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.notice .form-message { margin-top: 10px; }

.account-panel { border-top: 1px solid var(--line); padding-top: 24px; }
.panel-heading { font-size: var(--text-lg); font-weight: 700; margin-bottom: 16px; }
.account-panel .auth-form { max-width: 440px; }
.account-panel .auth-form .btn { align-self: flex-start; }

/* =============================================================
   Legal pages
   ============================================================= */
.legal { max-width: 720px; margin: 0 auto; padding: 72px 20px 112px; }
.legal h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 12px; }
.legal h2 { font-size: var(--text-lg); margin: 36px 0 10px; }
.legal p { line-height: 1.75; }
.legal > .muted { margin-bottom: 28px; font-size: var(--text-sm); }

.btn svg { flex-shrink: 0; }

/* =============================================================
   Checkout
   ============================================================= */
.checkout {
  max-width: 1240px; margin: 0 auto; padding: 56px 32px 112px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start;
}
.co-title { font-size: clamp(40px, 5vw, 72px); margin-bottom: 32px; }
.co-section { border-top: 1px solid var(--line); padding: 28px 0; }
.co-heading { font-size: var(--text-lg); font-weight: 700; margin-bottom: 18px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.co-grid .span-2 { grid-column: 1 / -1; }
.co-grid + .hint { margin-top: 12px; }
.co-save { margin-top: 18px; }
.co-notice { margin-bottom: 8px; }
.co-notice ul { margin: 8px 0 0; padding-left: 18px; }

.co-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.co-groups button {
  height: 48px; border: 1px solid var(--line); background: none; cursor: pointer;
  color: var(--fg); font: inherit; font-size: var(--text-sm);
}
.co-groups button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }

.pay-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.pay-option {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 16px 16px 16px 44px; border: 1px solid var(--line); cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.pay-option:hover { border-color: var(--fg); }
.pay-option:has(input:checked) { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.pay-option input { position: absolute; left: 16px; top: 18px; accent-color: var(--fg); width: 16px; height: 16px; margin: 0; }
.pay-name { font-weight: 600; font-size: var(--text-sm); }
.pay-sub { font-size: var(--text-xs); color: var(--muted); }
.pay-options + .hint { margin-top: 14px; }

.co-summary { position: sticky; top: 96px; }
.co-summary-inner { border: 1px solid var(--line); padding: 28px; }
.co-items { display: flex; flex-direction: column; }
.co-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.co-item img, .co-item .bag-img-empty { width: 64px; aspect-ratio: 4 / 5; object-fit: cover; background: #f4f4f4; }
.co-rows { padding: 16px 0 20px; }
.co-fine { margin-top: 14px; font-size: var(--text-xs); color: var(--muted); line-height: 1.6; }

/* =============================================================
   Order page
   ============================================================= */
.order { max-width: 820px; margin: 0 auto; padding: 48px 20px 112px; }
.order-title { font-size: clamp(36px, 5vw, 64px); margin: 16px 0 14px; }
.order-note { margin-top: 10px; }
.status-pill {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border: 1px solid var(--fg); border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}

.pay-card { margin-top: 32px; border: 1px solid var(--fg); }
.pay-card-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding: 24px 28px; background: var(--ink); color: var(--paper);
}
.pay-card-head .muted { color: var(--smoke); }
.pay-amount { font-stretch: 125%; font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1; margin-top: 6px; }
.countdown { font-size: var(--text-sm); font-weight: 600; }

.pay-body { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 28px; align-items: start; }
.pay-qr { background: #fff; border: 1px solid var(--line); padding: 10px; }
.pay-qr img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pay-steps .box-label { margin-bottom: 20px; }
.steps { margin: 0; padding-left: 20px; font-size: var(--text-sm); line-height: 1.7; }

.copy-btn {
  margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line); background: none;
  font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; color: var(--fg);
}
.copy-btn:hover { border-color: var(--fg); }

.ref-form { display: flex; gap: 12px; align-items: flex-end; padding: 0 28px 8px; flex-wrap: wrap; }
.ref-form .field { flex: 1; min-width: 220px; }
.pay-card > .form-message { padding: 0 28px 20px; }

.order-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; align-items: center; }
.order-section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; }
.order-section p + p { margin-top: 4px; }

/* Account: order list */
.order-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.order-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.order-row:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.order-row > span:first-child { display: flex; flex-direction: column; }
.order-row .muted { font-size: var(--text-xs); }
.order-row-total { font-weight: 600; font-size: var(--text-sm); }

@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px 96px; }
  .co-summary { position: static; }
  .co-summary-inner { padding: 20px; }
  .pay-body { grid-template-columns: 1fr; padding: 20px; }
  .pay-qr { max-width: 280px; margin: 0 auto; }
  .pay-card-head { padding: 20px; }
  .ref-form { padding: 0 20px 8px; }
  .pay-card > .form-message { padding: 0 20px 16px; }
}

@media (max-width: 560px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-groups { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1fr auto; }
  .order-row-total { grid-column: 2; }
}

/* =============================================================
   Pre-order sizes (On hand + Pre-order products)
   ============================================================= */
.size-btn { position: relative; }
.po-mark {
  display: inline-block; margin-left: 4px; padding: 1px 4px;
  border: 1px solid currentColor; font-size: 9px; font-weight: 700; line-height: 1.2;
  vertical-align: 2px;
}
.size-btn .po-mark { position: absolute; top: 3px; right: 3px; margin: 0; }
.size-legend { margin-top: 10px; font-size: var(--text-xs); color: var(--muted); display: flex; align-items: center; gap: 4px; }
.size-legend .po-mark { margin: 0 4px 0 0; color: var(--fg); }

.pdp-request { margin-top: 14px; font-size: var(--text-sm); color: var(--muted); }
.pdp-request a { color: var(--fg); text-underline-offset: 3px; }

/* Rating under the product name */
.pdp-rating {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: var(--text-sm); color: var(--fg); text-decoration: none;
}
.pdp-rating[hidden] { display: none; }
.pdp-rating span { text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   Reviews
   ============================================================= */
.stars { display: inline-flex; gap: 2px; color: var(--fg); vertical-align: middle; }
.star { display: block; }

.reviews { border-top: 1px solid var(--line); }
.reviews-inner { max-width: 1440px; margin: 0 auto; padding: 72px 32px; }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.reviews-summary { display: flex; align-items: center; gap: 12px; }
.reviews-avg { font-stretch: 125%; font-weight: 800; font-size: 40px; line-height: 1; }

.reviews-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: start; }
.review-list { display: flex; flex-direction: column; }
.review { padding: 24px 0; border-bottom: 1px solid var(--line); }
.review:first-child { padding-top: 0; }
.review-title { font-size: var(--text-md); font-weight: 700; margin-top: 10px; }
.review-body { margin-top: 8px; line-height: 1.7; white-space: pre-line; }
.review-meta { margin-top: 12px; font-size: var(--text-xs); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.review-badge { padding: 2px 8px; border: 1px solid var(--fg); font-weight: 700; }
.review-source { color: var(--muted); }
.review-list > .btn { margin-top: 24px; align-self: flex-start; }

.review-write { border: 1px solid var(--line); padding: 28px; position: sticky; top: 96px; }
.review-write-title { font-size: var(--text-lg); font-weight: 700; margin-bottom: 12px; }
.review-write > .muted { margin-bottom: 16px; font-size: var(--text-sm); }
.review-status { margin-top: 10px; font-size: var(--text-sm); }

.rate-input { display: flex; gap: 4px; }
.rate-star { background: none; border: 0; padding: 2px; cursor: pointer; color: var(--fg); }

/* =============================================================
   Request a pair
   ============================================================= */
.request-band { border-top: 1px solid var(--line); }
.request-band-inner {
  max-width: 1440px; margin: 0 auto; padding: 80px 32px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
}
.request-band-title { font-size: clamp(36px, 5vw, 72px); }
.request-band-text { margin-top: 16px; max-width: 560px; color: var(--muted); }

.request-hero-inner { max-width: 1440px; margin: 0 auto; padding: 80px 32px 64px; }
.request-title { font-size: clamp(52px, 9vw, 136px); }
.request-lede { margin-top: 24px; max-width: 620px; color: var(--muted); font-size: var(--text-lg); line-height: 1.6; }

.request-wrap { max-width: 860px; margin: 0 auto; padding: 32px 20px 112px; }
.request-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.request-done { padding: 48px 0; }
.request-done h2 { font-size: clamp(36px, 5vw, 60px); }
.request-done p { margin: 16px 0 28px; color: var(--muted); }
.empty-request { margin-top: 24px; font-size: var(--text-sm); }
.empty-request a { color: var(--fg); }

@media (max-width: 900px) {
  .reviews-inner { padding: 56px 16px; }
  .reviews-layout { grid-template-columns: 1fr; gap: 40px; }
  .review-write { position: static; padding: 20px; }
  .request-band-inner, .request-hero-inner { padding-left: 16px; padding-right: 16px; }
}

/* =============================================================
   Complete your order (pay flow)
   ============================================================= */
.cy { max-width: 1240px; margin: 0 auto; padding: 48px 32px 112px; }
.cy-head { margin-bottom: 40px; }
.cy-page-title { font-size: clamp(40px, 5.5vw, 76px); margin: 16px 0 10px; }

.cy-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }

.cy-summary { border: 1px solid var(--line); padding: 28px; position: sticky; top: 96px; }
.cy-delivery { border-top: 1px solid var(--line); padding-top: 16px; font-size: var(--text-sm); }
.cy-delivery p + p { margin-top: 2px; }

.cy-deadline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: var(--text-sm); font-weight: 600; margin-bottom: 32px; }

.cy-step { display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding-bottom: 36px; }
.cy-num {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--fg);
  display: grid; place-items: center; font-weight: 600; font-size: var(--text-sm);
}
.cy-title { font-stretch: 112%; font-size: 22px; font-weight: 700; margin: 6px 0 18px; }
.cy-body .hint { margin-top: 12px; }

.method-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.method-chip {
  height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: none; cursor: pointer;
  color: var(--fg); font: inherit; font-size: var(--text-sm); font-weight: 600;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.method-chip:hover { border-color: var(--fg); }
.method-chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.cy-pay { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: stretch; }
.cy-pay .pay-qr { padding: 8px; }
.cy-accounts { display: grid; gap: 10px; align-content: start; }
.cy-field { border: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.cy-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cy-value { font-size: var(--text-md); font-weight: 600; word-break: break-word; }

.cy-amount {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--fg); padding: 22px 24px;
}
.cy-amount .muted { font-size: var(--text-sm); }
.cy-amount-num { margin-left: auto; font-stretch: 125%; font-weight: 800; font-size: clamp(32px, 4.5vw, 48px); line-height: 1; }

.cy-alt { display: block; margin-top: 14px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.cy-step .ref-form { padding: 0; }

.cy-info { border: 1px solid var(--line); padding: 20px 24px; margin-left: 60px; font-size: var(--text-sm); line-height: 1.6; }
.cy-info a { color: var(--fg); }
.cy-info .btn-text { margin-top: 12px; font-size: 13px; }

@media (max-width: 900px) {
  .cy { padding: 32px 16px 96px; }
  .cy-layout { grid-template-columns: 1fr; gap: 32px; }
  .cy-summary { position: static; padding: 20px; order: 2; }
  .cy-flow { order: 1; }
  .cy-step { grid-template-columns: 32px 1fr; gap: 14px; }
  .cy-num { width: 32px; height: 32px; }
  .cy-pay { grid-template-columns: 1fr; }
  .cy-pay .pay-qr { max-width: 260px; }
  .cy-info { margin-left: 0; }
}

/* Sizes reserved by someone who's paying */
.size-btn.is-held { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--surface-hi) 6px 7px); }
.hold-mark { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.02em; margin-top: 1px; }
.size-btn.is-held { line-height: 1.1; }
.hold-legend { display: block; }
.hold-legend[hidden] { display: none; }

/* =============================================================
   Men's / Women's size tables
   ============================================================= */
.fit-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.fit-tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 12px 0; cursor: pointer; color: var(--muted); font: inherit; font-size: var(--text-sm);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.fit-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); font-weight: 700; }
.fit-only { font-weight: 500; color: var(--muted); }
.size-fixed-note { margin-top: 12px; font-size: var(--text-sm); padding: 10px 12px; border-left: 2px solid var(--fg); background: var(--surface); }
.chart-fit { font-size: var(--text-sm); font-weight: 700; margin: 18px 0 6px; }
.chart-fit:first-child { margin-top: 0; }

/* =============================================================
   Product photos: magnify on hover, open full screen
   ============================================================= */
.gallery-item[data-zoom] { cursor: zoom-in; position: relative; }
.gallery-item img { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; }
.gallery-item.is-magnified img { transform: scale(1.9); transition-duration: 0.2s; }
.gallery-item[data-zoom]:focus-visible { outline: 2px solid var(--fg); outline-offset: -2px; }

.gallery-expand {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 999px;
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.15s var(--ease), background-color 0.2s var(--ease);
}
.gallery-expand:hover { background: #fff; }
.gallery-expand:active { transform: scale(0.96); }

/* =============================================================
   Full-screen photo viewer
   ============================================================= */
html.lb-lock, html.lb-lock body { overflow: hidden; }

.lb {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-rows: auto 1fr auto;
  color: var(--paper);
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lb.is-open { opacity: 1; }
.lb.is-closing { opacity: 0; }

.lb-backdrop { position: absolute; inset: 0; background: #000; transition: opacity 0.2s linear; }

.lb-top {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top));
}
.lb-count { font-size: var(--text-sm); font-weight: 600; font-variant-numeric: tabular-nums; }

.lb-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: var(--paper);
  border: 0; cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.12s var(--ease), opacity 0.2s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-btn:active { transform: scale(0.94); }
.lb-btn:disabled { opacity: 0.25; cursor: default; }
.lb-btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

.lb-stage { position: relative; z-index: 1; overflow: hidden; touch-action: none; cursor: grab; }
.lb.is-zoomed .lb-stage { cursor: move; }
.lb-track { display: flex; height: 100%; will-change: transform; }
.lb-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
.lb-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
  will-change: transform;
}

.lb-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); }
.lb-nav:active { transform: translateY(-50%) scale(0.94); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-thumbs {
  position: relative; z-index: 2;
  display: flex; gap: 8px; justify-content: center;
  padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom));
  overflow-x: auto; scrollbar-width: none;
}
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb {
  flex: 0 0 auto; width: 56px; height: 70px; padding: 0;
  border: 1px solid transparent; background: #1a1a1a; cursor: pointer; opacity: 0.5;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb[aria-selected="true"] { opacity: 1; border-color: var(--paper); }
.lb-thumb:hover { opacity: 0.85; }

.lb-hint {
  position: absolute; left: 50%; bottom: 104px; z-index: 2; transform: translateX(-50%);
  font-size: 12px; color: rgba(255, 255, 255, 0.7); pointer-events: none;
  animation: lb-hint 3.2s ease forwards;
}
.lb.is-zoomed .lb-hint { display: none; }
@keyframes lb-hint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 760px) {
  .lb-nav { display: none; }
  .lb-thumb { width: 44px; height: 55px; }
  .lb-hint { bottom: 92px; }
}
@media (hover: none) {
  .gallery-item[data-zoom] { cursor: default; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item.is-magnified img { transform: none; }
  .lb, .lb-backdrop { transition: none; }
  .lb-hint { animation: none; }
}

/* =============================================================
   Checkout: join popup
   ============================================================= */
.join-overlay {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  animation: join-fade 0.3s var(--ease) both;
}
.join-card {
  width: 100%; max-width: 480px;
  background: var(--paper); color: var(--ink);
  padding: 36px 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  animation: join-rise 0.4s var(--ease) both;
}
.join-kicker { font-size: var(--text-xs); color: #6b6b6b; }
.join-title { font-size: clamp(34px, 6vw, 48px); }
.join-sub { color: #6b6b6b; font-size: var(--text-sm); margin-bottom: 4px; }
.perks { list-style: none; margin: 4px 0 12px; padding: 0; border-top: 1px solid var(--ash); }
.perks li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--ash); position: relative; font-size: var(--text-sm); }
.perks li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 14px; height: 14px;
  background: var(--ink);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.perks strong { display: block; }
.perks span { display: block; color: #6b6b6b; margin-top: 2px; line-height: 1.5; }
.join-guest { align-self: center; margin-top: 4px; font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 3px; }
.join-fine { text-align: center; font-size: var(--text-xs); color: #6b6b6b; line-height: 1.5; }
.guest-note { margin-bottom: 28px; }
.guest-note a, .co-main .notice a { color: var(--fg); }
@keyframes join-fade { from { opacity: 0; } }
@keyframes join-rise { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 560px) {
  .join-overlay { place-items: end center; padding: 0; }
  .join-card { max-width: none; padding: 28px 20px calc(20px + env(safe-area-inset-bottom)); }
}

/* =============================================================
   Urgency: promo bar, countdowns, low stock
   ============================================================= */
.promo-bar { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--ink); }
.promo-inner {
  max-width: 1440px; margin: 0 auto; padding: 9px 32px;
  display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13px; font-weight: 600; text-align: center;
}
.promo-timer {
  font-variant-numeric: tabular-nums; font-weight: 800; font-stretch: 112%;
  padding: 3px 8px; background: var(--ink); color: var(--paper); letter-spacing: 0.02em;
}
.promo-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.urgency {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: var(--text-sm); font-weight: 600;
}
.urgency strong { font-variant-numeric: tabular-nums; font-stretch: 112%; }
.urgency-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--fg); flex-shrink: 0;
  animation: urgency-pulse 1.6s ease-in-out infinite;
}
@keyframes urgency-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.po-closes { margin-top: 8px; }
.po-closes strong { font-variant-numeric: tabular-nums; }

.tag [data-countdown] { font-variant-numeric: tabular-nums; }
.card-tags { flex-wrap: wrap; right: 10px; }

@media (max-width: 760px) {
  .promo-inner { padding: 8px 16px; gap: 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .urgency-dot { animation: none; }
}

/* =============================================================
   Coupons at checkout
   ============================================================= */
.coupon-box { border-top: 1px solid var(--line); padding: 16px 0 18px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form .input { flex: 1; text-transform: uppercase; }
.coupon-form .input::placeholder { text-transform: none; }
.coupon-applied { font-size: var(--text-sm); display: flex; align-items: center; gap: 10px; }
.coupon-applied .btn-text { font-size: 13px; text-decoration: underline; }
.coupon-row span:last-child { font-weight: 700; }
.coupon-box .hint { margin: 12px 0 8px; }
.reward-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.reward-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 12px; border: 1px dashed var(--fg); background: none; color: var(--fg);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.reward-chip span { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.reward-chip:hover { background: var(--fg); color: var(--bg); }
.reward-chip:hover span { color: var(--bg); }

/* =============================================================
   Spin & Win
   ============================================================= */
.spin-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; margin-bottom: 20px;
  background: var(--ink); color: var(--paper);
}
.spin-banner .muted { color: var(--smoke); font-size: var(--text-sm); }
.spin-banner-title { font-stretch: 125%; font-weight: 800; font-size: 20px; }
.spin-banner .btn-primary { background: var(--paper); color: var(--ink); }

.spin-overlay {
  position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, 0.72); overflow-y: auto;
  animation: join-fade 0.3s var(--ease) both;
}
.spin-card {
  position: relative; width: 100%; max-width: 440px;
  background: var(--paper); color: var(--ink); padding: 32px 28px 24px; text-align: center;
  animation: join-rise 0.4s var(--ease) both;
}
.spin-close {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px;
  border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink);
}
.spin-title { font-size: clamp(34px, 7vw, 48px); }
.spin-sub { color: #6b6b6b; font-size: var(--text-sm); margin-top: 8px; }

.wheel { position: relative; width: min(320px, 78vw); aspect-ratio: 1; margin: 24px auto 20px; }
.wheel-rotor { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 6px var(--ink); will-change: transform; }
.wheel-svg { width: 100%; height: 100%; display: block; }
.wheel-pointer {
  position: absolute; left: 50%; top: -14px; z-index: 2; transform: translateX(-50%);
  width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 26px solid var(--ink);
  filter: drop-shadow(0 2px 0 var(--paper));
}
.spin-result { min-height: 24px; margin-bottom: 14px; }
.spin-win { font-size: var(--text-lg); }
.spin-code {
  display: inline-block; margin: 10px 0 8px; padding: 10px 18px;
  border: 2px dashed var(--ink); font-stretch: 125%; font-weight: 800; font-size: 22px; letter-spacing: 0.08em;
}
.spin-result .muted { color: #6b6b6b; font-size: var(--text-sm); }
.spin-odds { margin-top: 16px; text-align: left; font-size: var(--text-sm); }
.spin-odds summary { cursor: pointer; text-align: center; color: #6b6b6b; text-decoration: underline; text-underline-offset: 3px; }
.spin-odds ul { list-style: none; margin: 12px 0 8px; padding: 0; border-top: 1px solid var(--ash); }
.spin-odds li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--ash); }

/* My rewards (account) */
.reward-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.reward-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.reward-item > div { display: flex; flex-direction: column; }
.reward-item .muted { font-size: var(--text-xs); }
.reward-code { font-weight: 800; letter-spacing: 0.06em; padding: 6px 10px; border: 1px dashed var(--fg); font-size: 13px; }
.reward-item.is-off { opacity: 0.45; }

/* Order terms (no cancellations, pre-order rules) */
.co-terms { align-items: flex-start; margin: 4px 0 16px; font-size: 13px; line-height: 1.55; }
.co-terms input { margin-top: 2px; flex-shrink: 0; }
.cy-policy { margin-top: 10px; font-size: var(--text-xs); line-height: 1.6; }
.po-terms { margin-top: 8px; font-size: var(--text-xs); font-weight: 600; }
.balance-deadline { border: 1px solid var(--fg); padding: 14px 18px; margin: -12px 0 28px; font-size: var(--text-sm); line-height: 1.6; }
.balance-deadline .muted { font-size: var(--text-xs); }
.bd-left [data-countdown] { font-variant-numeric: tabular-nums; font-weight: 700; }

/* =============================================================
   Laces (loyalty)
   ============================================================= */
.laces-line { margin-top: 8px; font-size: var(--text-sm); color: var(--muted); }
.laces-line strong { color: var(--fg); }
.laces-earn { font-size: var(--text-sm); margin: 4px 0 12px; }
.laces-earn a { color: var(--fg); }

.laces-card { background: var(--ink); color: var(--paper); padding: 26px 26px 22px; }
.laces-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.laces-label { font-size: var(--text-xs); color: var(--smoke); }
.laces-balance { font-stretch: 125%; font-weight: 800; font-size: clamp(44px, 8vw, 64px); line-height: 1; margin-top: 6px; }
.laces-tier { text-align: right; }
.laces-tier-name { font-stretch: 125%; font-weight: 800; font-size: 24px; margin-top: 6px; }
.laces-progress { height: 4px; background: rgba(255, 255, 255, 0.18); margin: 20px 0 10px; }
.laces-progress span { display: block; height: 100%; background: var(--paper); transition: width 0.8s var(--ease); }
.laces-next { font-size: var(--text-sm); }
.laces-perks, .laces-how { font-size: var(--text-xs); color: var(--smoke); margin-top: 8px; line-height: 1.6; }

.laces-sub { font-size: var(--text-md); font-weight: 700; margin: 26px 0 10px; }
.laces-rewards { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.laces-reward { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.laces-reward > div { display: flex; flex-direction: column; gap: 2px; }
.laces-reward .muted { font-size: var(--text-xs); }
.laces-reward .btn { white-space: nowrap; }
.laces-reward.is-off strong { color: var(--muted); }
.laces-history { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); font-size: var(--text-sm); }
.laces-history li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.laces-history li span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }

/* =============================================================
   Reseller program
   ============================================================= */
.rs-hero-inner { max-width: 1440px; margin: 0 auto; padding: 80px 32px 64px; }
.rs-title { font-size: clamp(52px, 9vw, 136px); }
.rs-lede { margin-top: 24px; max-width: 620px; color: var(--muted); font-size: var(--text-lg); line-height: 1.6; }

.rs-wrap { max-width: 900px; margin: 0 auto; padding: 48px 20px 112px; }
.rs-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 40px; }
.rs-steps > div { border-top: 2px solid var(--fg); padding-top: 16px; }
.rs-steps strong { display: block; font-size: var(--text-lg); margin: 10px 0 6px; }
.rs-steps p { font-size: var(--text-sm); line-height: 1.6; }
.rs-num { font-stretch: 125%; font-weight: 800; font-size: 28px; }
.rs-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.rs-form { border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 40px; }
.rs-wholesale { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border: 1px solid var(--line); padding: 22px 24px; }
.rs-wholesale .co-heading { margin-bottom: 4px; }

.rs-dash { display: flex; flex-direction: column; gap: 24px; }
.rs-dash-title { font-size: clamp(40px, 6vw, 68px); }
.rs-code-card { background: var(--ink); color: var(--paper); padding: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.rs-code { font-stretch: 125%; font-weight: 800; font-size: clamp(36px, 7vw, 56px); letter-spacing: 0.04em; line-height: 1; margin-top: 6px; }
.rs-code-sub { margin-top: 10px; font-size: var(--text-sm); color: var(--smoke); }
.rs-code-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rs-code-card .btn-primary { background: var(--paper); color: var(--ink); }
.rs-light { color: var(--paper); border-color: rgba(255, 255, 255, 0.3); }
.rs-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.rs-stats > div { border: 1px solid var(--line); padding: 14px 16px; }
.rs-stats span { display: block; font-size: var(--text-xs); color: var(--muted); }
.rs-stats strong { display: block; margin-top: 4px; font-size: 20px; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .rs-hero-inner { padding: 56px 16px 40px; }
  .rs-steps { grid-template-columns: 1fr; }
  .rs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =============================================================
   Custom checkout link
   ============================================================= */
.pl-item { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; margin-bottom: 8px; }
.pl-item img, .pl-noimg { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #f4f4f4; }
.pl-title { font-size: clamp(28px, 4vw, 44px); margin: 8px 0 18px; }
.pl-label { margin-bottom: 14px; }
.pl-note { font-size: var(--text-sm); color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
@media (max-width: 560px) { .pl-item { grid-template-columns: 1fr; } .pl-item img, .pl-noimg { max-width: 240px; } }
.pl-head { margin-bottom: 20px; }
.pl-items { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-bottom: 18px; }
.pl-items .pl-item { grid-template-columns: 120px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.pl-name { font-weight: 700; font-size: var(--text-md); margin: 4px 0 10px; }
.pl-items .pl-label { margin: 0; max-width: 360px; }
.pl-terms-label { max-width: 420px; margin-bottom: 14px; }
@media (max-width: 560px) { .pl-items .pl-item { grid-template-columns: 90px 1fr; } }

/* =============================================================
   Home: hero carousel
   ============================================================= */
.hc { position: relative; }
.hc-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.hc-track::-webkit-scrollbar { display: none; }
.hc-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.hc .hero-inner { padding-bottom: 112px; }

/* Keep long names inside their column so they never cover the photo */
.hero-copy { min-width: 0; }
.hero-title { overflow-wrap: anywhere; hyphens: auto; }
.hero-title.is-mid { font-size: clamp(38px, 5vw, 80px); }
.hero-title.is-long { font-size: clamp(32px, 3.9vw, 62px); }
.hero-sub { color: var(--muted); margin: -20px 0 28px; font-size: var(--text-md); }
.hero-media { min-width: 0; }

.hc-controls {
  position: absolute; left: 0; right: 0; bottom: 36px;
  max-width: 1440px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 16px;
}
.hc-arrow {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--paper); cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.12s var(--ease);
}
.hc-arrow:hover { border-color: var(--paper); }
.hc-arrow:active { transform: scale(0.94); }
.hc-dots { display: flex; gap: 8px; }
.hc-dot { width: 36px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.hc-dot span { display: block; height: 2px; background: rgba(255, 255, 255, 0.25); position: relative; overflow: hidden; }
.hc-dot span::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: left; }
.hc-dot[aria-selected="true"] span::after { transform: scaleX(1); }
.hc-dot span.is-playing::after { transform: scaleX(0); animation: hc-fill var(--dur, 5s) linear forwards; }
@keyframes hc-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =============================================================
   Home: member benefits
   ============================================================= */
.benefits { background: var(--ink); color: var(--paper); }
.benefits-inner {
  max-width: 1440px; margin: 0 auto; padding: 96px 32px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start;
}
.benefits-title { font-size: clamp(40px, 5.5vw, 80px); }
.benefits-sub { color: var(--smoke); margin: 18px 0 28px; max-width: 420px; }
.benefits .btn-primary { background: var(--paper); color: var(--ink); }
.benefits-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.benefits-list li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.benefit-num { font-stretch: 125%; font-weight: 800; color: var(--smoke); font-variant-numeric: tabular-nums; }
.benefits-list strong { display: block; font-size: var(--text-lg); }
.benefits-list p { color: var(--smoke); font-size: var(--text-sm); margin-top: 4px; line-height: 1.6; }

/* =============================================================
   Home: testimonials
   ============================================================= */
.testimonials { border-top: 1px solid var(--line); }
.testimonials-inner { max-width: 1440px; margin: 0 auto; padding: 88px 32px; }
.testimonials-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.store-rating { display: flex; align-items: center; gap: 14px; }
.store-rating-num { font-stretch: 125%; font-weight: 800; font-size: 56px; line-height: 1; }
.store-rating .muted { font-size: var(--text-sm); margin-top: 4px; }
.testimonial-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 360px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin;
}
.testimonial { margin: 0; border: 1px solid var(--line); padding: 24px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.testimonial-title { font-weight: 700; }
.testimonial blockquote { margin: 0; line-height: 1.7; flex: 1; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption span { font-size: var(--text-xs); color: var(--muted); }

@media (max-width: 900px) {
  .benefits-inner { grid-template-columns: 1fr; gap: 36px; padding: 64px 16px; }
  .testimonials-inner { padding: 64px 16px; }
}
@media (max-width: 760px) {
  .hc .hero-inner { padding-bottom: 96px; }
  .hc-controls { bottom: 28px; padding: 0 16px; }
  .hero-title.is-mid { font-size: clamp(34px, 9vw, 52px); }
  .hero-title.is-long { font-size: clamp(28px, 7.5vw, 42px); }
}

/* Shop filters: counts, brand search, size systems */
.filter-check { width: 100%; }
.filter-check span:first-of-type { flex: 1; }
.filter-n { font-size: var(--text-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.filter-count { color: var(--muted); font-weight: 500; }
.filter-search { height: 38px; margin-bottom: 12px; font-size: var(--text-sm); }
.filter-more { margin-top: 10px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.filter-sys { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; }
.filter-sys .filter-title { margin: 0; }
.filter-sys + .filter-group { border-top: 0; padding-top: 6px; }

/* Automatic promos */
.tag-promo { background: var(--ink); color: var(--paper); }
.theme-dark .tag-promo, .hero .tag-promo { background: var(--paper); color: var(--ink); }
.promo-line { margin-top: 10px; font-size: var(--text-sm); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.promo-note { font-size: var(--text-sm); }
.promo-note span:last-child { color: var(--muted); }

/* =============================================================
   Install the app
   ============================================================= */
.install-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper); padding: 12px 12px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(140%); transition: transform 0.35s var(--ease);
}
.install-banner.is-in { transform: none; }
.install-banner img { border-radius: 10px; flex-shrink: 0; }
.install-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; }
.install-copy span { color: var(--smoke); }
.install-copy b { color: var(--paper); }
.install-go { background: var(--paper); color: var(--ink); border: 0; height: 36px; padding: 0 16px; font-weight: 700; cursor: pointer; }
.install-x { background: none; border: 0; color: var(--smoke); font-size: 22px; width: 32px; height: 32px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .install-banner { transition: none; } }

/* Running as an installed app: respect the phone's notch and home bar */
.is-app .site-header { padding-top: env(safe-area-inset-top, 0px); }
.is-app body { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Unisex size grid: "M9/W10", three per row like the big sneaker stores */
.size-grid.is-unisex { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.size-grid.is-unisex .size-btn { height: 52px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.size-grid.is-unisex .size-btn:disabled { text-decoration: line-through; background: rgba(0, 0, 0, 0.04); }
@media (max-width: 380px) { .size-grid.is-unisex .size-btn { font-size: 13px; } }
