:root {
  --bg: #FFFFFF;
  --bg-muted: #F3F4F6;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --accent: #116DFF;
  --accent-contrast: #FFFFFF;
  --border: #E2E8F0;
  --footer-bg: #FFFFFF;
  --footer-text: #0F172A;
  --space-base: 8px;
  --gutter: 20px;
  --gutter-desktop: 40px;
  --content-max: 1440px;
  --header-h: 56px;
  --header-h-desktop: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.shell { flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.main { flex: 1; }
.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
@media (min-width: 768px) {
  .wrap { padding-left: var(--gutter-desktop); padding-right: var(--gutter-desktop); }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40; /* containing block for .mega-panel */
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
@media (min-width: 768px) { .site-header { height: var(--header-h-desktop); } }
.site-header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark { font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; text-decoration: none; }
.wordmark:hover { text-decoration: none; color: var(--text); }
.nav-desktop { display: none; gap: 28px; align-items: center; }
.nav-desktop a { font-size: 0.875rem; color: var(--text); }
.nav-desktop a:hover { text-decoration: underline; }
.nav-utility {
  display: none; gap: 12px; align-items: center;
  margin-left: 8px; padding-right: 12px;
  border-right: 1px solid var(--border);
}
.nav-utility a {
  font-size: 0.75rem; color: var(--muted); text-decoration: none;
  white-space: nowrap;
}
.nav-utility a:hover { color: var(--text); text-decoration: underline; }
.header-right {
  display: flex; align-items: center; gap: 12px; margin-left: auto;
  position: relative; z-index: 60; /* cart never covered by mega */
}
.cart-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; color: var(--text); text-decoration: none;
  min-height: 44px; padding: 0 4px;
}
.cart-link:hover { text-decoration: none; }
.cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--accent); color: var(--accent-contrast);
  font-size: 11px; font-weight: 600;
}
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--text);
}
@media (min-width: 768px) {
  .menu-btn { display: none; }
  .nav-desktop { display: flex; }
  .nav-utility { display: flex; }
}

/* Mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: 50; display: none;
}
.sheet.is-open { display: block; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.35); }
.sheet__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(300px, 86vw);
  background: var(--surface); padding: 24px 20px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.sheet__panel a {
  font-size: 1rem; padding: 12px 8px; border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.sheet__close {
  align-self: flex-end; border: 0; background: transparent; font-size: 1.25rem;
  min-width: 44px; min-height: 44px;
}

/* Category mega-nav (P2) */
.mega-nav {
  display: none; /* mobile: drawer only */
  align-items: stretch;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}
