/* Coordinator close-out fix (FE-10 finding): the HTML hidden attribute must
   always win over component display rules, or non-limited products show a
   LIMITED badge and blank edition rows on the product page. */
[hidden] { display: none !important; }

/* ============================================================
   BUSINESS FOR HOOLIGANS — site.css
   The ONE design system for the whole storefront (FE-1).
   Street / skate / art-collectibles energy. Mobile-first.
   Works at 390px and 1280px. No prices exist on this site —
   reserve flow only; price copy is "Price to be announced".
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #16130f;          /* near-black warm ink */
  --ink-2: #26211a;        /* raised dark surface */
  --paper: #f3ecdd;        /* warm off-white */
  --paper-2: #e9dfc9;      /* deeper paper for bands */
  --card: #fffdf6;         /* card surface on paper */
  --line: #16130f;         /* hard borders (brutalist edge) */
  --muted: #6d6353;        /* secondary text on paper */
  --muted-dark: #b9ad97;   /* secondary text on ink */
  --accent: #ff4d12;       /* safety orange — decorative accents, borders, shadows */
  --accent-strong: #b33100; /* darker orange for backgrounds/text that carry words:
                               white text on it is 6.26:1, it is 5.32:1 on paper
                               (FE-9 contrast fix — #ff4d12 with white text is only 3.32:1) */
  --accent-ink: #ffffff;
  --acid: #c8e10e;         /* acid green — highlights, tiles */
  --violet: #7a3cff;       /* drop / limited accent */
  --gold: #f5b301;
  --danger: #c81e1e;
  --ok: #1d7a3a;

  --font-display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-hard: 5px 5px 0 var(--ink);
  --shadow-hard-sm: 3px 3px 0 var(--ink);
  --maxw: 1200px;
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* FE-9: hard shadows / wide display type can never force sideways scroll at 390px */
}
img { max-width: 100%; display: block; }
h1, h2 { overflow-wrap: break-word; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 8vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 5vw, 2.4rem); text-transform: uppercase; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
/* FE-Polish fix: vertical padding ONLY. The shorthand `padding: 48px 0`
   also reset left/right to 0 and, coming after .container in this file,
   silently wiped the container's horizontal padding on every element
   that combines both classes (home sections, product/search mains) —
   content ran flush to the screen edges at 390px. */
.section { padding-top: 48px; padding-bottom: 48px; }
.section--tight { padding-top: 28px; padding-bottom: 28px; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .muted { color: var(--muted-dark); }
.section--dark .kicker { color: var(--acid); }
.section--band { background: var(--paper-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .section { padding-top: 64px; padding-bottom: 64px; } .container { padding: 0 24px; } }

/* Skip link (accessibility) */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header / nav (injected by chrome.js) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  border-bottom: 3px solid var(--accent);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); margin-right: auto; }
.brand__mark {
  font-family: var(--font-display); font-size: 1.05rem; line-height: .95;
  text-transform: uppercase; letter-spacing: .02em;
}
.brand__mark em { font-style: normal; color: var(--accent); }
.brand__tag { display: none; font-family: var(--font-mono); font-size: .68rem; color: var(--muted-dark); text-transform: uppercase; letter-spacing: .12em; }
@media (min-width: 900px) { .brand__tag { display: block; } }

.nav-toggle {
  background: transparent; border: 2px solid var(--paper); color: var(--paper);
  border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; min-height: 40px;
  font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
}
.main-nav { display: none; }
.main-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 3px solid var(--accent); padding: 8px 16px 16px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.main-nav a {
  display: block; padding: 10px 12px; color: var(--paper); text-decoration: none;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; border-radius: var(--radius-sm);
}
.main-nav a:hover { background: var(--ink-2); }
.main-nav a[aria-current="page"] { color: var(--acid); box-shadow: inset 0 -3px 0 var(--accent); }
.nav-reserve-count {
  display: inline-block; min-width: 1.5em; text-align: center; margin-left: 6px;
  background: var(--accent-strong); color: var(--accent-ink); border-radius: 999px;
  font-family: var(--font-mono); font-size: .75rem; padding: 1px 6px; vertical-align: middle;
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; position: static; }
  .main-nav ul { flex-direction: row; gap: 4px; }
  .main-nav a { padding: 8px 12px; }
}

