/* ==========================================================================
   Columbus Saints Store -- storefront theme
   Hand-written, phone first. Brand values are locked by the Saints Style
   Recipe: use the variables below, never a nearby shade.
   ========================================================================== */

:root {
  --maroon: #910000;        /* primary */
  --charcoal: #2B2C2D;      /* accent + body text */
  --white: #FFFFFF;         /* background */
  --dark: #1F2021;          /* dark band */
  --panel: #F7F7F7;         /* light panel */
  --panel-alt: #FAFAFA;     /* light panel alt */
  --line: #DDDDDD;          /* divider */

  --font-body: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --font-ui: "Fira Sans Condensed", "Arial Narrow", Arial, sans-serif;

  --track-label: 3px;       /* label / button letter spacing */
  --header-h: 60px;
  --gutter: 16px;
  --max: 1240px;
}

@media (min-width: 720px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --header-h: 72px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html.menu-open, html.menu-open body { overflow: hidden; }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon); }

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

::selection { background: var(--maroon); color: var(--white); }

:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--white); }

main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--maroon);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--white); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Labels, buttons, badges ---------- */

.label {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
}
.label--maroon { color: var(--maroon); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 calc(26px - var(--track-label)) 0 26px; /* balance trailing letter space */
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.btn--primary:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

.btn--secondary { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.btn--secondary:hover { background: var(--maroon); border-color: var(--maroon); color: var(--white); }

.btn--outline { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: var(--white); }

.btn--outline-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--charcoal); }

/* Solid white on maroon bands: the band's one action, as heavy as its headline. */
.btn--light { background: var(--white); border-color: var(--white); color: var(--maroon); }
.btn--light:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

.btn--large { min-height: 60px; padding: 0 calc(34px - var(--track-label)) 0 34px; font-size: 1.0625rem; }

.badge {
  display: inline-block;
  padding: 5px calc(8px - var(--track-label)) 4px 8px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
}
/* Two badge tiers, one treatment each:
   - Promotional (Limited edition, Pre-order): solid maroon, white text.
   - Status (Sold out, Low stock): white, charcoal outline, charcoal text.
   Promo = "this is special"; status = "availability info". */
.badge--limited,
.badge--preorder { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.badge--soldout,
.badge--low { background: var(--white); border-color: var(--charcoal); color: var(--charcoal); }

/* ---------- Announcement bar ---------- */

.announcement {
  background: var(--dark);
  color: var(--white);
  text-align: center;
}
.announcement p {
  margin: 0;
  padding: 8px var(--gutter);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
}
/* A live promo code's message (Jeremy, Oct 29 2026): maroon and a little larger, to stand out. */
.announcement--promo { background: var(--maroon); }
.announcement--promo p { padding-block: 12px; font-size: 0.875rem; text-wrap: balance; }
@media (min-width: 720px) { .announcement--promo p { font-size: 1rem; } }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

/* Typeset wordmark. The official winged wordmark file replaces this when the
   corps supplies it -- never redraw or imitate the logo here. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--charcoal); }
.wordmark-name {
  font-family: var(--font-body);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.wordmark-tag {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--maroon);
}
@media (min-width: 900px) { .wordmark-name { font-size: 1.625rem; } }
@media (max-width: 359px) { .wordmark-tag { display: none; } }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  text-decoration: none;
  box-shadow: inset 0 -3px 0 transparent;
}
.site-nav a:hover { color: var(--maroon); }
.site-nav a[aria-current="page"], .site-nav a.is-active { box-shadow: inset 0 -3px 0 var(--maroon); }

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

.cart-icon, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--charcoal);
}
.cart-icon { position: relative; text-decoration: none; }
.cart-icon:hover { color: var(--maroon); }
.cart-icon svg, .menu-toggle svg { width: 26px; height: 26px; }
/* Item count badge: solid maroon square, hidden at 0 (the hidden attribute). */
.cart-count {
  position: absolute;
  top: 5px;
  right: 3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--maroon);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cart-count[hidden] { display: none; }
.cart-icon[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--maroon); }
.menu-toggle { text-decoration: none; }

@media (min-width: 900px) {
  .site-nav { display: block; }
  .menu-toggle { display: none; }
}

/* ---------- Header search ---------- */
/* Phones: a search icon opens a full-width field row under the sticky header
   (:target without JavaScript; theme.js adds .is-open). Desktop: a field. */

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--charcoal);
  text-decoration: none;
}
.search-toggle:hover, .search-toggle[aria-expanded="true"] { color: var(--maroon); }
.search-toggle svg { width: 25px; height: 25px; }

.header-search { display: none; }
.header-search:target, .header-search.is-open {
  position: absolute; /* .site-header (sticky) is the containing block: spans the full width */
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  padding: 10px var(--gutter) 12px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 16px rgb(43 44 45 / 0.08);
}

.header-search-input, .search-page-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--charcoal);
  border-right: 0;
  border-radius: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 16px+ keeps iOS from zooming in */
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
}
.header-search-input::placeholder, .search-page-input::placeholder { color: var(--charcoal); opacity: 0.7; }
.header-search-input:focus, .search-page-input:focus { outline: 3px solid var(--maroon); outline-offset: 0; }

.header-search-btn {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--charcoal);
  color: var(--white);
  cursor: pointer;
}
.header-search-btn:hover { background: var(--maroon); }
.header-search-btn svg { width: 22px; height: 22px; }

@media (min-width: 900px) {
  .search-toggle { display: none; }
  .header-search,
  .header-search:target,
  .header-search.is-open {
    position: static;
    display: flex;
    flex: 0 1 240px;
    min-width: 150px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .header-search-input { min-height: 42px; padding: 6px 12px; font-size: 1rem; }
  .header-search-btn { width: 42px; min-height: 42px; }
  .header-search-btn svg { width: 20px; height: 20px; }
}
/* Phones: three icons (search, cart, menu) beside the wordmark, so the icons
   tighten to 44px and the small "Store" tag steps aside on narrow screens. */
@media (max-width: 899.98px) {
  .header-inner { gap: 8px; }
  .header-actions { gap: 0; }
  .search-toggle, .cart-icon, .menu-toggle { width: 44px; }
}
@media (max-width: 419.98px) { .wordmark-tag { display: none; } }
@media (max-width: 374.98px) { .wordmark-name { font-size: 1.25rem; letter-spacing: 0.06em; } }
/* Small desktops: the field joins the header, so the nav links tighten a little. */
@media (min-width: 900px) and (max-width: 1099.98px) {
  .header-inner { gap: 12px; }
  .site-nav ul { gap: 0; }
  .site-nav a { padding-inline: 8px; letter-spacing: 2px; }
}

/* ---------- Full-screen phone menu ---------- */
/* Works without JavaScript through :target; theme.js adds .is-open. */

.menu-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  flex-direction: column;
  overflow-y: auto;
  background: var(--dark);
  color: var(--white);
}
.menu-panel:target, .menu-panel.is-open { display: flex; }

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--charcoal);
}
.menu-top .label { color: var(--white); }
.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  color: var(--white);
}
.menu-close svg { width: 26px; height: 26px; }
.menu-close:hover { color: var(--white); }

