/* Deez Cards storefront. Brand: navy + red from the shield logo, mascot yellow as
   the accent, Anton (Impact-style) display type, Poppins body, "sticker" cards with
   a hard offset shadow like the current Wix site's Visit card. */

:root {
  --navy: #12104a;
  --navy-2: #1e1c6e;
  --blue: #2c3fa0;
  --red: #c41a30;
  --red-2: #9f1326;
  --yellow: #ffd23a;
  --ink: #16151d;
  --muted: #5e6072;
  --line: #e2e3eb;
  --bg: #ffffff;
  --bg-2: #f4f5f9;
  --ok: #1d8a52;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-soft: 0 10px 30px rgba(18, 16, 74, 0.12);
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 15px/1.6 var(--body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(40px, 7vw, 80px) 0; }
.section--tint { background: var(--bg-2); }
.section--navy { background: var(--navy); color: #fff; }

/* ---------- type ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.eyebrow::before { content: "★"; font-size: 11px; }
.section--navy .eyebrow, .hero .eyebrow { color: var(--yellow); }
.lede { font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); max-width: 62ch; }
.section--navy .lede { color: #cfd2ea; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .link { font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.link-arrow { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 15px; line-height: 1.6; color: var(--navy); text-decoration: underline 2px var(--red); text-underline-offset: 5px; }
.link-arrow:hover { color: var(--red); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- buttons, badges, chips ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  font: 700 14px/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--navy); color: #fff; border-color: var(--navy);
  cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn--red { background: var(--red); border-color: var(--red); }
.btn--yellow { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 12px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { background: var(--bg-2); color: var(--muted); border-color: var(--line); cursor: not-allowed; transform: none; box-shadow: none; }
.btn--instore[disabled] { background: #fff1f3; color: var(--red); border-color: #f4c3cb; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font: 700 11px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--navy); color: #fff;
}
.badge--red { background: var(--red); }
.badge--yellow { background: var(--yellow); color: var(--ink); }
.badge--grey { background: #e9eaf0; color: var(--muted); }
.badge--green { background: #e3f5ea; color: var(--ok); }
.badge--outline { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }

.grade {
  display: inline-flex; align-items: stretch; border-radius: 8px; overflow: hidden;
  font: 400 15px/1 var(--display); letter-spacing: 0.03em; border: 2px solid var(--ink);
}
.grade b { font-weight: 400; padding: 5px 7px; background: var(--ink); color: #fff; }
.grade span { padding: 5px 8px; background: #fff; }
.grade--PSA b { background: var(--red); }
.grade--SGC b { background: #111; }
.grade--BGS b { background: #2f3e57; }
.grade--CGC b { background: #1d5fae; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.chip:hover, .chip.is-on { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--bg-2); color: var(--ink); letter-spacing: 0.04em; }
.tag--rc { background: #fff3c4; }
.tag--auto { background: #e7ecff; color: var(--blue); }
.tag--serial { background: #ffe5e9; color: var(--red-2); }
.tag--patch { background: #e6f6ee; color: var(--ok); }

.sticker { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- announcement + header ---------- */

.announce { background: var(--red); color: #fff; font-size: 13px; }
.announce .wrap { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 38px; text-align: center; }
.announce a { color: #fff; font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
#how, #track { scroll-margin-top: 90px; } /* land below the sticky header */
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font: 400 24px/1 var(--display); letter-spacing: 0.02em; color: var(--navy); }
.brand-word small { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav > a, .nav-drop > a {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 11px; border-radius: 10px;
  font: 400 17px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  color: var(--navy); background: none; border: 0; cursor: pointer;
}
.nav > a:hover, .nav-drop > a:hover, .nav a[aria-current="page"] { background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--red); }
.nav-drop { position: relative; }
.nav-drop > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(840px, 94vw); padding: 16px; display: none;
  grid-template-columns: 1.75fr 1fr; gap: 16px;
}
.nav-drop.is-open .mega { display: grid; }
/* sport tiles fill the panel: 2 even rows, big mascots, no dead space */
.mega-sports { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 8px; }
.mega-sport { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 6px 10px; border-radius: 14px; background: var(--bg-2); border: 2px solid transparent; text-decoration: none; text-align: center; font-weight: 700; font-size: 13px; line-height: 1.2; transition: border-color 0.12s, transform 0.12s, background 0.12s; }
.mega-sport:hover { background: #fff; border-color: var(--ink); transform: translateY(-2px); }
.mega-sport img { width: 100%; height: 108px; object-fit: contain; transition: transform 0.15s; }
.mega-sport:hover img { transform: scale(1.06) rotate(-2deg); }
.mega-sport .mascot-logo { height: 84px; }
.mega-links { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); padding-left: 20px; }
.mega-links h4 { margin: 0 0 6px; font: 700 11px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mega-links a { padding: 6px 8px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; }
.mega-links a:hover { background: var(--bg-2); }

.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; border: 0; background: none; cursor: pointer; color: var(--navy); text-decoration: none;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: #fff; font: 700 11px/18px var(--body); text-align: center;
}
.cart-count:empty { display: none; }
.menu-btn { display: none; }

.search-bar { display: none; border-top: 1px solid var(--line); padding: 12px 0; }
.search-bar.is-open { display: block; }
.search-bar form { display: flex; gap: 8px; }
.search-bar input { flex: 1; }

/* mobile nav */
.drawer-nav { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer-nav.is-open { display: block; }
.drawer-nav .scrim { position: absolute; inset: 0; background: rgba(10, 9, 40, 0.5); }
.drawer-nav .panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 86vw); background: #fff; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.drawer-nav .panel a { padding: 12px 10px; border-radius: 10px; text-decoration: none; font: 400 20px/1 var(--display); text-transform: uppercase; color: var(--navy); }
.drawer-nav .panel a:hover { background: var(--bg-2); }
.drawer-nav .panel .sub { font: 600 14px/1.2 var(--body); text-transform: none; padding: 9px 10px 9px 22px; color: var(--ink); }

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 560px) {
  .site-header .wrap { gap: 8px; min-height: 64px; }
  .brand img { width: 38px; height: 38px; }
  .brand-word b { font-size: 21px; }
  .brand-word small { display: none; }
  .icon-btn { width: 40px; height: 40px; }
}

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 13px; font-weight: 700; }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
/* always white boxes, so always dark text (they'd otherwise take white text from navy sections) */
.input::placeholder, .textarea::placeholder { color: #767884; opacity: 1; }
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--navy); outline: none; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; padding: 4px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.check .n { margin-left: auto; color: var(--muted); font-size: 12px; }
.segmented { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 9px 16px; font-weight: 700; font-size: 13px; cursor: pointer; }
.segmented input:checked + span { background: var(--ink); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: -3px; }