@media (min-width: 768px) {
  .mega-nav { display: flex; } /* P0: must come AFTER mobile display:none */
}
.mega-rail {
  position: static;
}
.mega-rail__trigger {
  appearance: none; border: 0; background: transparent;
  font: inherit; font-size: 0.875rem; color: var(--text);
  padding: 8px 10px; min-height: 44px; cursor: pointer;
  white-space: nowrap;
}
.mega-rail__trigger:hover,
.mega-rail.is-open .mega-rail__trigger,
.mega-rail:focus-within .mega-rail__trigger {
  text-decoration: underline;
}
.mega-rail__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.mega-panel {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  z-index: 45;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}
.mega-rail:hover .mega-panel,
.mega-rail:focus-within .mega-panel,
.mega-rail.is-open .mega-panel {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .mega-panel {
    transition: opacity 180ms ease, transform 180ms ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mega-panel { transition: none; }
}
.mega-panel__inner {
  padding-top: 20px;
  padding-bottom: 20px;
  max-width: var(--content-max, 1440px);
}
.mega-panel__parent {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.mega-panel__cols {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
}
@media (min-width: 900px) {
  .mega-panel__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .mega-panel__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mega-panel__cols a {
  display: block;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
}
.mega-panel__cols a:hover { text-decoration: underline; }
.mega-panel__cols a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.mega-panel__view-all {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
}
.mega-panel__view-all:hover {
  color: var(--accent);
  text-decoration: underline;
}
.mega-panel__view-all:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile category accordion (drawer) */
.sheet__section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 8px 4px;
}
.sheet__divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}
.mobile-acc {
  border-bottom: 1px solid var(--border);
}
.mobile-acc__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  appearance: none; border: 0; background: transparent;
  font: inherit; font-size: 1rem; color: var(--text);
  text-align: left;
  padding: 12px 8px;
  min-height: 44px;
  cursor: pointer;
}
.mobile-acc__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mobile-acc__chev {
  color: var(--muted);
  transition: transform 150ms ease;
}
.mobile-acc.is-open .mobile-acc__chev {
  transform: rotate(90deg);
}
@media (prefers-reduced-motion: reduce) {
  .mobile-acc__chev { transition: none; }
}
.mobile-acc__body {
  display: flex;
  flex-direction: column;
  padding: 0 8px 12px 16px;
  gap: 0;
}
.mobile-acc__body[hidden] { display: none !important; }
.mobile-acc__body a {
  font-size: 0.9375rem;
  padding: 10px 8px;
  border-bottom: 0;
  text-decoration: none;
  color: var(--text);
}
.mobile-acc__view-all {
  font-weight: 500;
  color: var(--text);
  margin-top: 4px;
}
.mobile-acc__view-all:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: none; border-radius: var(--radius-md);
  padding: 12px 20px; font-size: 0.875rem; font-weight: 500;
  line-height: 1; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-primary:disabled, .btn-stub {
  background: #E2E8F0; color: #64748B; cursor: not-allowed;
}
.chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--bg-muted);
  font-size: 0.75rem; color: var(--text);
}

/* Hero */
.hero {
  background: var(--bg-muted);
  padding: 48px 0;
}
.hero h1 { margin: 0 0 12px; font-size: 2rem; font-weight: 600; line-height: 1.2; }
.hero p { margin: 0 0 20px; color: var(--muted); max-width: 36rem; }

/* Sections */
.section { padding: 40px 0; }
.section__label {
  margin: 0 0 16px; font-size: 1.25rem; font-weight: 600; line-height: 1.35;
}
.page-title { margin: 0 0 16px; font-size: 2rem; font-weight: 600; }
.empty {
  padding: 32px; text-align: center; color: var(--muted);
  background: var(--bg-muted); border-radius: var(--radius-md);
}

