/* ============================================================
   JS Stop and Shop — styles
   Store name lives in app.js (STORE_NAME). Accent + surfaces here.
   ============================================================ */

:root {
  --bg: #0b0b0b;
  --bg-elevated: #121212;
  --bg-card: #171717;
  --bg-soft: #1c1c1c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f1ea;
  --muted: #9c9890;
  --accent: #e2b84f;
  --accent-strong: #f0c95a;
  --accent-ink: #16120a;
  --accent-soft: rgba(226, 184, 79, 0.16);
  --danger: #ff6b6b;
  --success: #8fdb8a;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --header-h: 72px;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; }

p:last-child { margin-bottom: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus { top: 12px; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 11, 11, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
  border-radius: 8px;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-desktop a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-desktop a:hover,
.nav-mobile a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 10px;
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.05); }

.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.cart-count.is-empty { display: none; }

.menu-btn { display: none; }

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  border-radius: 2px;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }

.menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { top: 0; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 20px 20px;
  background: rgba(11, 11, 11, 0.96);
  border-bottom: 1px solid var(--line);
}

.nav-mobile a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.site-header.is-open { height: auto; }
.site-header.is-open .nav-mobile { display: flex; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-accent:hover { background: var(--accent-strong); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--text); }

.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.15) 0%, rgba(11, 11, 11, 0.45) 40%, rgba(11, 11, 11, 0.92) 100%),
    linear-gradient(90deg, rgba(11, 11, 11, 0.55), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0 80px;
  max-width: 820px;
  margin-left: max(20px, calc((100% - var(--max)) / 2));
  width: min(var(--max), calc(100% - 40px));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  max-width: 14ch;
  margin-bottom: 16px;
}

.hero-lede {
  font-size: 1.05rem;
  color: #d8d4cb;
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-note {
  color: var(--muted);
  max-width: 52ch;
  margin-top: 8px;
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  isolation: isolate;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.78) 100%);
}

.category-tile:hover img { transform: scale(1.05); }

.category-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.cat-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Products */
.product-block { margin-bottom: 56px; }
.product-block:last-child { margin-bottom: 0; }

.product-block-title {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: #ece8df;
}

.fragrance-block .product-block-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0;
}

.gaming-block .product-block-title {
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: none;
}

