/* ============================================================
   SBUTV SITE — v2 theme
   Palette + type pulled from the show's real graphics (navy/gold
   curtain, primary-color logo, chalkboard + parchment lower thirds)
   crossed with the "Utopian Scholastic" reference (serif encyclopedia
   type, red underline wordmark treatment). Layout modeled on speeed.co:
   nav -> hero image -> shop scroll -> podcast/YouTube section -> footer.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Archivo:ital,wght@0,400;0,500;0,700;0,900;1,500&family=Baloo+2:wght@700;800&family=Dancing+Script:wght@600;700&family=Kalam:wght@400;700&display=swap');

@font-face {
  font-family: 'LTC Goudy Oldstyle Pro';
  src: url('../fonts/LTC-Goudy-Oldstyle-Pro.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --navy: #1B2A4C;
  --burgundy: #5A1A2C;
  --gold: #D6A429;
  --red: #C8272C;
  --blue: #2F5FA8;
  --green: #2E7D4F;
  --chalk: #1F3B2E;
  --cream: #F2ECDA;
  --ink: #1A1712;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-headline: 'LTC Goudy Oldstyle Pro', 'Playfair Display', Georgia, serif;
  --font-body: 'PT Serif', Georgia, serif;
  --font-ui: 'Archivo', Arial, sans-serif;

  --max-width: 1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Recurring stripe motif, pulled from the "SAM BROWN" nameplate bar */
.stripe {
  display: flex;
  height: 5px;
  width: 100%;
}
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--red); }
.stripe span:nth-child(2) { background: var(--blue); }
.stripe span:nth-child(3) { background: var(--blue); }
.stripe span:nth-child(4) { background: var(--gold); }
.stripe span:nth-child(5) { background: var(--gold); }
.stripe span:nth-child(6) { background: var(--green); }

/* ── HEADER / NAV ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--burgundy);
  border-bottom: 3px solid var(--ink);
}
#site-header .bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
#site-header .logo {
  display: flex;
  align-items: center;
  line-height: 1;
}
#site-header .logo img {
  height: 40px;
  width: auto;
  max-width: none;
  display: block;
}
#site-header nav {
  display: flex;
  gap: 28px;
}
#site-header nav a {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.85);
  padding: 6px 0;
  transition: color 0.15s;
}
#site-header nav a:nth-child(1):hover, #site-header nav a:nth-child(1).active { color: var(--red); }
#site-header nav a:nth-child(2):hover, #site-header nav a:nth-child(2).active { color: var(--blue); }
#site-header nav a:nth-child(3):hover, #site-header nav a:nth-child(3).active { color: var(--gold); }
#site-header nav a:nth-child(4):hover, #site-header nav a:nth-child(4).active { color: var(--green); }

@media (max-width: 640px) {
  #site-header .bar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 16px;
    gap: 10px 16px;
  }
  #site-header .logo { order: 1; }
  #cart-toggle { order: 2; }
  #site-header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  #site-header nav a { font-size: 14px; }
}

#cart-toggle {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--cream);
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s;
}
#cart-toggle:hover { opacity: 0.85; }
#cart-count {
  background: var(--red);
  color: var(--cream);
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding: 0 4px;
}

/* ── HERO (homepage header image area) ── */
.hero {
  /* Pure banner image, no overlay/gradient/text — the photo carries the header.
     Drop the still at images/hero-banner.jpg; this block just frames it.
     No max-height here on purpose — capping it broke true 16:9 scaling past
     ~1140px wide (width kept growing while height got clamped, so the image
     cropped instead of scaling). This keeps full aspect-ratio scaling at
     any window width. */
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--navy);
  background-image: url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--ink);
}

/* Logo-matched treatment: white fill + hard offset shadow, no blur */
.brand-heading {
  font-family: var(--font-headline);
  font-weight: 400;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.85);
}

.btn-primary {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--red);
  color: var(--cream);
  border: none;
  border-radius: 6px;
  padding: 16px 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.4; cursor: default; }

.link-back {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  transition: opacity 0.15s;
}
.link-back:hover { opacity: 0.7; }
.link-back .arrow { font-size: 1.2em; line-height: 1; }
.product-detail #add-to-cart-btn { margin-bottom: 14px; }

/* ── PAGE HERO (shop/product pages) ── */
.page-hero {
  padding: 56px 24px 32px;
  border-bottom: 3px solid var(--ink);
  background: var(--navy);
}
.page-hero .kicker {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
}
.page-hero p {
  margin-top: 12px;
  max-width: 560px;
  font-style: italic;
  color: rgba(242,236,218,0.7);
}