.menu-links { margin: 0; padding: 8px 0; list-style: none; }
.menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px var(--gutter);
  border-left: 4px solid transparent;
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--white);
}
.menu-links a:hover, .menu-links a[aria-current="page"] { border-left-color: var(--maroon); color: var(--white); }
.menu-links .menu-count {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: var(--track-label);
}

.menu-extra {
  margin-top: auto;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--charcoal);
}
.menu-extra p { margin: 0 0 12px; }
.menu-extra a { color: var(--white); }
.menu-extra a:hover { color: var(--white); text-decoration-thickness: 2px; }

@media (min-width: 900px) {
  .menu-panel:target, .menu-panel.is-open { display: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: 48px; }
.section--panel { background: var(--panel); }
@media (min-width: 900px) { .section { padding-block: 72px; } }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.section-head h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); margin-top: 6px; }
/* Headed groups in a listing: Featured, Saints Originals, Drum Corps Life, More. */
.listing-section + .listing-section { margin-top: 48px; }
.listing-title { font-size: clamp(1.375rem, 4.5vw, 1.75rem); margin: 0 0 18px; padding-bottom: 10px; border-bottom: 3px solid var(--maroon); }
.section-head .text-link { margin-bottom: 4px; }

.text-link {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  text-decoration: underline;
  text-decoration-color: var(--maroon);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 440px;
  overflow: hidden;
  background-color: var(--charcoal);
  color: var(--white);
}
/* Diagonal stripe accent, after the stripe across the corps uniform. Solid
   maroon only -- no tints. One thin stripe set near the right content edge
   (inside the .wrap edges), kept narrow so it supports the bottom-left
   headline instead of competing with it. Sits at z-index -1: behind the
   content and behind a future .hero-media photo. */
.hero::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  right: calc(max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) + 24px);
  z-index: -1;
  width: 10px;
  background: var(--maroon);
  transform: skewX(-28deg);
  pointer-events: none;
}
@media (min-width: 900px) {
  .hero::after {
    right: calc(max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) + 64px);
    width: 14px;
  }
}
@media (min-width: 720px) { .hero { min-height: 520px; } }
@media (min-width: 1100px) { .hero { min-height: 600px; } }

.hero-inner { position: relative; z-index: 2; padding-block: 48px 40px; }
@media (min-width: 900px) { .hero-inner { padding-block: 72px 64px; } }

.hero .label { color: var(--white); }
.hero h1 {
  max-width: 11ch;
  margin: 12px 0 16px;
  font-size: clamp(3rem, 14vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}
.hero-lede { max-width: 34rem; margin-bottom: 28px; font-size: 1.1875rem; line-height: 1.45; }
@media (min-width: 720px) { .hero-lede { font-size: 1.3125rem; } }

/* Background photo slot (see templates/index.liquid). A still photo only; the
   scrim keeps the headline readable and the credit must stay visible. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgb(31 32 33 / 0.85), rgb(31 32 33 / 0.1) 70%);
}
.hero-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  margin: 0;
  padding: 3px 8px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  letter-spacing: 1px;
}

.hero--compact { min-height: 380px; }

/* A live promo code's message across the bottom of the hero photo (Jeremy, Oct 29 2026):
   a wide solid maroon band so it's seen at once. It's in the flow under the text,
   so the text never sits behind it however many lines it wraps to. */
.hero--promo { flex-direction: column; align-items: stretch; justify-content: flex-end; }
.hero--promo .hero-credit { top: 8px; bottom: auto; }
.hero-promo {
  position: relative;
  z-index: 3;
  margin: 0;
  padding: 16px var(--gutter);
  background: var(--maroon);
  color: var(--white);
  border-top: 3px solid var(--white);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-wrap: balance;
}
/* The code itself: a white coupon tag that copies the code when tapped (Jeremy, Oct 29 2026). */
.promo-code {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin: 0 0.2em;
  padding: 0.15em 0.55em;
  border: 2px dashed var(--maroon);
  outline: 2px solid var(--white);
  outline-offset: 0;
  background: var(--white);
  color: var(--maroon);
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: baseline;
  cursor: pointer;
}
.promo-code:hover { background: var(--panel); }
.promo-code:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 2px; }
.promo-code-icon { flex: none; width: 0.9em; height: 0.9em; }
.promo-code.is-copied .promo-code-icon { display: none; }
@media (min-width: 720px) { .hero-promo { padding-block: 20px; font-size: 1.375rem; letter-spacing: 2px; } }