.product-block-note {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  max-width: 62ch;
  color: var(--muted, #9a958c);
  font-size: 0.92rem;
  line-height: 1.5;
}

.gaming-block .product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-card.fragrance {
  background: linear-gradient(180deg, #161411 0%, #1c1812 100%);
  border-color: rgba(226, 184, 79, 0.18);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #101010;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-media img { transform: scale(1.04); }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 11, 11, 0.8);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.product-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-body h3 {
  font-size: 1.05rem;
  margin: 0;
}

.product-card.fragrance h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0;
}

.product-meta {
  color: var(--muted);
  font-size: 13.5px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.price {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.sample-tag {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0;
  cursor: pointer;
  background: var(--swatch, #ccc);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.swatch[aria-pressed="true"],
.swatch.is-active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.swatch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.add-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
}

.add-btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* Color lab */
.color-lab {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(226, 184, 79, 0.08), transparent 50%),
    var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.color-lab-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.tee-stage {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 24px 28px;
  display: grid;
  place-items: center;
}

.tee-svg {
  width: min(280px, 70%);
  height: auto;
}

#tee-body {
  fill: #cbb79a;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
  transition: fill 0.25s ease;
}

.tee-neck {
  fill: #0b0b0b;
}

.tee-caption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.color-lab-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  max-width: 16ch;
}

.color-lab-copy p {
  color: #c9c4ba;
  max-width: 46ch;
}

.swatch-board {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}

.swatch-board .swatch {
  width: 28px;
  height: 28px;
}

.color-lab-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

/* Trust */
.trust {
  padding: 28px 0 8px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}

.trust-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.trust-card p {
  color: var(--muted);
  font-size: 14.5px;
}

/* Newsletter */
.newsletter {
  padding-top: 64px;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
}

.newsletter-inner h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.newsletter-inner p { color: var(--muted); }

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.newsletter-form input {
  background: #0e0e0e;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 13px 18px;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.form-status {
  grid-column: 1 / -1;
  color: var(--success);
  font-size: 14px;
  margin: 4px 0 0;
}

/* FAQ */
.faq-inner {
  max-width: 800px;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 400;
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list details p {
  color: var(--muted);
  margin-top: 10px;
  padding-right: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  background: #090909;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: var(--muted);
  margin-top: 14px;
  max-width: 42ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer-cols h3 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-cols a {
  display: block;
  color: var(--text);
  padding: 5px 0;
  font-size: 14.5px;
}

.footer-cols a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

/* Cart */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 80;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  z-index: 90;
  pointer-events: none;
}

.cart-panel {
  height: 100%;
  background: #111;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: var(--shadow);
}

.cart-drawer.is-open { pointer-events: auto; }
.cart-drawer.is-open .cart-panel { transform: translateX(0); }

.cart-head,
.cart-foot {
  padding: 18px 20px;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  font-size: 1.2rem;
  margin: 0;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 8px 20px 20px;
}

.cart-empty {
  color: var(--muted);
  padding: 32px 0;
  text-align: center;
}

.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #1a1a1a;
}

.cart-row h3 {
  font-size: 0.95rem;
  margin: 0 0 2px;
}

.cart-row .meta {
  color: var(--muted);
  font-size: 12.5px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-controls button {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
}

.cart-row-price {
  font-weight: 600;
  font-size: 14px;
  text-align: right;
}

.remove-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 0 0;
  text-decoration: underline;
}

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

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.cart-ship-note,
.checkout-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
}

.checkout-note {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #1c1c1c;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .category-grid,
  .product-grid,
  .gaming-block .product-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .color-lab-inner,
  .newsletter-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .nav-desktop { display: none; }
  .menu-btn { display: grid; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }

  .container { width: min(var(--max), calc(100% - 32px)); }

  .logo-word { max-width: 42vw; }

  .hero { min-height: 78vh; }
  .hero-content { padding: 48px 0 56px; }

  .section { padding: 64px 0; }

  .category-grid,
  .product-grid,
  .gaming-block .product-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .category-tile { aspect-ratio: 16 / 10; }

  .newsletter-inner { padding: 28px 22px; }

  .newsletter-form { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; }
}

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

/* Trending Now */
.trend-badge{display:inline-flex;align-items:center;gap:10px;margin-bottom:18px;padding:8px 14px;border-radius:999px;background:rgba(255,80,80,.14);border:1px solid rgba(255,110,90,.45);color:#ffd7cf;font-size:.85rem;font-weight:600}
.trend-badge[hidden],
.trending[hidden],
[data-trending][hidden] { display: none !important; }
.trend-dot{width:8px;height:8px;border-radius:50%;background:#ff5a4f;box-shadow:0 0 0 4px rgba(255,90,79,.25)}
.trending{padding:64px 0;background:linear-gradient(135deg,#1d140a 0%,#0b0b0b 70%);border-bottom:1px solid var(--line)}
.trending-inner{display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:center}
.trending-grid{grid-template-columns:1fr !important;max-width:380px;justify-self:end;width:100%}
.trend-stats{list-style:none;padding:0;margin:20px 0 0;display:flex;gap:28px;flex-wrap:wrap}
.trend-stats strong{display:block;font-family:var(--font-display);font-size:1.6rem;color:var(--accent)}
.trend-stats span{color:var(--muted);font-size:.85rem}
@media (max-width:980px){.trending-inner{grid-template-columns:1fr}.trending-grid{justify-self:stretch;max-width:none}}

/* Size picker + size chart modal */
.size-picker { margin: 4px 0 12px; }
.size-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.size-chart-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.size-chart-link:hover { color: var(--accent-strong); }
.size-options { display: flex; flex-wrap: wrap; gap: 6px; }
.size-btn {
  appearance: none;
  min-width: 42px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.size-btn.is-active,
.size-btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.size-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.size-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 140;
}
.size-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 16px;
}
.size-modal[hidden] { display: none; }
.size-modal-panel {
  width: min(640px, 100%);
  max-height: min(86vh, calc(100dvh - 32px), 720px);
  overflow: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 28px;
}
@media (max-width: 640px) {
  .size-modal { padding: 12px; }
  .size-modal-panel { max-height: calc(100dvh - 24px); padding: 18px 16px 24px; }
  .size-table { font-size: 0.8rem; }
}
.size-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.size-modal-head h2 { margin: 0; font-size: 1.35rem; }
.size-chart-note,
.size-chart-tip {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 14px;
}
.size-chart-tip { margin: 14px 0 0; color: var(--text); }
.size-table-wrap { overflow-x: auto; }
.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.size-table th,
.size-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.size-table thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.size-table tbody th { color: var(--accent-strong); font-weight: 700; }

.item-pays { display: grid; gap: 8px; margin-top: 12px; }
.item-pay-btn {
  text-align: center;
  font-size: 0.85rem;
  padding: 10px 12px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  border-radius: 999px;
  text-decoration: none;
}
.item-pay-btn:hover { background: var(--accent); color: var(--accent-ink); }
.item-pay-missing { margin: 0; color: var(--muted); font-size: 0.85rem; }

.add-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