/* ---------- Footer (injected by chrome.js) ---------- */
.site-footer { background: var(--ink); color: var(--paper); margin-top: 0; }
.site-footer__inner { padding: 40px 0 24px; display: grid; gap: 28px; }
.site-footer h3 { color: var(--paper); font-size: .95rem; text-transform: uppercase; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 0; }
.site-footer a:hover { color: var(--acid); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .muted { color: var(--muted-dark); }
.site-footer__bottom { border-top: 1px solid var(--ink-2); padding: 16px 0 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .85rem; color: var(--muted-dark); }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--paper); overflow: hidden; }
.hero__inner { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 48px; align-items: center; }
.hero__art { border: 3px solid var(--paper); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--accent); overflow: hidden; background: var(--paper-2); }
.hero__art img { width: 100%; height: auto; }
.hero .kicker { color: var(--acid); }
.hero p.lede { font-size: 1.15rem; max-width: 34em; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.1fr .9fr; padding-top: 72px; padding-bottom: 72px; } }
.kicker { font-family: var(--font-mono); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--accent-strong); margin: 0 0 12px; }
.lede { font-size: 1.12rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  padding: 13px 22px; border-radius: var(--radius-sm); cursor: pointer;
  border: 2px solid var(--line); background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-hard-sm); transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { background: var(--accent-strong); color: var(--accent-ink); }