/* ---------- Category tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(var(--tile-cols-phone, 2), minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* --tile-cols is set from the category count in index.liquid, so two
   categories span the full row instead of leaving half of it empty. */
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(var(--tile-cols, 4), minmax(0, 1fr)); gap: 16px; } }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  min-height: 132px;
  padding: 18px 16px 16px 14px;
  border-left: 6px solid var(--maroon); /* same maroon edge rule as menu links and the buy note */
  background: var(--dark);  /* solid band weight, so the step down from the hero isn't a cliff */
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
@media (min-width: 900px) { .tile { min-height: 200px; padding: 28px 28px 28px 26px; } }
.tile:focus-visible { outline-color: var(--maroon); }
.tile-name {
  position: relative;
  font-family: var(--font-body);
  font-size: clamp(1.625rem, 6.5vw, 2.75rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
/* Count and arrow read as one group at the left, under the name, instead of
   the arrow drifting to the far edge of a wide tile. */
.tile-foot { display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
.tile-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--maroon);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.tile:hover { background: var(--maroon); color: var(--white); }
.tile:hover .tile-arrow { background: var(--white); color: var(--maroon); transform: translateX(4px); }

/* ---------- Product grid + cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; } }

.card { position: relative; display: flex; flex-direction: column; }
.card-link { display: flex; flex-direction: column; flex: 1 1 auto; color: var(--charcoal); text-decoration: none; }
.card-link:hover { color: var(--charcoal); }

/* Every tile is a locked 1:1 square whatever the photo's own shape. The
   padding box sets the height (works even without aspect-ratio support);
   everything inside is absolutely positioned so nothing can stretch it. */
.card-media {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 0;
  padding-top: 100%;
  overflow: hidden;
  background: var(--panel); /* plain light panel while a photo loads, or when there is none */
}
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  /* The whole photo, never cropped: tall or wide photos sit on the panel.
     Multiply lets a white photo background take the panel's colour, so
     supplier mockups and fabric photos sit together evenly. */
  object-fit: contain;
  mix-blend-mode: multiply;
}

.card-hover { opacity: 0; transition: opacity 0.25s ease; }
.card-media--hover .card-photo { transition: opacity 0.25s ease; }
@media (hover: hover) and (min-width: 900px) {
  .card-link:hover .card-hover, .card-link:focus-visible .card-hover { opacity: 1; }
  /* The second photo replaces the first rather than blending over it (both multiply onto the panel). */
  .card-link:hover .card-media--hover .card-photo, .card-link:focus-visible .card-media--hover .card-photo { opacity: 0; }
}

.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.card-body { padding-top: 12px; }
.card-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em; /* always two lines tall, so prices line up across a row */
  font-size: 1.0625rem;
  line-height: 1.15;
}
@media (min-width: 720px) { .card-name { font-size: 1.1875rem; } }
.card-link:hover .card-name { text-decoration: underline; text-decoration-color: var(--maroon); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card-price { margin: 6px 0 0; font-size: 1.0625rem; font-weight: 500; }
.card-price .from {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-right: 2px;
}

.empty-state {
  padding: 40px 24px;
  background: var(--panel);
  text-align: center;
}
.empty-state h2 { font-size: 1.5rem; margin-bottom: 8px; }
.empty-state .btn { margin-top: 16px; }

/* ---------- Mission band ---------- */

.mission {
  background: var(--maroon);
  color: var(--white);
}
.mission-inner { padding-block: 56px; }
@media (min-width: 900px) {
  .mission-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    padding-block: 80px;
  }
}
.mission .label { color: var(--white); }
.mission h2 {
  max-width: 18ch;
  margin: 12px 0 28px;
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1;
}
@media (min-width: 900px) { .mission h2 { margin-bottom: 0; } }
.mission .btn { flex-shrink: 0; }

/* ---------- Breadcrumbs + page head ---------- */

.crumbs { padding-block: 12px; }
.crumbs ol {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
}
.crumbs li { flex-shrink: 0; white-space: nowrap; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--maroon); }
.crumbs li:last-child { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.page-head { padding-block: 8px 28px; }
.page-head h1 { font-size: clamp(2.5rem, 11vw, 4.5rem); line-height: 0.95; }
.page-head .page-desc { max-width: 40rem; margin-top: 14px; font-size: 1.1875rem; }
.page-head .label { margin-top: 12px; }
.collection-grid { padding-bottom: 64px; }

/* Sizes buyable now, under the price on category and search cards. */
.card-sizes {
  margin: 4px 0 0;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- Search page ---------- */

.search-head .search-query { overflow-wrap: anywhere; }
.search-page-form { display: flex; max-width: 36rem; margin-top: 20px; }
.search-page-input { min-height: 50px; }
.search-page-btn { flex: 0 0 auto; }
.search-empty { padding-bottom: 64px; }
.search-empty-note { margin-bottom: 40px; }
.search-empty-note p { max-width: 32rem; margin-inline: auto; }
.search-intro { max-width: 36rem; margin-bottom: 36px; font-size: 1.1875rem; }
.search-all { margin: 28px 0 0; }

/* ---------- Browse: filters, sort, chips + grid (collection and search) ---------- */
/* Phones: one compact bar ("Filter & sort" + count) above the chips and grid;
   the panel is a full-screen sheet (:target without JavaScript, .is-open with
   it). Desktop: the panel is a sticky left column beside a three-up grid. */

.browse { padding-bottom: 64px; }
.page-head--browse { padding-bottom: 16px; }
html.filters-open, html.filters-open body { overflow: hidden; }

.browse-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.browse-count { text-align: right; }

.filter-toggle {
  min-height: 46px;
  padding: 0 calc(16px - var(--track-label)) 0 16px;
  font-size: 0.875rem;
}
.filter-toggle svg { width: 20px; height: 20px; flex: 0 0 auto; }
.filter-toggle-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: var(--maroon);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0;
}

/* The panel (phone sheet) */
.filter-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  flex-direction: column;
  margin: 0;
  background: var(--white);
}
.filter-panel:target, .filter-panel.is-open { display: flex; }
/* Phones with JavaScript: .is-open alone decides (the URL's #filters or
   #site-search can outlive a close). */
@media (max-width: 899.98px) {
  .filter-panel.is-enhanced:target:not(.is-open),
  .header-search.is-enhanced:target:not(.is-open) { display: none; }
}
.filter-panel.is-open { animation: filter-sheet-in 0.2s ease-out; }
@keyframes filter-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.filter-panel-top {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--gutter);
  border-bottom: 2px solid var(--charcoal);
}
.filter-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  color: var(--charcoal);
}
.filter-close svg { width: 26px; height: 26px; }

.filter-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--gutter) 24px;
  -webkit-overflow-scrolling: touch;
}
.filter-panel-foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--white);
}
.filter-apply { flex: 1 1 auto; }
.filter-apply-desk { display: none; }
.filter-clear, .chip-clear {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--maroon);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.filter-group {
  min-width: 0;
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.filter-group:last-child { border-bottom: 0; }
.filter-group > .label, .filter-group > legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; }
.filter-group > .label + *, .filter-group > legend + * { clear: both; }

.filter-list { margin: 0; padding: 0; list-style: none; }
.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 4px 0;
  color: var(--charcoal);
  font-size: 1.0625rem;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}
.filter-row:hover { color: var(--maroon); }
.filter-label { flex: 1 1 auto; min-width: 0; }
.filter-count {
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

/* Square check box: maroon with a white tick when on (links), a maroon
   square dot for the chosen sort (radios). */
.filter-check {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid var(--charcoal);
  background: var(--white);
}
.filter-row.is-on .filter-check { background: var(--maroon); border-color: var(--maroon); }
.filter-row.is-on .filter-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 7px;
  height: 12px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.filter-row.is-on .filter-label { font-weight: 700; }

.filter-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.filter-radio:checked + .filter-check::after { content: ""; position: absolute; inset: 4px; background: var(--maroon); }
.filter-radio:checked ~ .filter-label { font-weight: 700; }
.filter-radio:focus-visible + .filter-check { outline: 3px solid var(--maroon); outline-offset: 2px; }

/* Sizes: square buttons like the product page's size buttons, count below. */
.filter-sizes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.filter-size {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 54px;
  padding: 4px;
  border: 1px solid var(--charcoal);
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-ui);
  text-decoration: none;
}
.filter-size-value { font-size: 0.9375rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: 1px; }
.filter-size .filter-count { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.5px; }
a.filter-size:hover { color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--charcoal); }
.filter-size.is-on, a.filter-size.is-on:hover { background: var(--charcoal); color: var(--white); }