/* Full-bleed navy band behind the homepage "University Merch" heading + grid */
.merch-band { background: var(--navy); }

/* ── PRODUCT GRID ── */
.product-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.product-card:hover { transform: translateY(-3px); }
.product-card.hover-red:hover { box-shadow: 4px 4px 0 var(--red); }
.product-card.hover-blue:hover { box-shadow: 4px 4px 0 var(--blue); }
.product-card.hover-gold:hover { box-shadow: 4px 4px 0 var(--gold); }
.product-card.hover-green:hover { box-shadow: 4px 4px 0 var(--green); }
.product-card .thumb {
  /* Matches the real product photos' native 1536x2048 (3:4) frame so
     object-fit:cover never has to crop anything — a square box was
     chopping the tops off designs that aren't centered low in-frame. */
  aspect-ratio: 3 / 4;
  background: var(--cream);
  overflow: hidden;
  position: relative;
}
.product-card .thumb-scroll {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-card .thumb-scroll::-webkit-scrollbar { display: none; }
.product-card .thumb-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: 100%;
}
.product-card .thumb-slide img { width: 100%; height: 100%; object-fit: cover; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.18)); }
.product-card .thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.18)); }
.product-card .thumb-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}
.product-card .thumb-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(26,23,18,0.25);
  border: 1px solid rgba(242,236,218,0.8);
  transition: background 0.15s;
}
.product-card .thumb-dots .dot.active { background: var(--ink); }

/* ── FLAME TREATMENT (The Slay only) ──
   Real flame footage instead of a CSS gradient — CSS-drawn "fire" reads as
   blurry orange blobs, not flames. This is a Pexels clip shot on a pure
   black background; mix-blend-mode:screen makes the black vanish entirely,
   leaving only the bright flame licks visible over the thumb's dark fill.
   Scale/position tuned live with the user to land the tallest flame tip
   just above the shirt collar. */
.thumb.flame-bg { background: #0a0402; }
.thumb.flame-bg .flame-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  mix-blend-mode: screen;
  z-index: 0;
  transform-origin: 50% 100%;
  transform: scale(2.5);
}
.thumb.flame-bg .thumb-img { position: relative; z-index: 1; }

/* ── LEAVES TREATMENT (The Troublemaker only) ──
   Same mix-blend-mode:screen technique as the flame treatment above — a
   dark-background clip of falling cannabis leaves keyed over the thumb's
   dark fill. */
.thumb.leaves-bg { background: #0a0402; }
.thumb.leaves-bg .leaves-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  mix-blend-mode: screen;
  z-index: 0;
  transform-origin: 50% 50%;
  transform: scale(1.4);
}
.thumb.leaves-bg .thumb-img { position: relative; z-index: 1; }

/* ── BEER TREATMENT (The Lay only) ──
   Same mix-blend-mode:screen technique as the flame/leaves treatments above. */
.thumb.beer-bg { background: #0a0402; }
.thumb.beer-bg .beer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  mix-blend-mode: screen;
  z-index: 0;
  transform-origin: 50% 50%;
  transform: scale(1.4);
}
.thumb.beer-bg .thumb-img { position: relative; z-index: 1; }

.collab-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border-radius: 4px;
  padding: 4px 8px;
  margin-bottom: 6px;
  align-self: flex-start;
}
.product-detail .collab-badge { font-size: 12px; padding: 5px 10px; margin-bottom: 12px; }
/* The badge itself is uppercase (.collab-badge above), but "MethSyndicate"
   is a brand name with specific capitalization — exempt just that word
   from the transform so it renders exactly as spelled, while "SBUTV
   Collab" stays uppercase like the rest of the badge. */