.btn--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 3px 3px 0 var(--accent); }
.btn--acid { background: var(--acid); color: var(--ink); }
.btn--ghost { background: transparent; box-shadow: none; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 14px; font-size: .85rem; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 9px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--card); color: var(--ink);
}
.badge--limited { background: var(--violet); border-color: var(--violet); color: #fff; }
.badge--new { background: var(--acid); }
.badge--low { background: var(--gold); }
.badge--soldout { background: var(--danger); border-color: var(--danger); color: #fff; }
.badge--category { background: var(--paper-2); }

/* ---------- Product cards ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-hard);
}
.product-card__media { position: relative; background: var(--paper-2); aspect-ratio: 1 / 1; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__media .badge { position: absolute; top: 10px; left: 10px; }
.product-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__cat { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0; }
.product-card__name { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.15; margin: 0; text-transform: uppercase; }
.product-card__name a { text-decoration: none; }
.product-card__name a:hover { text-decoration: underline; }
.product-card__blurb { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.product-card__price { font-family: var(--font-mono); font-size: .85rem; font-weight: 700; margin: 0; }
.product-card__remaining { font-size: .85rem; font-weight: 700; margin: 0; }
.product-card__foot { padding: 0 16px 16px; display: flex; gap: 10px; }
.product-card__foot .btn { flex: 1; }
.product-card.is-soldout .product-card__media img { filter: grayscale(1); opacity: .65; }

/* Price display: there are NO prices. Always this line. */
.price-tba { font-family: var(--font-mono); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Category tiles ---------- */
.tile-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
.category-tile {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  min-height: 140px; padding: 18px; text-decoration: none;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hard);
}
.category-tile:nth-child(3n+1) { background: var(--accent-strong); color: #fff; }
.category-tile:nth-child(3n+2) { background: var(--violet); color: #fff; }
.category-tile__name { font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; line-height: 1.1; }
.category-tile__count { font-family: var(--font-mono); font-size: .8rem; opacity: .85; }
.category-tile:hover { transform: translate(-2px, -2px); }

/* ---------- Drops: countdown + remaining ---------- */
.drop-strip { display: grid; gap: 16px; }
@media (min-width: 760px) { .drop-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .drop-strip { grid-template-columns: repeat(3, 1fr); } }
.drop-card {
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  border: 2px solid var(--ink); padding: 20px; box-shadow: 5px 5px 0 var(--violet);
  display: flex; flex-direction: column; gap: 10px;
}
.drop-card .muted { color: var(--muted-dark); }
.drop-card a { color: var(--paper); }
.countdown { display: flex; gap: 8px; }
.countdown__cell { background: var(--ink-2); border: 1px solid var(--muted); border-radius: var(--radius-sm); padding: 8px 0; min-width: 62px; text-align: center; }
.countdown__num { font-family: var(--font-display); font-size: 1.4rem; display: block; line-height: 1; }
.countdown__label { font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-dark); }
.remaining { font-weight: 800; }
.remaining__bar { height: 10px; background: var(--ink-2); border: 1px solid var(--muted); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.remaining__fill { height: 100%; background: var(--acid); }
.remaining.is-low .remaining__fill { background: var(--gold); }
.remaining.is-critical { color: var(--gold); }
.remaining.is-critical .remaining__fill { background: var(--danger); }
.remaining.is-soldout { color: #ff8a8a; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 2px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .85rem; font-weight: 600; }
.form-note { background: var(--paper-2); border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; }
.alert { border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; }
.alert--ok { background: #dff3e2; }
.alert--error { background: #fbe3e3; border-color: var(--danger); }
.alert--info { background: var(--paper-2); }

/* Toolbar (shop filters / search) */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 24px; }
.toolbar .field { flex: 1 1 180px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card);
}
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); color: var(--paper); }

/* ---------- Reserve list ---------- */
.reserve-layout { display: grid; gap: 28px; }
@media (min-width: 960px) { .reserve-layout { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.reserve-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.reserve-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px;
}
.reserve-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.reserve-item__name { font-weight: 800; margin: 0; }
.reserve-item__meta { font-size: .85rem; color: var(--muted); margin: 0; }
.qty-control { display: inline-flex; align-items: center; gap: 0; border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qty-control button { font: inherit; font-weight: 800; width: 40px; height: 42px; border: 0; background: var(--paper-2); cursor: pointer; }
.qty-control output { min-width: 2.2em; text-align: center; font-weight: 800; }
.reserve-item__actions { display: flex; flex-direction: column; gap: 8px; align-items: end; }
/* FE-9: at phone width the 3-column row squeezes the name to nothing —
   shrink the thumb and move qty/remove to their own full-width row. */
@media (max-width: 560px) {
  .reserve-item { grid-template-columns: 56px 1fr; }
  .reserve-item img { width: 56px; height: 56px; }
  .reserve-item__actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
}
.link-btn { background: none; border: 0; font: inherit; font-size: .85rem; font-weight: 700; color: var(--danger); cursor: pointer; text-decoration: underline; padding: 8px 4px; min-height: 40px; display: inline-flex; align-items: center; }
.reserve-summary { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hard); padding: 20px; }
.reserve-summary h3 { text-transform: uppercase; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; gap: 28px; }
@media (min-width: 900px) { .product-detail { grid-template-columns: 1fr 1fr; align-items: start; } }
.product-detail__media { border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hard); background: var(--paper-2); position: relative; }
.product-detail__media .badge { position: absolute; top: 12px; left: 12px; }
.detail-list { display: grid; gap: 6px; margin: 16px 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--muted); padding: 6px 0; }
.detail-list dt { color: var(--muted); font-weight: 600; }
.detail-list dd { margin: 0; font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* ---------- States ---------- */
.empty-state {
  border: 2px dashed var(--muted); border-radius: var(--radius);
  padding: 36px 20px; text-align: center; color: var(--muted);
}
.empty-state h3 { color: var(--ink); }
.skeleton { border-radius: var(--radius-sm); background: linear-gradient(100deg, var(--paper-2) 40%, #f7f1e2 50%, var(--paper-2) 60%); background-size: 200% 100%; animation: shimmer 1.2s infinite; min-height: 120px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skeleton { animation: none; }
  .btn, .category-tile { transition: none; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack { display: grid; gap: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