/* Nothing left with the other filters: shown for orientation, not clickable. */
.filter-row.is-empty, .filter-size.is-empty { opacity: 0.5; cursor: default; }
.filter-row.is-empty:hover { color: var(--charcoal); }
.filter-size.is-empty { border-style: dashed; border-color: var(--line); background: var(--panel-alt); }

/* Applied filters: removable chips + Clear all. One scrolling line on phones. */
.filter-chips ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 calc(var(--gutter) * -1) 18px;
  padding: 0 var(--gutter) 2px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.filter-chips ul::-webkit-scrollbar { display: none; }
.filter-chips li { flex: 0 0 auto; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  text-decoration: none;
}
.chip svg { width: 14px; height: 14px; flex: 0 0 auto; }
.chip:hover { background: var(--maroon); color: var(--white); }
.chip-clear { min-height: 40px; margin-left: 4px; }

@media (min-width: 900px) {
  .browse--filtered {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "panel bar" "panel chips" "panel results";
    column-gap: 44px;
  }
  .browse--filtered .browse-bar {
    grid-area: bar;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--charcoal);
  }
  .browse--filtered .filter-chips { grid-area: chips; }
  .browse--filtered .browse-results { grid-area: results; }
  .browse-count { text-align: left; }
  .filter-toggle { display: none; }

  .filter-panel,
  .filter-panel:target,
  .filter-panel.is-open {
    grid-area: panel;
    display: block;
    position: sticky;
    inset: auto;
    top: calc(var(--header-h) + 20px);
    z-index: auto;
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
    background: none;
    animation: none;
    scrollbar-width: thin;
  }
  .filter-panel-top { display: none; }
  .filter-panel-body { padding: 0; overflow: visible; }
  .filter-group:first-child { padding-top: 0; }
  .filter-group:first-child > .label, .filter-group:first-child > legend { margin-top: 2px; }
  .filter-row { min-height: 40px; font-size: 1rem; }
  .filter-sizes { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
  .filter-size { min-height: 50px; }
  .filter-panel-foot { padding: 4px 0 0; border: 0; background: none; }
  .filter-clear { display: none; } /* desktop uses the chips' Clear all */
  .filter-apply { flex: 0 1 auto; min-height: 44px; font-size: 0.8125rem; }
  .filter-apply-phone { display: none; }
  .filter-apply-desk { display: inline; }
  /* With JavaScript the sort applies as soon as it changes. */
  .filter-panel.is-enhanced .filter-panel-foot { display: none; }

  .filter-chips ul { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }

  .browse--filtered .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .filter-panel.is-open { animation: none; }
}

/* ---------- Product page ---------- */

.product {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 56px;
}
.product-panel { display: contents; }
.product-head { order: 1; }
.gallery { order: 2; }
.buy { order: 3; }
.product-info { order: 4; margin-top: 20px; }

.product-head h1 { margin: 6px 0 8px; font-size: clamp(1.75rem, 8vw, 2.75rem); line-height: 1; }
.product-head .label a { text-decoration: none; }
.product-head .label a:hover { text-decoration: underline; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.price { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.price .from {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-right: 4px;
}
.subtitle { margin: 0; font-size: 1.0625rem; line-height: 1.3; }

/* Phones: tighter vertical rhythm between breadcrumb, product head, gallery
   and buy panel so the buy button lands on the first screen. */
@media (max-width: 899.98px) {
  .template-product .crumbs { padding-block: 8px 4px; }
  .product { gap: 10px; }
  .product-head h1 { margin: 4px 0 6px; }
}

@media (min-width: 900px) {
  .product {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    gap: 56px;
    padding-top: 8px;
    padding-bottom: 88px;
  }
  .product-panel { display: block; grid-column: 2; }
  .gallery { grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--header-h) + 20px); }
  .product-head { margin-bottom: 28px; }
  .product-info { margin-top: 40px; }
}

/* Gallery: phone = swipeable strip with the next photo peeking + position bar.
   Desktop/tablet = vertical thumbnail strip beside ONE large photo, with
   previous/next arrows. No auto-rotation. */

.gallery { margin-inline: calc(var(--gutter) * -1); }

.gallery-track {
  position: relative;
  display: flex;
  gap: 8px;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }

.gallery-slide {
  flex: 0 0 82%;
  margin: 0;
  aspect-ratio: 1 / 1;
  background: var(--panel);
  scroll-snap-align: start;
}
.gallery--single .gallery-slide { flex-basis: 100%; }
.gallery-slide[hidden], .gallery-thumbs li[hidden] { display: none; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
/* product.js makes large photos open the lightbox (class added only then). */
.gallery.is-zoomable .gallery-slide img:focus-visible { outline: 2px solid var(--charcoal); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  .gallery.is-zoomable .gallery-slide img { cursor: zoom-in; }
}

.gallery-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 var(--gutter);
  aspect-ratio: 4 / 3;
  background: var(--panel);
}

.gallery-bar {
  position: relative;
  height: 3px;
  margin: 12px var(--gutter) 0;
  background: var(--line);
}
.gallery-bar[hidden] { display: none; }
.gallery-bar span {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: var(--bar-w, 100%);
  background: var(--maroon);
  transform: translateX(var(--bar-x, 0));
  transition: transform 0.2s ease, width 0.2s ease;
}

.gallery-thumbs { display: none; }
.gallery-arrow { display: none; }

/* Phones: the whole gallery (slide + position bar) stays within ~45% of the
   screen height so name, price, sizes and the buy button share the first
   screen. Slides stay square; when the cap bites they get narrower, which
   only widens the next-photo peek. */
@media (max-width: 899.98px) {
  .gallery-slide { flex-basis: min(82%, calc(45vh - 15px)); }
  .gallery--single .gallery-slide { flex-basis: min(100%, calc(45vh - 15px)); margin-inline: auto; }
  .gallery-empty { max-height: calc(45vh - 15px); }
  @supports (height: 1svh) {
    .gallery-slide { flex-basis: min(82%, calc(45svh - 15px)); }
    .gallery--single .gallery-slide { flex-basis: min(100%, calc(45svh - 15px)); }
    .gallery-empty { max-height: calc(45svh - 15px); }
  }
}