/* Grids */
.product-grid, .collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 768px) {
  .product-grid, .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.product-card, .collection-card {
  display: block; color: inherit; text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
  background: var(--surface);
}
.product-card:hover, .collection-card:hover { text-decoration: none; border-color: #cbd5e1; }
.product-card__img, .collection-card__img {
  aspect-ratio: 1; background: var(--bg-muted); object-fit: cover; width: 100%;
}
.collection-card__initials {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--bg-muted); color: var(--muted); font-weight: 700; font-size: 1.5rem;
}
.product-card__meta, .collection-card__meta { padding: 12px; }
.product-card__title, .collection-card__title {
  font-size: 0.875rem; font-weight: 500; margin: 0 0 4px;
}
.product-card__price { font-size: 0.875rem; font-weight: 600; margin: 0; }

/* PDP */
.pdp {
  display: grid; gap: 24px; padding: 32px 0;
}
@media (min-width: 768px) {
  .pdp { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
}
.pdp__img {
  width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-muted);
  border-radius: var(--radius-md); border: 1px solid var(--border);
}
.pdp__title { margin: 0 0 8px; font-size: 1.75rem; font-weight: 600; }
.pdp__desc {
  color: var(--muted); margin: 0 0 16px; font-size: 0.9375rem; line-height: 1.55;
}
.pdp__price { margin: 0 0 20px; font-size: 1.125rem; font-weight: 600; }
.variant-group { margin-bottom: 16px; }
.variant-group__label { display: block; font-size: 0.8125rem; font-weight: 500; margin-bottom: 8px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-opt {
  min-height: 36px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); font-size: 0.8125rem;
}
.variant-opt.is-active { border-color: var(--accent); color: var(--accent); }
.swatch {
  width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--border);
  padding: 0;
}
.swatch.is-active { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Cart */
.cart-layout {
  display: grid; gap: 24px; padding: 32px 0;
}
@media (min-width: 768px) {
  .cart-layout { grid-template-columns: 1fr 320px; align-items: start; }
}
.cart-line {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--border); align-items: center;
}
.cart-line img {
  width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm);
  background: var(--bg-muted);
}
.cart-line__title { margin: 0 0 4px; font-size: 0.9375rem; font-weight: 500; }
.cart-line__meta { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.qty {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
}
.qty button {
  width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
}
.qty span { min-width: 24px; text-align: center; font-size: 0.875rem; }
.cart-line__price { font-weight: 600; font-size: 0.875rem; }
.cart-line__remove {
  border: 0; background: transparent; color: var(--muted); font-size: 1.25rem;
  min-width: 44px; min-height: 44px;
}
.cart-summary {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px;
  background: var(--surface);
}
.cart-summary__row {
  display: flex; justify-content: space-between; margin-bottom: 16px; font-weight: 600;
}
.cart-summary .btn { width: 100%; }
.cart-note { margin: 12px 0 0; font-size: 0.8125rem; color: var(--muted); }

/* Footer — premium white 5-col (BASIC-FOOTER-SPEC) */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 0 64px;
  align-items: start;
}
@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
  }
}
@media (min-width: 960px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
    gap: 40px 48px;
    padding: 80px 0 88px;
  }
}
.site-footer__col {
  text-align: left;
  min-width: 0;
}
.site-footer__brand {
  margin: 0 0 16px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--footer-text);
  line-height: 1.3;
}
.site-footer__heading {
  margin: 0 0 20px;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--footer-text);
  line-height: 1.3;
}
.site-footer__about,
.site-footer__newsletter-blurb,
.site-footer__line,
.site-footer__nav a,
.site-footer__field-label,
.site-footer__toast {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--footer-text);
}
.site-footer__about {
  margin: 0 0 28px;
  max-width: 28ch;
}
.site-footer__newsletter {
  margin: 0;
}
.site-footer__newsletter .site-footer__heading {
  margin-bottom: 8px;
}
.site-footer__newsletter-blurb {
  margin: 0 0 16px;
  font-style: italic;
  color: #3f3f46;
}
.site-footer__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.site-footer__field-label {
  font-style: normal;
}
.site-footer__input {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid #27272a;
  border-radius: 0;
  padding: 6px 0 8px;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--footer-text);
  outline: none;
  width: 100%;
  max-width: 280px;
}
.site-footer__input:focus {
  border-bottom-color: var(--text);
}
.site-footer__toast {
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.site-footer__nav a,
.site-footer__hq a {
  color: var(--footer-text);
  text-decoration: none;
}
.site-footer__nav a:hover,
.site-footer__hq a:hover,
.site-footer a:hover {
  text-decoration: none;
  opacity: 0.7;
}
.site-footer__line {
  margin: 0 0 8px;
}
.site-footer__line:last-child {
  margin-bottom: 0;
}
.site-footer__line--muted {
  color: var(--muted);
}
.site-footer__hq {
  font-family: var(--font-serif);
}

/* Sale / ribbon / inventory (BASIC-SPEC §1b) */
.product-card__media { position: relative; }
.ribbon {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  background: var(--text); color: var(--bg); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.ribbon--inline { position: static; display: inline-block; margin-bottom: 8px; }
.price--sale { color: var(--accent); margin-right: 8px; }
.price--strike { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 0.875em; }
.product-card__img--empty, .pdp__img--empty, .cart-line__ph {
  aspect-ratio: 1; background: var(--bg-muted); width: 100%;
}
.cart-line__ph { width: 72px; height: 72px; border-radius: var(--radius-sm); }
.stock-cue { margin: 0 0 12px; font-size: 0.875rem; color: var(--muted); }
.pdp__meta { margin: 12px 0 0; font-size: 0.8125rem; color: var(--muted); }
.collection-blurb { margin: 0 0 20px; color: var(--muted); max-width: 40rem; }
.pdp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pdp-thumb {
  width: 64px; height: 64px; padding: 0; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-muted);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.is-active { border-color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Size dropdown (STOREFRONT-UX-STANDARDS) */
.size-select {
  display: block;
  width: 100%;
  max-width: 280px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
}
.variant-group__value {
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid var(--border);
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.swatch--light {
  border-color: #E2E8F0;
  box-shadow: inset 0 0 0 1px #E2E8F0;
}
.swatch.is-active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-muted); }

/* Mini-cart slide-out */
.mini-cart {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}
.mini-cart.is-open {
  pointer-events: auto;
  visibility: visible;
}
.mini-cart__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
}
.mini-cart.is-open .mini-cart__backdrop { opacity: 1; }
.mini-cart__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 94vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.08);
}
.mini-cart.is-open .mini-cart__panel { transform: translateX(0); }
@media (prefers-reduced-motion: no-preference) {
  .mini-cart__backdrop { transition: opacity 220ms ease; }
  .mini-cart__panel { transition: transform 240ms ease; }
}
.mini-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.mini-cart__head h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.mini-cart__x {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  color: var(--text);
}
.mini-cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.mini-cart__empty {
  padding: 32px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.mini-cart__line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.mini-cart__line img,
.mini-cart__ph {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
}
.mini-cart__title {
  margin: 0 0 2px;
  font-size: 0.875rem;
  font-weight: 500;
}
.mini-cart__variant,
.mini-cart__price {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.mini-cart__line-total {
  font-size: 0.875rem;
  font-weight: 600;
}
.mini-cart__remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: underline;
  padding: 4px 0 4px 8px;
  min-height: 32px;
}
.mini-cart__foot {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-cart__sub {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 8px;
}
.mini-cart__foot .btn { width: 100%; }
.cart-link {
  border: 0;
  background: transparent;
}

/* PDP Additional Info — exclusive accordion + ease-in/out (STOREFRONT-UX-STANDARDS §4) */
.pdp-info {
  margin-top: 24px;
  padding-top: 8px;
}
.pdp-info__label {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.pdp-accordions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-acc {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 0;
  overflow: hidden;
}
.pdp-acc__summary {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  user-select: none;
}
.pdp-acc__summary::after {
  content: '';
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 260ms ease-in-out;
  flex-shrink: 0;
}
.pdp-acc.is-open .pdp-acc__summary::after {
  transform: rotate(45deg);
}
/* Smooth height via grid 0fr→1fr + opacity (not display:none / instant toggle) */
.pdp-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms ease-in-out;
}
.pdp-acc.is-open .pdp-acc__panel {
  grid-template-rows: 1fr;
}
.pdp-acc__panel-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transition: opacity 260ms ease-in-out;
}
.pdp-acc.is-open .pdp-acc__panel-inner {
  opacity: 1;
}
.pdp-acc__body {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  border-top: 0;
}

.pdp-acc__img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0.25rem 0 0;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .pdp-acc__summary::after,
  .pdp-acc__panel,
  .pdp-acc__panel-inner {
    transition: none;
  }
}