.collab-badge .brand-case { text-transform: none; }
.product-card .info { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.product-card .name-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-card .name { font-family: var(--font-headline); font-weight: 400; font-size: 18px; line-height: 1.2; }
/* Color swatch dots next to the title — hover one to preview that color in
   the thumb above without navigating away. The permanent outer black ring
   (outline) marks each dot's position; the inner border flips from black
   to white on hover so the change reads clearly even against the white
   card background, where a plain black-to-white border alone would vanish. */
.product-card .color-dots { display: flex; gap: 9px; flex-shrink: 0; }
.product-card .color-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 2px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.product-card .color-dot:hover { border-color: #fff; }
.product-card .price { font-family: var(--font-ui); font-size: 21px; font-weight: 700; color: var(--red); text-align: left; margin-top: 0; }

/* ── PRODUCT DETAIL ── */
.product-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; gap: 28px; } }
.product-detail .gallery { background: #fff; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; position: relative; }
.product-detail .gallery img { width: 100%; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.18)); position: relative; z-index: 1; }
.product-detail .gallery.flame-bg { background: #0a0402; }
.product-detail .gallery.flame-bg .flame-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  mix-blend-mode: screen;
  z-index: 0;
  transform-origin: 50% 100%;
  transform: scale(2.5);
}
.product-detail .gallery.leaves-bg { background: #0a0402; }
.product-detail .gallery.leaves-bg .leaves-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  mix-blend-mode: screen;
  z-index: 0;
  transform-origin: 50% 50%;
  transform: scale(1.4);
}
.product-detail .gallery.beer-bg { background: #0a0402; }
.product-detail .gallery.beer-bg .beer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  mix-blend-mode: screen;
  z-index: 0;
  transform-origin: 50% 50%;
  transform: scale(1.4);
}
.product-detail .kicker {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  opacity: 0.6; margin-bottom: 12px;
}
.product-detail h1 {
  font-family: var(--font-headline); font-weight: 400;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin-bottom: 16px;
}
.product-detail .price { font-family: var(--font-ui); font-size: 20px; font-weight: 700; color: var(--red); margin-bottom: 24px; }
.product-detail .desc { font-family: var(--font-ui); font-weight: 400; font-style: normal; color: rgba(26,23,18,0.65); max-width: 460px; margin-bottom: 28px; }
.product-detail .desc p { margin: 0; }
.product-detail .variant-group { margin-bottom: 20px; }
.product-detail .variant-group label {
  display: block; font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; opacity: 0.6; margin-bottom: 8px;
}
.product-detail select {
  font-family: var(--font-body); font-size: 15px; background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 6px; padding: 12px 14px; width: 100%; max-width: 320px;
}

.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--ink); cursor: pointer; padding: 0;
  transition: outline-color 0.15s;
  outline: 3px solid transparent; outline-offset: 2px;
}
.color-swatch.selected { outline-color: var(--gold); }
.color-swatch:hover { outline-color: rgba(214,164,41,0.5); }

.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 6px; padding: 8px 16px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.size-btn:hover:not(:disabled) { background: var(--cream); }
.size-btn.selected { background: var(--ink); color: var(--cream); }
.size-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* ── PODCAST / WATCH SECTION (chalkboard) ── */
.podcast-section {
  background: var(--chalk);
  color: var(--cream);
  padding: 72px 24px;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px);
}
.podcast-section .inner { max-width: var(--max-width); margin: 0 auto; }
.podcast-section .kicker {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.podcast-section h2 {
  font-family: var(--font-headline); font-weight: 400;
  font-size: clamp(28px, 4vw, 44px); margin-bottom: 4px; line-height: 1.1;
}
.podcast-section p.lede {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  color: rgba(242,236,218,0.8); max-width: 560px; margin-bottom: 40px; font-size: 18px;
}
.podcast-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) { .podcast-layout { grid-template-columns: 1fr; } }
.latest-episode { display: flex; flex-direction: column; gap: 14px; }
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border: 3px solid var(--cream);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Mini chalkboard sign — white-outlined frame, text written in chalk.
   Candidate for swapping in a custom-drawn image later. */