@media (min-width: 900px) {
  .gallery {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    margin-inline: 0;
  }
  .gallery--single { grid-template-columns: minmax(0, 1fr); }
  /* One large photo at a time. The track clips to a single slide; the
     thumbnails (plain #photo-N links without JS) and the arrows move it. */
  .gallery-track {
    grid-column: -2 / -1;
    grid-row: 1;
    gap: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    scroll-snap-type: x mandatory;
  }
  .gallery-slide { flex: 0 0 100%; }
  .gallery-bar { display: none; }

  .gallery-arrow {
    grid-column: -2 / -1;
    grid-row: 1;
    align-self: center;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 12px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--charcoal);
    cursor: pointer;
  }
  .gallery-arrow--prev { justify-self: start; }
  .gallery-arrow--next { justify-self: end; }
  .gallery-arrow:hover { border-color: var(--charcoal); }
  .gallery-arrow:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 2px; }
  .gallery-arrow[hidden] { display: none; }
  .gallery-empty { margin: 0; aspect-ratio: 1 / 1; }

  .gallery-thumbs {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 0;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
  }
  .gallery-thumbs a {
    display: block;
    aspect-ratio: 1 / 1;
    border: 2px solid transparent;
    background: var(--panel);
  }
  .gallery-thumbs a:hover { border-color: var(--line); }
  .gallery-thumbs a[aria-current="true"] { border-color: var(--charcoal); }
  .gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
}

/* Buy panel */

.buy { margin: 6px 0 0; }

.option {
  position: relative;
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.option legend {
  float: left;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
}
.option legend + * { clear: both; }
.option-chosen { margin-left: 6px; color: var(--maroon); }
.size-guide-link {
  position: absolute;
  top: -2px;
  right: 0;
  padding: 2px 0;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.option-values { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }

.option-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.option-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--charcoal);
  border-radius: 0;
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.option-btn:hover { box-shadow: inset 0 0 0 1px var(--charcoal); }
.option-input:checked + .option-btn { background: var(--charcoal); color: var(--white); }
.option-input:focus-visible + .option-btn { outline: 3px solid var(--maroon); outline-offset: 2px; }

.option-btn.is-soldout {
  border-style: dashed;
  border-color: var(--line);
  background: var(--panel-alt);
  text-decoration: line-through;
  text-decoration-color: var(--maroon);
  text-decoration-thickness: 2px;
}
.option-btn.is-soldout:hover { box-shadow: none; }
.option-input:disabled + .option-btn { cursor: not-allowed; }
.option-input:checked + .option-btn.is-soldout { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

.option.needs-choice .option-values { outline: 2px solid var(--maroon); outline-offset: 6px; }

.btn-buy { width: 100%; min-height: 56px; margin-top: 4px; font-size: 1rem; }
.btn-buy[data-state="soldout"],
.buy-bar-btn[data-state="soldout"] { background: var(--charcoal); border-color: var(--charcoal); cursor: not-allowed; }

/* Phones: option buttons share one row when they fit (XS-3XL fits at 375px)
   and wrap only when they can't; 44px minimum tap width is kept. */
@media (max-width: 899.98px) {
  .buy { margin-top: 0; }
  .option { margin-bottom: 12px; }
  .option legend { margin-bottom: 8px; }
  .option-values { gap: 5px; }
  .option-btn {
    flex: 1 0 auto;
    min-width: 44px;
    padding: 0 6px;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
  }
  .btn-buy { margin-top: 0; }
}

/* Sticky buy bar: phones only, shown by product.js once the in-page buy
   button has scrolled up out of view. Stays hidden without JavaScript. */
.buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 12px rgb(43 44 45 / 0.08);
}
.buy-bar[hidden] { display: none; }
.buy-bar:not([hidden]) { animation: buy-bar-in 0.2s ease-out; }
@keyframes buy-bar-in { from { transform: translateY(100%); } to { transform: none; } }
.buy-bar-inner { display: flex; align-items: center; gap: 12px; }
.buy-bar .price { flex: 0 0 auto; font-size: 1.25rem; }
.buy-bar-btn {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 50px;
  padding: 0 calc(12px - 2px) 0 12px;
  letter-spacing: 2px;
}
.buy-bar-note:empty { display: none; }
.buy-bar-note {
  margin: 0 0 8px;
  padding: 6px 10px;
  background: var(--panel);
  border-left: 4px solid var(--maroon);
  font-size: 0.9375rem;
  font-weight: 500;
}
html.has-buy-bar body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) {
  .buy-bar { display: none !important; }
  html.has-buy-bar body { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .buy-bar:not([hidden]) { animation: none; }
}

.buy-note:empty, .stock-note:empty { display: none; }
.buy-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: var(--panel);
  border-left: 4px solid var(--maroon);
  font-weight: 500;
}
.stock-note { margin: 10px 0 0; color: var(--maroon); font-weight: 700; }
/* Add-to-cart errors (sold out, limit, no connection): plain and firm. */
.buy-note.is-error, .buy-bar-note.is-error {
  background: var(--white);
  border: 2px solid var(--maroon);
  border-left-width: 4px;
  color: var(--maroon);
  font-weight: 700;
}
.btn-buy[aria-busy="true"], .buy-bar-btn[aria-busy="true"] { cursor: progress; }

.buy-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.buy-assurances li { display: flex; align-items: center; gap: 8px; }
.buy-assurances li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--maroon);
  transform: skewX(-20deg);
}

.buy-meta { margin: 14px 0 0; padding: 0; list-style: none; }
.buy-meta li { margin-top: 4px; }

/* Description + fold-outs */

.product-description { font-size: 1.125rem; }
.product-description p { max-width: 38rem; }

.folds { margin-top: 28px; border-bottom: 1px solid var(--line); }

.fold { border-top: 1px solid var(--line); }
.fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 8px 0;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  list-style: none;
  cursor: pointer;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--maroon);
  transition: transform 0.15s ease;
}
.fold[open] summary::after { transform: rotate(45deg); }
.fold-body { padding: 0 0 22px; }
.fold-body p { max-width: 38rem; }