/* ——— Shop sidebar filters (P2b) ——— */
.shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.shop-head .page-title { margin-bottom: 0; }
.shop-filters-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
}
@media (min-width: 768px) {
  .shop-filters-trigger { display: none; }
}

.shop-layout {
  display: block;
}
.shop-aside {
  display: none;
}
.shop-main { min-width: 0; }

@media (min-width: 768px) {
  .shop-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: calc(var(--space-base) * 4);
    align-items: start;
  }
  .shop-aside {
    display: block;
    position: sticky;
    top: calc(var(--header-h-desktop) + 12px);
    max-height: calc(100vh - var(--header-h-desktop) - 24px);
    overflow: auto;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 4px calc(var(--space-base) * 2) calc(var(--space-base) * 3) 0;
  }
}

.shop-filter {
  padding: calc(var(--space-base) * 2) 0;
  border-bottom: 1px solid var(--border);
}
.shop-filter:last-of-type { border-bottom: 0; }
.shop-filter__title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.shop-filter__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shop-filter__empty {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.shop-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 4px 0;
  padding-left: calc(var(--shop-indent, 0) * 20px);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text);
  user-select: none;
}
.shop-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.shop-check__box {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  position: relative;
}
.shop-check input:focus-visible + .shop-check__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.shop-check input:checked + .shop-check__box {
  background: var(--accent);
  border-color: var(--accent);
}
.shop-check input:checked + .shop-check__box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.shop-check__label {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}
.shop-check__badge {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: #E8F1FF;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

/* Category exclusive accordion — whole-row parent expand, no parent checkboxes */
.shop-cat-group { display: flex; flex-direction: column; }
.shop-cat-parent {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 4px 0;
  padding-left: calc(var(--shop-indent, 0) * 20px);
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  user-select: none;
}
.shop-cat-parent:hover { color: var(--text); }
.shop-cat-parent:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.shop-cat-parent--leaf {
  cursor: default;
}
.shop-cat-parent .shop-check__label {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}
.shop-cat-chev__icon {
  flex: 0 0 16px;
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 260ms ease-in-out;
}
.shop-cat-group.is-open .shop-cat-chev__icon {
  transform: rotate(90deg);
}
/* Smooth open/close: grid 0fr → 1fr + opacity (no display:none / [hidden]) */
.shop-cat-children {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transition:
    grid-template-rows 260ms ease-in-out,
    opacity 260ms ease-in-out;
}
.shop-cat-group.is-open > .shop-cat-children {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}
.shop-cat-children__inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}
@media (prefers-reduced-motion: reduce) {
  .shop-cat-chev__icon { transition: none; }
  .shop-cat-children {
    transition: none;
  }
}