.btn-chalk {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Kalam', cursive;
  font-size: 19px;
  font-weight: 700;
  color: var(--cream);
  text-shadow: 0 0 4px rgba(242,236,218,0.55), 0 0 1px rgba(242,236,218,0.85);
  background: rgba(0,0,0,0.18);
  border: 2px solid var(--cream);
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-chalk:hover { background: rgba(242,236,218,0.1); color: var(--gold); border-color: var(--gold); }

.honor-roll { display: flex; flex-direction: column; gap: 14px; }
.honor-roll > .ep-label-wrap { align-self: flex-start; }
.honor-roll .ep-label {
  font-family: var(--font-headline); font-size: clamp(22px, 2.6vw, 30px); font-weight: 400; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 4px; line-height: 1.1; text-align: center;
}
.mini-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border: 2px solid var(--cream);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.mini-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.btn-outline-cream {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid var(--cream);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.btn-outline-cream:hover { background: var(--cream); color: var(--chalk); }

/* ── CART DRAWER ── */
#cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 400; }
#cart-overlay.open { opacity: 1; pointer-events: all; }
#cart-drawer {
  position: fixed; top: 0; right: 0; width: 100%; max-width: 420px;
  /* height: 100vh is a fallback for browsers without dvh support. On mobile,
     100vh includes space hidden behind the collapsing address bar, which
     was pushing the checkout button below the actual visible screen —
     100dvh (dynamic viewport height) tracks the real visible area instead. */
  height: 100vh;
  height: 100dvh;
  background: var(--cream); border-left: 3px solid var(--ink);
  transform: translateX(100%); transition: transform 0.25s ease; z-index: 401;
  display: flex; flex-direction: column;
}
#cart-drawer.open { transform: translateX(0); }
#cart-drawer .cart-head { padding: 24px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: center; }
#cart-drawer .cart-head h2 { font-family: var(--font-display); font-size: 20px; font-weight: 900; }
#cart-close { background: none; border: none; font-size: 22px; cursor: pointer; line-height: 1; opacity: 0.6; }
#cart-close:hover { opacity: 1; }
#cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-line { display: flex; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid rgba(26,23,18,0.15); }
.cart-line img { width: 64px; height: 64px; object-fit: cover; background: #fff; border: 2px solid var(--ink); border-radius: 6px; }
.cart-line .meta { flex: 1; }
.cart-line .meta .name { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.cart-line .meta .variant { font-family: var(--font-ui); font-size: 11px; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.5px; }
.cart-line .meta .qty-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; }
.cart-line .qty-row button { background: #fff; border: 2px solid var(--ink); border-radius: 4px; width: 22px; height: 22px; cursor: pointer; }
.cart-line .remove { font-family: var(--font-ui); font-size: 11px; text-transform: uppercase; opacity: 0.5; text-decoration: underline; cursor: pointer; margin-top: 8px; display: inline-block; }
#cart-empty { font-family: var(--font-ui); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.4; text-align: center; padding: 60px 0; }
#cart-drawer .cart-foot { padding: 24px; border-top: 2px solid var(--ink); }
#cart-foot-total { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 16px; opacity: 0.7; }
#cart-foot-total span:last-child { font-weight: 700; opacity: 1; font-size: 16px; color: var(--red); }
#checkout-btn { width: 100%; justify-content: center; }

/* ── JOIN THE STUDENT BODY MODAL ──
   Built on the native <dialog> element instead of a hand-rolled overlay div.
   showModal()/close() render it in the browser's top layer, so it can never
   get stuck inline in the page flow the way a position:fixed div can if a
   class fails to apply — the browser itself owns the hidden/shown state via
   the `open` attribute, independent of our CSS cascade. */
.modal-box {
  position: fixed;
  inset: 0;
  margin: auto;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 32px;
  max-width: 480px;
  width: calc(100% - 48px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.modal-box::backdrop {
  background: rgba(0,0,0,0.6);
}
.modal-close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  font-size: 24px; cursor: pointer; opacity: 0.6; line-height: 1;
}
.modal-close:hover { opacity: 1; }
.modal-box h2 {
  font-family: var(--font-headline); font-weight: 400; text-transform: uppercase;
  color: #ffffff; text-shadow: 2px 2px 0 rgba(0,0,0,0.85); font-size: 25px; margin-bottom: 0;
  white-space: nowrap;
}
.modal-box p.modal-copy { font-family: var(--font-ui); font-size: 14px; color: rgba(26,23,18,0.7); margin-top: 14px; margin-bottom: 22px; }
#join-form label {
  display: block; font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px;
}
#join-form input {
  display: block; width: 100%; margin-top: 6px; font-family: var(--font-body); font-size: 15px;
  padding: 10px 12px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; color: var(--ink);
}
#join-form button { margin-top: 4px; width: 100%; justify-content: center; }
#join-success { font-family: var(--font-ui); font-weight: 700; color: var(--green); font-size: 15px; }
@media (max-width: 480px) {
  .modal-box h2 { font-size: 19px; }
}

/* ── FOOTER ── */
#site-footer { background: var(--navy); color: var(--cream); }
#site-footer .stripe { }
#site-footer .foot-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 40px 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
}
#site-footer .socials { display: flex; gap: 18px; align-items: center; }
#site-footer .socials a { display: flex; align-items: center; justify-content: center; transition: color 0.15s; }
#site-footer .socials svg { width: 24px; height: 24px; display: block; }
#site-footer .socials a:nth-child(1):hover { color: var(--red); }
#site-footer .socials a:nth-child(2):hover { color: var(--blue); }
#site-footer .socials a:nth-child(3):hover { color: var(--gold); }
#site-footer .socials a:nth-child(4):hover { color: var(--green); }
#site-footer .socials a:nth-child(5):hover { color: var(--red); }
#site-footer .copyright { font-family: var(--font-ui); font-size: 12px; opacity: 0.6; }