.table-wrap { overflow-x: auto; }
.size-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.size-table th, .size-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.size-table thead th {
  background: var(--panel);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.size-table tbody th { font-weight: 700; }
.table-note { margin-top: 12px; font-size: 0.9375rem; }

.size-charts { display: grid; gap: 16px; margin-top: 20px; }
.size-charts:first-child { margin-top: 0; }
.size-chart { margin: 0; max-width: 38rem; }
.size-chart a { display: block; background: var(--panel); }
.size-chart img { display: block; width: 100%; height: auto; }
.size-chart a[data-size-chart] { cursor: zoom-in; }

/* Lightbox for size charts and gallery photos (native <dialog>, built by product.js). The dialog
   fills the screen and carries the dimmed backdrop itself so it fades as one. */
html.lightbox-open, html.lightbox-open body { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(31 32 33 / 0.9); /* --dark, dimmed */
  color: var(--white);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}
.lightbox.is-visible { opacity: 1; }
.lightbox::backdrop { background: transparent; }

.lightbox-scroll {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 72px 16px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.lightbox-img {
  margin: auto;            /* centres, but never clips when the chart is taller than the screen */
  width: auto;
  max-width: min(1400px, 100%);
  height: auto;
  background: var(--white);
  cursor: default;
}
@media (min-width: 720px) {
  .lightbox-scroll { padding: 72px 32px 32px; }
  .lightbox-img { max-height: calc(100vh - 104px); object-fit: contain; }
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
}
.lightbox-close:hover { color: var(--maroon); }
.lightbox-close:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* Gallery photos: fitted to the screen, with previous/next buttons at the
   bottom corners on phones and centred at the sides on wider screens. */
.lightbox--gallery .lightbox-scroll { padding: 72px 16px; }
.lightbox--gallery .lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: var(--panel);
}
.lightbox-nav {
  position: absolute;
  bottom: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
}
.lightbox-nav--prev { left: 12px; }
.lightbox-nav--next { right: 12px; }
.lightbox-nav[hidden] { display: none; }
.lightbox-nav:hover { color: var(--maroon); }
.lightbox-nav:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
@media (min-width: 720px) {
  .lightbox--gallery .lightbox-scroll { padding: 72px 76px 32px; }
  .lightbox-nav { top: 50%; bottom: auto; transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
}

.mission-note {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--panel);
}
.mission-note .label { color: var(--maroon); margin-bottom: 4px; }

/* ---------- Add-to-cart toast + bottom sheet (built by product.js) ---------- */

.toast {
  position: fixed;
  top: calc(var(--header-h) + 44px); /* clear of the header even with the announcement bar above it */
  left: 50%;
  z-index: 70;
  width: min(calc(100% - 2 * var(--gutter)), 460px);
  padding: 12px 16px;
  background: var(--dark);
  color: var(--white);
  border-left: 6px solid var(--maroon);
  box-shadow: 0 8px 24px rgb(31 32 33 / 0.25);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  transform: translate(-50%, -12px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.toast[hidden] { display: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.cart-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--white);
  border-top: 4px solid var(--maroon);
  box-shadow: 0 -8px 28px rgb(31 32 33 / 0.2);
  transform: translateY(100%);
  transition: transform 0.25s ease-out;
}
.cart-sheet[hidden] { display: none; }
.cart-sheet.is-visible { transform: none; }
.cart-sheet-inner {
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px));
}
.cart-sheet-inner > .label:focus { outline: none; }
.cart-sheet-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  margin-top: 12px;
}
.cart-sheet-photo { width: 72px; height: 72px; background: var(--panel); }
.cart-sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-sheet-name {
  margin: 0;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cart-sheet-variant { margin: 4px 0 0; font-size: 0.9375rem; }
.cart-sheet-variant:empty, .cart-sheet-note:empty { display: none; }
.cart-sheet-note { margin: 6px 0 0; font-size: 0.9375rem; color: var(--maroon); font-weight: 700; }
.cart-sheet-price { margin: 0; font-weight: 700; font-size: 1.125rem; }
.cart-sheet-totals { margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.cart-sheet-totals div { display: flex; justify-content: space-between; gap: 16px; }
.cart-sheet-totals div + div { margin-top: 4px; }
.cart-sheet-totals dt { font-weight: 500; }
.cart-sheet-totals dd { margin: 0; font-weight: 700; }
.cart-sheet-totals div + div dt,
.cart-sheet-totals div + div dd {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.cart-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cart-sheet-actions .btn { width: 100%; padding-inline: 10px calc(10px - var(--track-label)); }
@media (min-width: 720px) {
  .cart-sheet {
    left: auto;
    right: var(--gutter);
    bottom: var(--gutter);
    width: 420px;
    border-top-width: 4px;
  }
  .cart-sheet-inner { padding: 22px 24px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .cart-sheet { transition: none; }
  .toast, .toast.is-visible { transform: translate(-50%, 0); }
}

/* ---------- Notices (cart, checkout, order) ---------- */

.notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--panel);
  border-left: 4px solid var(--maroon);
  font-weight: 500;
}
.notice p { margin: 0; }
.notice--test {
  display: inline-block;
  padding: 6px 12px;
  border: 1px dashed var(--charcoal);
  border-left: 4px solid var(--charcoal);
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.notice--closed { background: var(--dark); color: var(--white); }

/* ---------- Shared: summary lines + totals ---------- */

.summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--charcoal);
}
.summary-edit {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.summary-lines { margin: 0; padding: 0; list-style: none; }
.summary-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.summary-photo { position: relative; width: 64px; height: 64px; background: var(--white); border: 1px solid var(--line); }
.summary-photo img { width: 100%; height: 100%; object-fit: cover; }
.summary-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.summary-name { margin: 0; font-weight: 700; line-height: 1.2; }
.summary-variant { margin: 2px 0 0; font-size: 0.9375rem; }
.summary-price { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

.totals { margin: 16px 0 0; }
.totals-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 5px 0; }
.totals-row[hidden] { display: none; }
.totals dt { margin: 0; }
.totals dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.totals-sub { margin-left: 6px; font-size: 0.875rem; color: var(--charcoal); font-weight: 400; }
.totals-row--discount dd { color: var(--maroon); font-weight: 700; }
.totals-row--total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid var(--charcoal);
  font-size: 1.375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.totals-row--total dd { font-weight: 700; }
.totals-note { margin: 10px 0 0; font-size: 0.9375rem; }

/* ---------- Cart page ---------- */

.cart-page { padding-bottom: 64px; }
.cart-head { padding-top: 16px; }
.cart-notes { margin-bottom: 20px; }
.cart-empty { margin-bottom: 24px; }
.cart-empty p { max-width: 30rem; margin-inline: auto; }

.cart-layout { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
  .cart-summary { position: sticky; top: calc(var(--header-h) + 20px); }
}

.cart-lines { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--charcoal); }
.cart-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line[aria-busy="true"] { opacity: 0.6; }
@media (min-width: 720px) { .cart-line { grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; } }
.cart-line-photo { display: block; aspect-ratio: 1 / 1; background: var(--panel); }
.cart-line-photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-name { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.03em; }
.cart-line-name a { text-decoration: none; }
.cart-line-name a:hover { text-decoration: underline; text-decoration-color: var(--maroon); text-decoration-thickness: 2px; }
.cart-line-variant, .cart-line-meta { margin: 4px 0 0; font-size: 0.9375rem; }
.cart-line-msg { margin: 6px 0 0; color: var(--maroon); font-weight: 700; font-size: 0.9375rem; }
.cart-line-msg:empty { display: none; }
.cart-line-price { text-align: right; }
.cart-line-total { margin: 0; font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-line-each { margin: 2px 0 0; font-size: 0.875rem; }
.cart-line-each:empty { display: none; }

.cart-line-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--charcoal); }
.qty form { display: flex; margin: 0; }
.qty-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.qty-btn:hover { background: var(--charcoal); color: var(--white); }
.qty-btn:disabled { color: var(--line); background: var(--white); cursor: not-allowed; }
.qty-input {
  width: 48px;
  height: 44px;
  padding: 0;
  border: 0;
  border-inline: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--charcoal);
  font: 700 1rem/1 var(--font-ui);
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-update {
  padding: 0 10px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}