.shop-clear {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  text-decoration: underline;
  text-align: left;
}
.shop-clear:hover { color: var(--text); }

/* Dual price range */
.price-range {
  position: relative;
  height: 28px;
  margin: 8px 0 12px;
}
.price-range.is-disabled { opacity: 0.45; pointer-events: none; }
.price-range__rail {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background: var(--border);
  border-radius: 2px;
}
.price-range__fill {
  position: absolute;
  top: 0; bottom: 0;
  background: var(--accent);
  border-radius: 2px;
}
.price-range__input {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}
.price-range__input::-webkit-slider-thumb {
  appearance: none;
  pointer-events: auto;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
  border: 0;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.price-range__input::-moz-range-thumb {
  pointer-events: auto;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
  border: 0;
  cursor: pointer;
}
.price-range__input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}
.price-range__input::-moz-range-track {
  height: 4px;
  background: transparent;
}
.price-range__input--min { z-index: 2; }
.price-range__input--max { z-index: 3; }
.price-range__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price-range__label {
  font-size: 0.875rem;
  color: var(--text);
  white-space: nowrap;
}
.price-range__filter-btn {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

/* Mobile filter sheet (left drawer — separate from nav hamburger) */
.sheet--filters { z-index: 55; }
.sheet__panel--filters {
  width: min(320px, 90vw);
  padding: 16px 16px 24px;
  gap: 0;
  overflow: auto;
}
.sheet__filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sheet__filters-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.sheet__filters-body {
  flex: 1 1 auto;
  overflow: auto;
  padding-bottom: 12px;
}
.sheet__filters-done {
  margin-top: 8px;
  width: 100%;
}

/* Size chart button + centered modal (2026-09-23) */
.size-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 420px;
}
.size-row .size-select {
  flex: 1 1 160px;
  max-width: 280px;
  width: auto;
}
.size-chart-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text, #111);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}
.size-chart-btn:hover { opacity: 0.75; }
.size-chart-btn:focus-visible {
  outline: 2px solid var(--accent, #2563eb);
  outline-offset: 2px;
  border-radius: 2px;
}

body.size-chart-modal-open { overflow: hidden; }
.size-chart-modal[hidden] { display: none !important; }
.size-chart-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.size-chart-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.size-chart-modal__dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  max-width: min(920px, 96vw);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 28px 28px 24px;
}
.size-chart-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.size-chart-modal__close:hover { background: #e2e8f0; }
.size-chart-modal__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(90vh - 64px);
  object-fit: contain;
  margin: 8px auto 0;
}