/* ---------- hero ---------- */

.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.08;
  background-image: radial-gradient(#fff 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 24px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(90px, 11vw, 150px); }
.hero h1 { font-size: clamp(48px, 7.4vw, 96px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { color: #d5d7ee; font-size: clamp(16px, 1.6vw, 19px); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-logo { justify-self: center; width: min(420px, 80%); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35)); animation: float 6s ease-in-out infinite; }
.hero-stats { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font: 400 30px/1 var(--display); color: #fff; }
.hero-stats span { font-size: 12px; color: #aeb2d6; letter-spacing: 0.06em; text-transform: uppercase; }
.clouds { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(60px, 9vw, 120px); color: #fff; pointer-events: none; }
.clouds svg { width: 100%; height: 100%; display: block; }
.clouds--tint { color: var(--bg-2); }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-logo { order: -1; width: min(190px, 46%); }
}

.page-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: 0.07; background-image: radial-gradient(#fff 1.2px, transparent 1.2px); background-size: 22px 22px; }
.page-hero .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: clamp(70px, 9vw, 110px); }
.page-hero h1 { margin: 0 0 10px; }
.page-hero p { color: #d5d7ee; margin: 0; max-width: 60ch; }
.page-hero .mascot { width: clamp(120px, 14vw, 190px); max-height: 200px; object-fit: contain; flex-shrink: 0; margin-bottom: -24px; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.3)); }
.crumbs { font-size: 13px; color: #aeb2d6; margin-bottom: 12px; }
.crumbs a { color: #fff; text-decoration: none; }
@media (max-width: 700px) { .page-hero .mascot { display: none; } }

/* ---------- sport tiles ---------- */

.sports { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.sport-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px 16px;
  text-decoration: none; text-align: center; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sport-tile:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.sport-tile img { width: 100%; max-width: 120px; aspect-ratio: 3 / 2; object-fit: contain; }
.sport-tile b { font: 400 18px/1.05 var(--display); text-transform: uppercase; color: var(--navy); }
.sport-tile span { font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) { .sports { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .sports { grid-template-columns: repeat(2, 1fr); } }

/* ---------- product cards + grids ---------- */

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid--singles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 8px 16px 4px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 4 * 18px) / 5); } }
.rail-wrap { position: relative; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 42px; height: 42px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.rail-nav button:hover { background: var(--ink); color: #fff; }

.card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); border-color: var(--ink); }
.card-media { position: relative; display: block; aspect-ratio: 1; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; mix-blend-mode: multiply; }
.card--single .card-media { aspect-ratio: 3 / 4; }
.card--single .card-media img { padding: 10px; }
.card-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; flex: 1; }
.card-vendor { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card-title { font-weight: 600; font-size: 14px; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card--single .card-title { -webkit-line-clamp: 3; min-height: 4.05em; font-size: 13px; }
.card-title::after { content: ""; position: absolute; inset: 0; }
.card-price { font: 400 22px/1 var(--display); color: var(--navy); margin-top: auto; padding-top: 6px; }
.card-price s { font: 400 15px var(--body); color: var(--muted); margin-left: 6px; }
.card-foot { position: relative; z-index: 1; padding: 0 14px 14px; }
.card .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.card-where { font-size: 12px; color: var(--muted); }
.stock-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; }
.stock-dot--store { background: var(--red); }
.stock-dot--out { background: #a5a8b8; }

/* ---------- collection layout ---------- */

.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.filters { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; }
.filters details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.filters summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font: 400 18px/1 var(--display); text-transform: uppercase; padding: 6px 0; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; font: 700 18px var(--body); }
.filters details[open] summary::after { content: "–"; }
.filters .opts { display: flex; flex-direction: column; gap: 2px; padding: 6px 0 4px; max-height: 260px; overflow-y: auto; }
.filters .price-row { display: flex; gap: 8px; align-items: center; padding-top: 6px; }
.filters .price-row .input { min-height: 40px; padding: 6px 10px; }
.in-search { display: flex; gap: 8px; margin-bottom: 14px; }
.in-search-field { position: relative; flex: 1; min-width: 0; }
.in-search-field .input { padding-left: 46px; padding-right: 42px; border-color: var(--ink); min-height: 50px; font-size: 15px; }
.in-search-field .input::-webkit-search-cancel-button { display: none; }
.in-search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.in-search-icon svg { width: 20px; height: 20px; }
.in-search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 14px; }
.in-search-clear:hover { background: var(--bg-2); color: var(--ink); }
.in-search .btn { min-height: 50px; }
@media (max-width: 480px) { .in-search .btn { padding: 0 16px; } }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .count { font-weight: 600; }
.toolbar .select { width: auto; min-height: 42px; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.active-filters a { text-decoration: none; }
.filters-toggle { display: none; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 2px solid var(--line); text-decoration: none; font-weight: 700; }
.pager .is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 60px 20px; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty img { width: 160px; margin: 0 auto 12px; }
.filters-head, .filters-foot { display: none; }
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-flex; }
  /* phones and tablets: filters open as a full-screen panel; tick several, then "Show results" */
  .filters { position: fixed; inset: 0; z-index: 90; display: none; gap: 0; padding: 0 16px; background: #fff; overflow-y: auto; overscroll-behavior: contain; }
  .filters.is-open { display: flex; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; background: #fff; padding: 10px 0; border-bottom: 2px solid var(--ink); font: 400 26px/1 var(--display); text-transform: uppercase; }
  .filters-foot { display: flex; gap: 10px; position: sticky; bottom: 0; margin-top: auto; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .filters-foot .btn { flex: 1; }
  .filters .opts { max-height: none; }
  body.filters-open { overflow: hidden; }
}

/* ---------- product page ---------- */

.product { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.gallery-main { aspect-ratio: 1; background: var(--bg-2); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; border: 1.5px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 30px; mix-blend-mode: multiply; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 74px; height: 74px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg-2); padding: 6px; cursor: pointer; }
.gallery-thumbs button.is-on { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-info h1 { font-size: clamp(30px, 3.6vw, 46px); }
.product-price { font: 400 38px/1 var(--display); color: var(--navy); margin: 8px 0 16px; }
.product-price s { font: 400 18px var(--body); color: var(--muted); margin-left: 10px; }
.buy-box { padding: 20px; margin: 18px 0; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 42px; border: 0; background: #fff; font-size: 20px; cursor: pointer; }
.qty input { width: 46px; border: 0; text-align: center; font-weight: 700; background: #fff; color: var(--ink); }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 200px; }
.instore-box { background: #fff5f6; border-color: var(--red); }
.instore-box h3 { color: var(--red); margin-bottom: 6px; }
.specs { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs th { width: 38%; color: var(--muted); font-weight: 600; }
.rte { font-size: 15px; }
.rte--large, .rte--large .lede { font-size: 19px; }
.rte h2 { font-size: 26px; margin-top: 1.2em; }
.rte h3 { font-size: 21px; margin-top: 1.1em; }
.rte ul { padding-left: 1.2em; }
.rte li { margin-bottom: 0.3em; }
.rte img { border-radius: 12px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

/* ---------- cart drawer ---------- */

/* Non-modal side panel: only the panel itself is on top, so the page behind keeps scrolling
   and stays clickable. Wide screens dock it beside the page instead of covering it. */
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 70; display: none; }
.cart-drawer.is-open { display: block; }
.cart-drawer .scrim { display: none; }
.cart-drawer .panel { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; border-left: 2px solid var(--ink); box-shadow: -14px 0 34px rgba(18, 16, 74, 0.16); }
.cart-drawer.is-open .panel { animation: cart-in 0.18s ease-out; }
@keyframes cart-in { from { transform: translateX(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cart-drawer.is-open .panel { animation: none; } }
@media (min-width: 1100px) {
  body.cart-open { padding-right: 420px; }
  body.cart-open .cart-drawer .panel { box-shadow: none; }
}
/* docked cart leaves less room for the full menu: use the menu button until there's space */
@media (min-width: 1100px) and (max-width: 1600px) {
  body.cart-open .nav { display: none; }
  body.cart-open .menu-btn { display: inline-grid; }
  body.cart-open .header-tools { margin-left: auto; }
}
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 28px; }
.cart-lines { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { width: 72px; height: 72px; object-fit: contain; background: var(--bg-2); border-radius: 10px; padding: 6px; mix-blend-mode: multiply; }
.cart-line .t { font-weight: 600; font-size: 13px; line-height: 1.35; }
.cart-line .p { font: 400 18px var(--display); color: var(--navy); }
.cart-line .rm { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 12px; padding: 0; }
.cart-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; }
.cart-note { font-size: 12px; color: var(--muted); }
.mini-qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.mini-qty button { width: 26px; height: 26px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }

/* ---------- modal ---------- */

dialog { border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0; width: min(520px, 92vw); }
dialog::backdrop { background: rgba(10, 9, 40, 0.55); }
dialog .dlg { padding: 24px; }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
dialog .x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; }

.toast:empty { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 220%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 80; transition: transform 0.25s ease; }
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- home blocks ---------- */

.finder { background: var(--navy); color: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; }
.finder::after { content: ""; position: absolute; right: -60px; bottom: -70px; width: 280px; height: 280px; background: url(/img/brand/mascot-tcg.png) center / contain no-repeat; opacity: 0.95; }
.finder h2 { margin-bottom: 8px; }
.finder p { color: #cfd2ea; max-width: 52ch; }
.finder form { display: flex; gap: 10px; max-width: 640px; margin: 18px 0 14px; position: relative; z-index: 1; }
.finder .input { border-color: transparent; }
.finder .chips { position: relative; z-index: 1; max-width: 700px; }
.finder .chip { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.finder .chip:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
@media (max-width: 700px) { .finder::after { display: none; } .finder form { flex-direction: column; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.visit { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; overflow: hidden; }
.visit-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; min-height: 380px; overflow: hidden; background: var(--ink); }
.visit-photos img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; }
.visit-photos img:first-child { grid-row: span 2; }
.visit-info { padding: clamp(22px, 4vw, 40px); }
.visit-info h2 { margin-bottom: 4px; }
.hours { width: 100%; border-collapse: collapse; margin: 14px 0 20px; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today td { color: var(--red); font-weight: 700; }
.open-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.open-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.open-pill.closed::before { background: var(--red); }
.contact-lines { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 18px; }
.contact-lines a { font-weight: 600; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .visit-photos { min-height: 0; height: clamp(240px, 70vw, 360px); } }

.band { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: clamp(22px, 4vw, 36px); }
.band img { width: 130px; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; text-align: center; } .band img { margin: 0 auto; } }

.event-card { display: grid; grid-template-columns: 240px 1fr; overflow: hidden; }
.event-card img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; background: var(--bg-2); }
.event-card .body { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.event-date { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 14px; background: var(--red); color: #fff; line-height: 1; }
.event-date b { font: 400 26px/1 var(--display); }
.event-date span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.event-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) { .event-card { grid-template-columns: 1fr; } .event-card img { max-height: 260px; } }
.event-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* linked to a blog post: the title link covers the card; the buttons sit above it */
.event-card--linked { position: relative; transition: transform 0.15s, box-shadow 0.15s; }
.event-card--linked:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.event-card--linked .event-link { color: inherit; text-decoration: none; }
.event-card--linked .event-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.event-card--linked:hover .event-link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.event-card--linked .event-actions { position: relative; z-index: 2; }
.past-event { padding: 18px; display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.past-event--linked { transition: transform 0.15s, box-shadow 0.15s; }
.past-event--linked:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.past-more { color: var(--red); font-weight: 700; }
.post-event { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 28px; flex-wrap: wrap; }
.post-event-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; min-width: 0; }
.post-event-text b { font-size: 18px; line-height: 1.25; }
.post-event-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .event-card--linked, .past-event--linked { transition: none; } .event-card--linked:hover, .past-event--linked:hover { transform: none; } }

.media { position: relative; overflow: hidden; background: var(--navy); isolation: isolate; }
.media img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.media--contain::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--img) center / cover no-repeat; filter: blur(18px) saturate(1.15) brightness(0.8); }
.media--contain img { object-fit: contain; }
.post-card { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; }
.post-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.post-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.55fr 1fr; }
.post-card--feature .media { height: 100%; min-height: 100%; aspect-ratio: auto !important; }
.post-card--feature .body { padding: clamp(20px, 3vw, 36px); justify-content: center; }
.post-card--feature h3 { font-size: clamp(26px, 2.6vw, 36px); }
.post-card--feature p { -webkit-line-clamp: 5; font-size: 15px; }
@media (max-width: 900px) { .post-card--feature { grid-template-columns: 1fr; } .post-card--feature .media { aspect-ratio: 16 / 9 !important; height: auto; } }
.post-card h3 { font-size: 21px; margin: 0; }
.post-card p { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cols-3 { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 22px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font: 400 22px/1 var(--display); margin-bottom: 12px; }
.step h3 { font-size: 21px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- grading tracker ---------- */

.tracker { padding: clamp(20px, 4vw, 34px); }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.track-form .field { margin: 0; }
@media (max-width: 700px) { .track-form { grid-template-columns: 1fr; } }
.progress { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 0; }
.progress li { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: start; position: relative; padding-bottom: 18px; }
.progress li::before { content: ""; position: absolute; left: 16px; top: 30px; bottom: -2px; width: 2px; background: var(--line); }
.progress li:last-child::before { display: none; }
.progress .dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; position: relative; z-index: 1; }
.progress li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.progress li.done::before { background: var(--ok); }
.progress li.now .dot { background: var(--yellow); border-color: var(--ink); }
.progress .who { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.progress b { display: block; font-size: 15px; }
.progress .when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.results { width: 100%; border-collapse: collapse; font-size: 14px; }
.results th, .results td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.results th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.flag { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.flag--ok { background: #e3f5ea; color: var(--ok); }
.flag--warn { background: #fff6dd; color: #8a6100; }
.flag--bad { background: #ffe8eb; color: var(--red-2); }

/* ---------- footer ---------- */

.site-footer { background: var(--navy); color: #d5d7ee; position: relative; margin-top: 0; }
.site-footer .clouds { top: -1px; bottom: auto; transform: scaleY(-1); color: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 30px; padding: clamp(90px, 10vw, 130px) 0 40px; }
.site-footer h4 { font: 400 20px/1 var(--display); text-transform: uppercase; color: #fff; margin: 0 0 14px; letter-spacing: 0.03em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-brand img { width: 84px; margin-bottom: 12px; }
.footer-news form { display: flex; gap: 8px; margin-top: 10px; }
.footer-news .input { border-color: transparent; min-height: 44px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.1); }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0 26px; font-size: 12px; color: #aeb2d6; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.proto-note { display: inline-flex; gap: 6px; align-items: center; background: var(--yellow); color: var(--ink); padding: 3px 9px; border-radius: 999px; font-weight: 700; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

[data-results] { transition: opacity 0.15s; }
[data-results].is-loading { opacity: 0.55; }

/* ---------- phones ---------- */
.nowrap { white-space: nowrap; }
.toast { display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); }
.toast-action { flex-shrink: 0; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 13px var(--body); padding: 8px 14px; cursor: pointer; }
.drawer-visit { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-nav .panel .drawer-visit .btn { font: 700 13px/1 var(--body); letter-spacing: 0.04em; padding: 0 10px; border-radius: 999px; justify-content: center; }
.drawer-nav .panel .drawer-visit .btn--red { color: #fff; }
.drawer-visit p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 760px) {
  /* 16px or more stops iPhones zooming in when a field is tapped */
  .input, .select, .textarea, input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
}
@media (max-width: 700px) {
  .toast { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateY(220%); justify-content: space-between; border-radius: 16px; max-width: none; }
  .toast.is-on { transform: translateY(0); }
  .event-card img { height: auto; min-height: 0; max-height: none; object-fit: contain; } /* whole flyer, date and all */
}
@media (max-width: 600px) {
  .grid, .grid--singles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-media img { padding: 8px; }
  .card-badges { top: 6px; left: 6px; right: 6px; }
  .card-body { padding: 10px 10px 12px; gap: 4px; }
  .card-title { font-size: 13px; }
  .card--single .card-title { font-size: 12.5px; }
  .card-price { font-size: 19px; }
  .card-foot { padding: 0 10px 10px; }
  .rail { grid-auto-columns: 46%; gap: 12px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stats b { font-size: 26px; }
  .hero-stats span { font-size: 11px; letter-spacing: 0.03em; }
}
/* fingers, not mouse pointers: bigger tap targets */
@media (pointer: coarse) {
  .btn--sm, .chip, .check { min-height: 40px; }
  .qty input { height: 42px; }
  .mini-qty { gap: 8px; }
  .mini-qty button { width: 36px; height: 36px; }
  .cart-line .rm { padding: 8px 4px; }
  .footer-links { gap: 2px; }
  .footer-links a { display: inline-block; padding: 7px 0; }
  .announce a { display: inline-block; padding: 8px 4px; }
  .section-head .link, .link { display: inline-block; padding: 8px 0; }
  .drawer-nav .panel .sub { padding-top: 12px; padding-bottom: 12px; }
}