.qty-update[hidden] { display: none; }
.cart-remove { margin: 0; }
.cart-remove button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--charcoal);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.cart-remove button:hover { color: var(--maroon); }

/* Phones: price under the name column so the controls get the width. */
@media (max-width: 519.98px) {
  .cart-line { grid-template-columns: 88px minmax(0, 1fr); }
  .cart-line-price { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; }
  .cart-line-info { grid-column: 2; grid-row: 1; }
  .cart-line-name, .cart-line-variant { padding-right: 76px; }
}

.cart-summary { padding: 20px; background: var(--panel); }
.cart-summary > .label { padding-bottom: 12px; border-bottom: 2px solid var(--charcoal); }
.cart-checkout { width: 100%; margin-top: 20px; }
.cart-more { margin: 16px 0 0; text-align: center; }
.cart-summary .mission-note { margin-top: 20px; background: var(--white); }

/* ---------- Checkout page ---------- */

.checkout-page { padding-bottom: 72px; }
.checkout-head { padding-top: 16px; padding-bottom: 20px; }
.checkout-layout { display: grid; gap: 36px; margin-top: 8px; }
@media (min-width: 900px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
  .checkout-summary { position: sticky; top: calc(var(--header-h) + 20px); }
}
.checkout-form { max-width: 36rem; }

.co-section + .co-section { margin-top: 36px; }
/* Ship or pick up at an event (filled in by the engine's checkout script). */
.delivery-choice { border: 0; margin: 0; padding: 0; }
.delivery-choice legend { font-family: var(--font-ui); font-weight: 700; font-size: 1.125rem; margin-bottom: 10px; }
.delivery-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line, #d9d4cf); margin-bottom: 8px; cursor: pointer; }
.delivery-option input { margin-top: 3px; accent-color: var(--maroon); }
.delivery-option:has(input:checked) { border: 2px solid var(--maroon); padding: 11px 13px; }
.delivery-event { margin-top: 12px; }
.delivery-event label { display: block; font-weight: 700; margin-bottom: 6px; }
.delivery-event select { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; border: 1px solid var(--ink, #222); background: var(--white, #fff); }
.delivery-note { margin-top: 8px; font-size: .9375rem; }
.co-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 1.625rem;
}
.co-step {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--maroon);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0;
}

.field { margin-bottom: 16px; min-width: 0; }
.field label, .promo-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.field .optional { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 0.875rem; font-family: var(--font-body); }
.field input, .field select, .promo input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--charcoal);
  border-radius: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 16px+ keeps iOS from zooming in */
  line-height: 1.3;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%), linear-gradient(135deg, var(--charcoal) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .promo input:focus { outline: 3px solid var(--maroon); outline-offset: 0; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border: 2px solid var(--maroon); }
.field-hint { margin: 6px 0 0; font-size: 0.9375rem; }
.field-error { margin: 6px 0 0; color: var(--maroon); font-weight: 700; font-size: 0.9375rem; }
.field-error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 420px) { .field-row { grid-template-columns: 1fr 1fr; } }

.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; }
.check input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--maroon);
}
.check label { cursor: pointer; }

.wallets { display: grid; gap: 10px; }
.wallet[hidden], #apple-pay-button[hidden] { display: none; }
.wallet { min-height: 48px; }
#apple-pay-button {
  height: 48px;
  cursor: pointer;
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-type: plain;
  -apple-pay-button-style: black;
}
.pay-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 14px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.pay-divider::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
/* "Or pay with card" once a wallet is showing; "Pay with card" otherwise. */
.pay-divider-or { display: none; }
.wallets:has(> .wallet:not([hidden])) { margin-bottom: 18px; }
.wallets:has(> .wallet:not([hidden])) + .pay-divider .pay-divider-or { display: inline; }
.wallets:has(> .wallet:not([hidden])) + .pay-divider .pay-divider-plain { display: none; }

.card-box { min-height: 90px; }

.checkout-error {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 2px solid var(--maroon);
  border-left-width: 6px;
  color: var(--maroon);
  font-weight: 700;
}
.checkout-error[hidden] { display: none; }

.btn-pay { width: 100%; margin-top: 16px; }
.btn-pay:disabled { background: var(--line); border-color: var(--line); color: var(--charcoal); cursor: not-allowed; }
.btn-pay[aria-busy="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); cursor: progress; }
.secure-note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 0.9375rem; }
.secure-note svg { flex: 0 0 auto; margin-top: 3px; color: var(--maroon); }

.checkout-summary { padding: 20px; background: var(--panel); }
@media (max-width: 899.98px) { .checkout-summary { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); } }
.checkout-summary .summary-lines { margin-bottom: 4px; }
.checkout-summary .mission-note { margin-top: 20px; background: var(--white); }

/* Promo: present but quiet, below the items. */
.promo { margin-top: 16px; }
.promo-label { font-size: 0.75rem; }
.promo-row { display: flex; gap: 8px; }
.promo input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 8px 12px; font-size: 1rem; text-transform: uppercase; }
.promo-apply { min-height: 44px; padding-inline: 16px calc(16px - var(--track-label)); font-size: 0.8125rem; }
.promo-message { margin: 6px 0 0; font-size: 0.9375rem; font-weight: 500; }
.promo-message:empty { display: none; }

/* ---------- Order confirmation ---------- */

.order-hero h1 { max-width: 16ch; font-size: clamp(2.5rem, 10vw, 4.75rem); }
.order-hero .hero-lede strong { font-weight: 700; overflow-wrap: anywhere; }
.order-page { padding-block: 32px 64px; }
.notice--pending { margin-bottom: 28px; }
.order-layout { display: grid; gap: 36px; }
@media (min-width: 900px) { .order-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; } }
.order-date { margin: 0; font-size: 0.9375rem; }
.order-side { display: grid; gap: 16px; align-content: start; }
.order-block { padding: 18px 20px; background: var(--panel); }
.order-block .label { margin-bottom: 8px; color: var(--maroon); }
.order-block address { font-style: normal; }
.order-block--preorder { border-left: 4px solid var(--maroon); }
.order-back { width: 100%; margin-top: 4px; }

/* ---------- Info pages (Returns, Shipping, Size guide...) ---------- */

/* A calm reading column, about 65 characters wide. body_html only ever
   contains h2, p, ul/li, strong and a. */
.info-page { padding-bottom: 72px; }
.info-head,
.info-body,
.info-contact { max-width: 65ch; }
.info-head { padding-block: 8px 28px; border-bottom: 2px solid var(--charcoal); }
.info-head h1 { font-size: clamp(2.25rem, 10vw, 3.75rem); line-height: 0.95; }
.info-head .label { margin-top: 14px; color: var(--maroon); }

.info-body { padding-top: 28px; font-size: 1.125rem; line-height: 1.65; }
.info-body > :first-child { margin-top: 0; }
.info-body h2 {
  margin: 2.25em 0 0.6em;
  font-size: 1.5rem;
  line-height: 1.1;
}
.info-body p { margin: 0 0 1.1em; }
.info-body ul { margin: 0 0 1.25em; padding-left: 1.25em; }
.info-body li { margin-bottom: 0.45em; padding-left: 0.25em; }
.info-body li::marker { color: var(--maroon); }
.info-body strong { font-weight: 700; }
.info-body a {
  color: var(--maroon);
  font-weight: 500;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.info-body a:hover { color: var(--charcoal); text-decoration-thickness: 2px; }

.info-contact {
  margin-top: 40px;
  padding: 18px 20px;
  background: var(--panel);
  border-left: 4px solid var(--maroon);
}
.info-contact a { color: var(--maroon); font-weight: 500; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: var(--white);
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--white); text-decoration-thickness: 2px; }

.footer-grid {
  display: grid;
  gap: 36px;
  padding-block: 56px 40px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }

.footer-brand .wordmark-name { display: block; font-size: 1.75rem; }
.footer-brand p { max-width: 30rem; margin-top: 14px; }
.footer-mission { font-size: 1.1875rem; font-weight: 500; }

.footer-col h2 {
  margin-bottom: 14px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  letter-spacing: var(--track-label);
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a[aria-current="page"] { text-decoration-thickness: 2px; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 28px;
  border-top: 1px solid var(--charcoal);
  font-size: 0.9375rem;
}
.footer-base p { margin: 0; }

/* ---------- Motion ---------- */

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

/* ---------- Cart: "Add to your order" (decided with Jeremy Oct 6 2026) ----------
   Right under the cart lines, in the same column, so it's seen before checking
   out; compact rows so three or four fit at a glance. */
.cart-main { min-width: 0; }
.cart-suggestions { margin-top: 32px; padding: 24px; background: var(--panel); border-top: 4px solid var(--maroon); }
.cart-suggestions-title { margin: 0 0 16px; font-size: 1.375rem; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.03em; }
.suggest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.suggest { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; background: var(--white); }
.suggest-photo { display: block; aspect-ratio: 1 / 1; background: var(--panel); }
.suggest-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.suggest-name { margin: 0; font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.03em; }
.suggest-name a { text-decoration: none; }
.suggest-name a:hover { text-decoration: underline; text-decoration-color: var(--maroon); text-decoration-thickness: 2px; }
.suggest-price { margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.suggest-info form { margin: 0; }
.suggest-add { padding: 8px 16px; font-size: 0.8125rem; }
@media (max-width: 719px) { .cart-suggestions { padding: 16px; } .suggest { grid-template-columns: 72px minmax(0, 1fr); } }

/* Logo in the header, as on columbussaints.org (official artwork, emblem beside the name). */
.wordmark-logo { display: block; height: 36px; width: auto; }
@media (min-width: 900px) { .wordmark-logo { height: 48px; } }
/* Hero, two looks (decided with Jeremy Oct 6 2026): one wide photo, or a group of photos across. */
.hero--solo .hero-group, .hero--group .hero-media { display: none; }
.hero--solo::before, .hero--group::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Phones: the text sits over the photos, so they're dimmed enough to read it. */
  background: linear-gradient(to top, rgb(31 32 33 / 0.95) 20%, rgb(31 32 33 / 0.55));
}
.hero-group { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--dark); }
.hero-group img { position: absolute; top: 0; height: 100%; object-fit: cover; display: block; }
.hero-group > img { left: 0; width: 100%; }
/* A photo moved in from the left edge fades in softly instead of starting with a hard edge. */
@media (min-width: 900px) { .hero-group > img { -webkit-mask-image: linear-gradient(to right, transparent, #000 30%); mask-image: linear-gradient(to right, transparent, #000 30%); } }
/* The pair is divided by the hero's maroon diagonal stripe (same angle): the right
   photo sits in a skewed frame whose left edge is the stripe; the photo inside is
   skewed back so it isn't distorted. */
.hero-split {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 46%;
  right: -80%;
  overflow: hidden;
  /* Solid behind the right photo, so the left photo can never show through past the stripe. */
  background: var(--dark);
  border-left: 10px solid var(--maroon);
  transform: skewX(-28deg);
  transform-origin: bottom left;
}
.hero-split img { left: 0; width: 42%; min-width: 42%; transform: skewX(28deg); transform-origin: bottom left; }
/* Phones: too narrow for the split, so the first photo of the pair shows alone. */
.hero-split { display: none; }
.hero--group::after { display: none; }
@media (min-width: 900px) {
  .hero--solo .hero-media { left: 30%; width: 70%; }
  .hero--solo::before { background: linear-gradient(to right, var(--dark) 30%, rgb(31 32 33 / 0.6) 45%, rgb(31 32 33 / 0) 70%), linear-gradient(to top, rgb(31 32 33 / 0.6), rgb(31 32 33 / 0) 40%); }
  /* Two wide photos across the right; the one nearest the text fades into the dark at its edge. */
  .hero-group { left: 26%; }
  .hero-group > img { width: 85%; }
  .hero-split { display: block; border-left-width: 14px; }
  .hero--group::before { background: linear-gradient(to right, var(--dark) 28%, rgb(31 32 33 / 0.85) 36%, rgb(31 32 33 / 0.35) 44%, rgb(31 32 33 / 0) 52%), linear-gradient(to top, rgb(31 32 33 / 0.5), rgb(31 32 33 / 0) 35%); }
}

/* Category headings inside a listing section (Apparel, Accessories). */
.listing-subtitle { margin: 28px 0 14px; font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: var(--track-label); color: var(--maroon); }
.listing-title + .listing-subtitle { margin-top: 8px; }
