/* ARTistic Singing — storefront styles.
   Visual system per the v1 brief: warm cream base, ink text, and a
   small set of loud accents ordered by lightness (purple → teal →
   coral → marigold) so collections and categories differ by
   luminance, not hue alone. No meaning is carried by color alone —
   fills, weights, borders, and labels all say it too. */

:root {
  --paper: #FBF6EC;          /* cream page background */
  --ink: #1C1917;
  --ink-soft: #5A5148;
  --line: #E2D9C6;
  --dark: #1C1917;
  --dark-soft: #2A2724;
  --coral: #D63A2F;          /* the one Buy color — never deviates */
  --marigold: #F2A007;
  --teal: #0B6B74;
  --purple: #5B3FA8;
  --warm-panel: #F6F1E7;
  --tint-blush: #FDECEA;
  --tint-sky: #E3EEF8;
  --tint-mint: #DFF2E4;
  --tint-gold: #FDF3DC;
  --panel-black: #1b1b1e;
  --panel-navy: #20304f;
  --panel-charcoal: #4b4b50;
  --panel-red: #a91e28;
  --panel-royal: #1e4390;
  --panel-forest: #1d4a34;
  --panel-maroon: #5c1f27;
  --panel-brown: #4a3423;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 25, 23, 0.10);
  --hard: 4px 4px 0 var(--ink);
  --font-display: "Fredoka", "Avenir Next", system-ui, sans-serif;
  --font-body: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Safety net: no stray wide element may stretch the page past the
     screen (the hero carousel once forced a ~1,400px layout on phones). */
  overflow-x: clip;
  max-width: 100%;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* The wordmark lockup keeps its own faces: Allura ART + Georgia. */
.wordmark, .footer-brand {
  font-family: Georgia, "Times New Roman", serif;
}

/* Allura script eyebrow above section titles (brief device 8) —
   one or two playful words, tilted like a handwritten note. */
.script-eyebrow {
  display: block;
  font-family: "Allura", "Snell Roundhand", cursive;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--ink);
  transform: rotate(-2deg);
  transform-origin: left center;
  margin-bottom: 2px;
}
.script-eyebrow--cream { color: var(--paper); }
.script-eyebrow--marigold { color: var(--marigold); }

/* Starburst stickers (brief device 1): .burst-svg is generated by
   app.js; .burst-el wraps standalone bursts, .card-badge wraps the
   one on cards. */
.burst-svg { display: block; }
.burst-el { display: inline-block; flex: none; }
.burst-el .burst-svg {
  filter: drop-shadow(2px 2px 0 rgba(28, 25, 23, 0.9));
}
.burst-el--tilt-l .burst-svg { transform: rotate(-8deg); }

/* Music-note confetti (brief device 3) — decorative, corners only. */
.confetti-host { position: relative; }
.confetti-note {
  position: absolute;
  z-index: 0;
  color: var(--ink);
  opacity: 0.09;
  pointer-events: none;
  line-height: 0;
}
.confetti-note svg { width: 100%; height: 100%; }
.confetti-note--light { color: var(--paper); opacity: 0.14; }

/* Wavy section dividers (brief device 2): the wave is filled with
   the NEXT section's background and sits on the previous one. */
.wave { line-height: 0; }
.wave svg { display: block; width: 100%; height: 54px; }
.wave path { fill: currentColor; }
.wave-cream-to-ink { color: var(--ink); background: var(--paper); }
.wave-ink-to-teal { color: var(--teal); background: var(--ink); }
.wave-teal-to-ink { color: var(--ink); background: var(--teal); }

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

a { color: inherit; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Dark ink band (owner direction, Nov 8, 2026) so the header
     reads as its own element against the cream body. */
  background: var(--ink);
  border-bottom: 3px solid var(--marigold);
  color: var(--paper);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.wordmark {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--paper);
}
/* ART in calligraphy; the rest in the serif display face. */
.wm-art {
  font-family: "Allura", "Snell Roundhand", cursive;
  font-style: normal;
  font-weight: 400;
  font-size: 1.65em;
  line-height: 1.0;
  position: relative;
  top: 0.07em;
  margin-right: 0.05em;
}
.wordmark .wm-sing, .footer-brand .wm-sing { font-style: italic; font-weight: 400; }
/* ".com" suffix — header and footer wordmarks; small and muted so the wordmark stays the hero. */
.wordmark .wm-com, .footer-brand .wm-com {
  font-size: 0.55em;
  font-style: normal;
  font-weight: 400;
  opacity: 0.55;
  margin-left: 0.1em;
}
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}
.nav-links a {
  text-decoration: none;
  color: #CFC8B8;
  font-weight: 800;
}
.nav-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Sticker buttons (brief device 5): pill, 2px ink border, flat
   hard-offset shadow that compresses as the button is pressed.
   Buy buttons are coral and only coral; ink is the standard
   primary; white is the secondary. */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.95rem;
  border: 2px solid var(--ink);
  box-shadow: var(--hard);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-inline { padding: 1px 12px 2px; font-size: 0.85em; box-shadow: 2px 2px 0 var(--ink); }
.nav .btn { margin-left: 6px; }

/* ---------- Nav search ---------- */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: 1 1 220px;
  max-width: 320px;
  min-width: 160px;
}
.search-icon {
  position: absolute;
  left: 12px;
  color: var(--ink-soft);
  pointer-events: none;
  flex: none;
}
.nav-search input {
  width: 100%;
  padding: 9px 34px 9px 36px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  -webkit-appearance: none;
  appearance: none;
}
.nav-search input::placeholder { color: var(--ink-soft); }
.nav-search input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--marigold);
}
.nav-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.nav-search input::-ms-clear { display: none; }
.search-clear {
  position: absolute;
  right: 6px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
}
.search-clear:hover { background: var(--line); color: var(--ink); }
.search-clear[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 20px 48px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  /* Top-aligned (owner direction, Nov 8, 2026): centering the copy
     against the tall reel left a dead band above the headline. */
  align-items: start;
}
.hero-copy, .reel-mount { position: relative; z-index: 1; min-width: 0; }
/* The hero's eyebrow is a script signature line, not a label. */
.eyebrow {
  font-family: "Allura", "Snell Roundhand", cursive;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--ink);
  transform: rotate(-2deg);
  transform-origin: left center;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
/* The wink under the headline, in the headline's own script. */
.hero-script {
  font-family: "Allura", "Snell Roundhand", cursive;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  color: var(--ink-soft);
  transform: rotate(-2deg);
  transform-origin: left center;
  margin: 0 0 16px 8px;
}
/* Quartet-deal pill under the hero facts, filling the copy column. */
.hero-deal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  max-width: 30rem;
  background: var(--marigold);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--hard);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.hero-deal:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.hero-deal-tag {
  flex: none;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 10px 3px;
  font-size: 0.85rem;
}
/* One word of the headline in Allura marigold (brief hero spec). */
.h-script {
  font-family: "Allura", "Snell Roundhand", cursive;
  font-weight: 400;
  font-size: 1.22em;
  color: var(--marigold);
  padding-right: 0.06em;
}
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero-facts { font-size: 0.92rem; font-weight: 700; color: var(--ink-soft); }

.panel-black { background: var(--panel-black); }
.panel-navy { background: var(--panel-navy); }
.panel-charcoal { background: var(--panel-charcoal); }
.panel-red { background: var(--panel-red); }
.panel-royal { background: var(--panel-royal); }
.panel-forest { background: var(--panel-forest); }
.panel-maroon { background: var(--panel-maroon); }
.panel-brown { background: var(--panel-brown); }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 16px 20px;
}
.trust-strip p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  letter-spacing: 0.01em;
  max-width: 1180px;
  margin: 0 auto;
}
/* Separators are little marigold eighth notes (brief section map). */
.trust-sep {
  display: inline-block;
  color: var(--marigold);
  padding: 0 0.3em;
  vertical-align: -0.18em;
  line-height: 0;
}
.trust-sep svg { width: 0.95em; height: 0.95em; }

/* ---------- Dress Your Quartet offer ---------- */
.quartet {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 0;
}
.quartet-inner {
  position: relative;
  background: var(--marigold);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--hard);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.quartet-burst {
  position: absolute;
  top: -26px;
  right: 22px;
  width: 92px;
  height: 92px;
  transform: rotate(10deg);
  z-index: 2;
}
.quartet-copy { flex: 1 1 300px; }
.quartet-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--ink);
  margin-bottom: 8px;
}
.quartet-copy p {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 32rem;
}
.quartet-copy .quartet-sub {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.5;
}
.quartet-cta { margin-top: 18px; }
.quartet-tiles {
  display: flex;
  gap: 12px;
  flex: 0 1 auto;
}
.quartet-tile {
  flex: 0 0 118px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  transition: transform 0.15s ease;
}
/* Photo-board tiles: white frames, alternating tilt (device 6). */
.quartet-tile:nth-child(odd) { transform: rotate(-2deg); }
.quartet-tile:nth-child(even) { transform: rotate(2deg); }
.quartet-tile:hover { transform: rotate(0deg) translateY(-3px); }
.quartet-panel {
  border: 6px solid #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.25);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.quartet-panel img { width: 86%; height: 88%; object-fit: contain; }
.quartet-tile-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 8px 4px 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 560px) {
  .quartet-inner { padding: 20px; gap: 20px; }
  .quartet-tiles { flex-wrap: wrap; flex: 1 1 100%; }
  .quartet-tile { flex-basis: calc(50% - 6px); }
}

/* ---------- Newest designs rail ---------- */
.newest {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px 6px;
}
.newest-head { margin-bottom: 20px; max-width: 44rem; }
.newest-title-row { display: flex; align-items: center; gap: 14px; }
.newest-title-row h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.newest-title-row .burst-el .burst-svg { width: 58px; height: 58px; }
.newest-head p { color: var(--ink-soft); }
.newest-viewport {
  overflow: hidden;
}
.newest-viewport.is-static { overflow-x: auto; }
.newest-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 18px 14px;
  animation: newest-scroll 55s linear infinite;
}
.newest-viewport:hover .newest-track,
.newest-viewport:focus-within .newest-track,
.newest-viewport.is-paused .newest-track { animation-play-state: paused; }
/* One tile-set period = half the track minus (padding − gap/2) = 7px,
   so the second copy lands exactly where the first started. */
@keyframes newest-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% + 7px)); }
}
.newest-tile {
  flex: 0 0 168px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.15s ease;
}
/* White-framed tiles, alternating ±1.5° tilt (brief section map). */
.newest-tile:nth-child(odd) { --tilt: -1.5deg; }
.newest-tile:nth-child(even) { --tilt: 1.5deg; }
.newest-tile:hover { transform: rotate(var(--tilt, 0deg)) translateY(-2px); }
.newest-panel {
  border: 6px solid #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.16);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.newest-panel img { width: 86%; height: 88%; object-fit: contain; }
.newest-name {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 8px 4px 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Phones/tablets: the marquee becomes a swipeable strip — a single
   tile set in a natively scrolling row (owner report, Nov 8, 2026:
   the animated rail could not be dragged or scrolled on mobile). */
@media (max-width: 720px) {
  .newest-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .newest-viewport::-webkit-scrollbar { display: none; }
  .newest-track { animation: none; }
  .newest-tile[aria-hidden="true"] { display: none; }
}

/* ---------- Search results ---------- */
/* While a query is active the results replace the homepage sections. */
body.search-active .hero,
body.search-active .trust-strip,
body.search-active #quartet-offer,
body.search-active #newest,
body.search-active .shop-wrap,
body.search-active .faq,
body.search-active .idea-band,
body.search-active .about,
body.search-active .idea,
body.search-active .wave { display: none; }

.search-results {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px 10px;
}
.search-head { margin-bottom: 24px; max-width: 44rem; }
.search-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.search-count { color: var(--ink-soft); font-weight: 600; }
.search-empty { max-width: 44rem; padding-bottom: 40px; }
.search-empty h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }
.search-empty p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 20px; }

/* ---------- Shop layout: category sidebar + collections ---------- */
.shop-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.shop-layout {
  display: flex;
  gap: 34px;
  align-items: flex-start;
}
.shop-main { flex: 1 1 auto; min-width: 0; }
.shop-main .collection {
  max-width: none;
  margin: 26px 0 0;
  padding: 30px 26px 12px;
  border-radius: 18px;
}
/* Section background tints rotate per collection (brief): blush →
   sky → mint → gold, all with ink text. */
#collections .collection:nth-child(1) { background: var(--tint-blush); }
#collections .collection:nth-child(2) { background: var(--tint-sky); }
#collections .collection:nth-child(3) { background: var(--tint-mint); }
#collections .collection:nth-child(4) { background: var(--tint-gold); }

/* ---------- Category menu ---------- */
/* Sticky card on desktop; the same markup turns into a horizontal
   chip row under the stacked-layout breakpoint. Color accents are
   decoration only — labels, counts, and the filled active pill all
   carry the meaning in plain sight. */
.cat-nav {
  flex: 0 0 238px;
  position: sticky;
  top: 90px;
  margin-top: 36px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--hard);
  padding: 18px 14px 16px;
  /* Full length, no inner scrollbar (owner direction, Nov 8, 2026). */
}
.cat-nav-title { font-size: 1.05rem; margin: 0 4px 13px; }
.cat-list { display: flex; flex-direction: column; gap: 7px; }
.cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 13px;
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 999px;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 0.13s ease, border-color 0.13s ease, color 0.13s ease, transform 0.13s ease;
}
.cat-item:hover { background: var(--cat-tint); transform: translateX(2px); }
.cat-label { flex: 1 1 auto; line-height: 1.25; }
/* Count lives in a small ink circle with white numerals — in every
   state, so the number reads the same active or not. */
.cat-count {
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 999px;
  min-width: 26px;
  text-align: center;
  padding: 2px 7px;
  flex: none;
}
/* Active = accent fill + paired text + bold — never hue alone. */
.cat-item.is-active {
  background: var(--cat-accent);
  border-color: var(--ink);
  color: var(--cat-on);
  font-weight: 800;
}
/* On the ink-filled "All Shirts" chip the ink count circle would
   vanish, so it flips to cream there. */
.cat-item[data-cat="all"].is-active .cat-count { background: var(--paper); color: var(--ink); }

.cat-idea {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 12px 13px;
  background: #E0F0F2;
  border: 2px dashed var(--teal);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.13s ease, transform 0.13s ease;
}
.cat-idea:hover { background: #CDE6E9; transform: translateY(-1px); }
.cat-idea-emoji { font-size: 1.25rem; line-height: 1; flex: none; }

.cat-view-count { font-weight: 800; color: var(--ink); white-space: nowrap; }
#category-view[hidden], #collections[hidden] { display: none; }

/* ---------- Collection sections ---------- */
.collection {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px 10px;
  scroll-margin-top: 84px;
}
.collection-head { margin-bottom: 24px; max-width: 44rem; position: relative; z-index: 1; }
.collection-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }
.collection-head p { color: var(--ink-soft); }
.collection-head .script-eyebrow { color: var(--col-eyebrow, var(--ink)); }
/* Collection name as a tilted accent ribbon (brief device 8). */
.head-ribbon {
  display: inline-block;
  background: var(--col-accent, var(--ink));
  color: var(--col-on, #fff);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 7px 18px 9px;
  transform: rotate(-1deg);
}
.collection .grid { position: relative; z-index: 1; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 22px;
  padding-bottom: 30px;
}

/* ---------- Product cards ---------- */
.card {
  position: relative;
  background: #fff;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(28, 25, 23, 0.07);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
/* Hover: a 4px bar in the collection accent slides in at the
   card's bottom edge (brief section map). */
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--card-accent, var(--ink));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
  z-index: 2;
}
.card:hover::after, .card:focus-within::after { transform: scaleX(1); }

/* Art sits on a warm mat; the shirt color itself is the inner
   panel, which is what the swatches swap. */
.card-panel {
  position: relative;
  aspect-ratio: 5 / 5.4;
  background: var(--warm-panel);
  padding: 14px;
  display: flex;
}
.card-art {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.18s ease;
}
.card-art img { width: 84%; height: 88%; object-fit: contain; }
/* NEW! starburst (brief device 1): marigold burst, ink text,
   rotated, overlapping the panel's top-left corner. */
.card-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 3;
  line-height: 0;
}
.card-badge .burst-svg {
  width: 56px;
  height: 56px;
  transform: rotate(-8deg);
  filter: drop-shadow(2px 2px 0 rgba(28, 25, 23, 0.9));
}

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.card-meta { display: flex; align-items: baseline; justify-content: space-between; }
/* Prices are Fredoka, full ink, never small gray (brief type spec). */
.card-price { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; color: var(--ink); }
.card-sizes { font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; }

.swatches { display: flex; gap: 8px; align-items: center; margin: 2px 0 4px; }
.swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(18, 19, 23, 0.25);
  cursor: pointer;
  padding: 0;
  flex: none;
}
.swatch[data-color="black"] { background: var(--panel-black); }
.swatch[data-color="navy"] { background: var(--panel-navy); }
.swatch[data-color="charcoal"] { background: var(--panel-charcoal); }
.swatch[data-color="red"] { background: var(--panel-red); }
.swatch[data-color="royal"] { background: var(--panel-royal); }
.swatch[data-color="forest"] { background: var(--panel-forest); }
.swatch[data-color="maroon"] { background: var(--panel-maroon); }
.swatch[data-color="brown"] { background: var(--panel-brown); }
.swatch.active { border-color: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.swatch-label { font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; margin-left: 2px; }

.card .btn { margin-top: auto; text-align: center; }

/* ---------- About ---------- */
.about {
  margin-top: 44px;
  background: var(--dark);
  color: var(--paper);
}
.about-inner { max-width: 760px; margin: 0 auto; padding: 64px 20px; text-align: center; }
.about-inner .script-eyebrow { transform-origin: center; }
.about h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.about p { font-size: 1.08rem; color: #D9D2C2; margin-bottom: 14px; }
.about .about-note { color: var(--paper); font-weight: 600; }

/* ---------- Homepage FAQ ---------- */
.faq { max-width: 1180px; margin: 0 auto; padding: 52px 20px 6px; }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-inner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }
.faq-sub { color: var(--ink-soft); margin-bottom: 18px; }
.faq-item { border-top: 1px solid var(--line); padding: 4px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item > summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 12px 0 8px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
}
.faq-item[open] > summary::after { content: "–"; }
.faq-item p { color: var(--ink-soft); padding-bottom: 14px; max-width: 42rem; }

/* ---------- Idea band (homepage teaser) ---------- */
.idea-band {
  max-width: 1180px;
  margin: 48px auto 0;
  padding: 0 20px;
}
.idea-band-inner {
  background: var(--teal);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--hard);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.idea-band-emoji {
  font-size: 2.7rem;
  line-height: 1;
  transform: rotate(-8deg);
  flex: none;
}
.idea-band-copy { flex: 1 1 320px; }
.idea-band-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.idea-band-copy p { font-size: 1.05rem; font-weight: 600; max-width: 36rem; }

/* ---------- Idea form section ---------- */
.idea {
  background: var(--teal);
  scroll-margin-top: 96px;
}
.idea-inner { max-width: 720px; margin: 0 auto; padding: 64px 20px 70px; }
.idea-emoji { text-align: center; font-size: 2.9rem; line-height: 1.2; margin-bottom: 6px; }
.idea-eyebrow { text-align: center; transform-origin: center; }
.idea h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  text-align: center;
  margin-bottom: 10px;
  color: #fff;
}
.idea-sub {
  text-align: center;
  color: #EDF4F4;
  font-size: 1.08rem;
  max-width: 34rem;
  margin: 0 auto 28px;
}
/* White form card on the teal panel, held on with two strips of
   masking tape (brief device 7). */
.idea-form {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--hard);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.idea-form::before,
.idea-form::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 104px;
  height: 26px;
  background: rgba(251, 246, 236, 0.78);
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.18);
  z-index: 1;
}
.idea-form::before { left: 30px; transform: rotate(-38deg); }
.idea-form::after { right: 30px; transform: rotate(38deg); }
.idea-field label { display: block; font-weight: 800; font-size: 0.98rem; margin-bottom: 7px; }
.idea-field input,
.idea-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid #CFC7B4;
  border-radius: 12px;
  padding: 12px 14px;
}
.idea-field textarea { resize: vertical; min-height: 112px; }
.idea-field input::placeholder,
.idea-field textarea::placeholder { color: var(--ink-soft); }
.idea-field input:focus,
.idea-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px var(--marigold);
}
.idea-submit { font: inherit; cursor: pointer; align-self: flex-start; }
.idea-fineprint { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Thanks page (idea form confirmation) ---------- */
.thanks {
  max-width: 760px;
  margin: 0 auto;
  padding: 92px 20px 104px;
  text-align: center;
}
.thanks-emoji { font-size: 3.2rem; line-height: 1.2; margin-bottom: 12px; }
.thanks .script-eyebrow { transform-origin: center; }
.thanks h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.thanks p { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 28px; }
.thanks { max-width: 1060px; }
.thanks-picks-head { margin-bottom: 2px; }
.thanks-picks-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 20px; }
.thanks-picks { text-align: left; margin-bottom: 34px; }
.card-link { display: block; text-decoration: none; color: inherit; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #CFC8B8; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 36px 20px 44px; text-align: center; }
.footer-inner > p { position: relative; z-index: 1; }
/* Oversized Allura ART in cream (brief section map). */
.footer-brand { color: var(--paper); font-size: 1.9rem; margin-bottom: 8px; }
.footer a { color: var(--paper); font-weight: 700; }
.footer p { margin-bottom: 6px; font-size: 0.95rem; }
.footer-note { font-size: 0.8rem; color: #A79E8E; margin-top: 10px; }
.footer-copy { font-size: 0.85rem; color: #A79E8E; margin-top: 12px; }

/* ---------- Highlight reel (hero carousel) ---------- */
.reel { position: relative; outline: none; }
.reel:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: var(--radius); }
.reel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  border: 2px solid var(--ink);
  min-width: 0;
}
.reel-track { display: flex; transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.3, 1); min-width: 0; }
.reel-slide { flex: 0 0 100%; display: flex; flex-direction: column; min-width: 0; }
.reel-panel {
  aspect-ratio: 5 / 4.6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease;
  min-width: 0;
  overflow: hidden;
}
.reel-panel img { width: 80%; height: 86%; object-fit: contain; }
.reel-caption { padding: 18px 22px 20px; background: #fff; }
.reel-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.reel-title { font-size: 1.28rem; line-height: 1.3; margin-bottom: 12px; }
.reel-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.reel-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }

.reel-arrow {
  position: absolute;
  top: 34%;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: rgba(18, 19, 23, 0.88);
  color: var(--paper);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 2;
}
.reel-arrow:hover { background: #000; transform: scale(1.06); }
.reel-prev { left: 12px; }
.reel-next { right: 12px; }

/* Pill slide indicators; the active one stretches into a
   marigold pill (brief hero spec). */
.reel-dots { display: flex; gap: 9px; justify-content: center; margin-top: 16px; }
.reel-dot {
  width: 11px; height: 11px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, width 0.2s ease, transform 0.15s ease;
}
.reel-dot:hover { transform: scale(1.2); }
.reel-dot.active { background: var(--marigold); width: 28px; }

/* ---------- Product view overlay ---------- */
body.pv-open { overflow: hidden; }
.pv {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.pv[hidden] { display: none; }
.pv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 13, 0.58);
  animation: pv-fade 0.18s ease;
}
.pv-sheet {
  position: relative;
  background: var(--paper);
  width: min(1060px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 18px;
  padding: 30px 30px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: pv-rise 0.22s cubic-bezier(0.22, 0.8, 0.3, 1);
}
@keyframes pv-fade { from { opacity: 0; } }
@keyframes pv-rise { from { opacity: 0; transform: translateY(14px); } }
.pv-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.13s ease, color 0.13s ease;
}
.pv-close:hover { background: var(--ink); color: var(--paper); }

.pv-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
/* Gallery: warm mat outside, the shirt color on the inner panel —
   the swatches swap the inner panel, same as the cards. */
.pv-panel {
  border-radius: var(--radius);
  background: var(--warm-panel);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}
/* The real printed shirt photo, under the design artwork. */
.pv-mockup {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.pv-mockup img { width: 100%; height: auto; }
.pv-mockup figcaption {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 9px 14px 11px;
}
.pv-art {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 12px;
  aspect-ratio: 5 / 5.2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.18s ease;
}
/* Product photo gallery: model photos, color tees, artwork. */
.pv-gallery { display: flex; flex-direction: column; gap: 10px; }
.pv-stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #F5EFE2;
  height: min(66vh, 600px);
}
.pv-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
}
.pv-slide.is-active { opacity: 1; visibility: visible; }
.pv-slide .pv-photo { width: 100%; height: 100%; object-fit: contain; display: block; }
.pv-slide .pv-art { height: 100%; aspect-ratio: auto; border-radius: 0; }
.pv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(251, 246, 236, 0.92);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pv-prev { left: 10px; }
.pv-next { right: 10px; }
.pv-caption {
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.92rem;
  min-height: 1.2em;
  margin: 0;
}
.pv-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pv-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #F5EFE2;
  cursor: pointer;
}
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-thumb.is-active { border-color: var(--pv-accent, #D63A2F); }
.pv-thumb-art { display: block; width: 100%; height: 100%; }
.pv-thumb-art img { object-fit: contain; padding: 4px; }
.pv-art img { width: 86%; height: 90%; object-fit: contain; }
.pv-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.pv-title { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin-bottom: 14px; }
/* Sticker price tag (brief device 4): white pill, dashed ink
   border, tilted, price set as a graphic in Fredoka. */
.pv-price {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 2px dashed var(--ink);
  border-radius: 999px;
  padding: 4px 18px 6px;
  transform: rotate(-3deg);
  margin-bottom: 18px;
}
.pv-swatch-slot .swatches { margin-bottom: 16px; }
.pv-swatch-slot .swatch { width: 28px; height: 28px; }
.pv-facts { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 22px; max-width: 30rem; }
.pv-buy { display: inline-block; }
.pv-note { margin-top: 12px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.pv-bulk-note { margin-top: 10px; font-size: 0.88rem; font-weight: 800; color: var(--ink); max-width: 42ch; }
.pv-ship-note {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 14px;
  background: #FDF0D5;
  border: 1.5px solid var(--marigold);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}

/* ---------- Product view detail blocks ---------- */
.pv-details { margin-top: 30px; max-width: 46rem; }
.pv-sec-title { font-size: 1.18rem; margin-bottom: 8px; }
.pv-about p, .pv-fabric p { color: var(--ink-soft); font-size: 1rem; }
.pv-fabric { margin-top: 24px; }

.pv-block {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.pv-block > summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pv-block > summary::-webkit-details-marker { display: none; }
/* +/− toggles ride in accent circles (brief product-page spec). */
.pv-block > summary::after,
.pv-faq-item > summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--pv-accent, var(--ink));
  color: var(--pv-on, #fff);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
}
.pv-block[open] > summary::after,
.pv-faq-item[open] > summary::after { content: "–"; }
.pv-block-body { padding: 0 18px 18px; }
.fit-line { font-weight: 700; margin-bottom: 14px; }

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.size-table caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 8px;
  color: var(--ink-soft);
}
.size-table th, .size-table td {
  border: 1px solid var(--line);
  padding: 7px 10px;
  text-align: left;
}
.size-table thead th { background: var(--pv-accent, var(--dark)); color: var(--pv-on, #fff); }
.size-table tbody th { font-weight: 800; background: var(--paper); }
.size-note { margin-top: 10px; font-size: 0.88rem; color: var(--ink-soft); }

.pv-faq { margin-top: 26px; }
.pv-faq-item {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.pv-faq-item:last-child { border-bottom: 1px solid var(--line); }
.pv-faq-item > summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 0 6px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pv-faq-item > summary::-webkit-details-marker { display: none; }
.pv-faq-item p { color: var(--ink-soft); padding-bottom: 12px; max-width: 40rem; }

/* Sticky buy bar — pinned to the bottom of the product sheet while
   the shopper scrolls the details and recommendation rails. */
.pv-stickybar {
  position: sticky;
  bottom: 0;
  margin-top: 30px;
  background: var(--dark);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.30);
  z-index: 3;
}
.pv-sticky-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pv-sticky-price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
/* The sticky bar's Buy matches the page's coral Buy (brief). */
.pv-sticky-buy {
  flex: none;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}
.pv-sticky-buy:hover { box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5); }

.pv-rail { margin-top: 34px; }
.pv-rail-title { font-size: 1.25rem; margin-bottom: 14px; }
.pv-rail-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mini-card {
  text-decoration: none;
  background: #fff;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(28, 25, 23, 0.07);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.mini-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.mini-panel {
  aspect-ratio: 5 / 4.4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-panel img { width: 82%; height: 86%; object-fit: contain; }
.mini-title { font-size: 0.9rem; font-weight: 700; line-height: 1.35; padding: 10px 12px 2px; }
.mini-price { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; color: var(--ink); padding: 0 12px 12px; }

/* ---------- Focus + motion polish ---------- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.card-panel, .card-title { cursor: pointer; }
.card-title:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel-track, .card, .mini-card, .pv-sheet, .pv-backdrop { transition: none; animation: none; }
  .newest-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  /* Category menu stacks above the grid as a scrollable chip row. */
  .shop-layout { flex-direction: column; gap: 4px; }
  .cat-nav {
    position: static;
    flex: none;
    width: 100%;
    margin-top: 28px;
    max-height: none;
    overflow: visible;
    padding: 12px;
  }
  .cat-nav-title { display: none; }
  .cat-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
  .cat-item { flex: 0 0 auto; width: auto; }
  .cat-item:hover { transform: none; }
  .cat-idea { margin-top: 8px; }
  .shop-main { width: 100%; }
  .shop-main .collection { padding: 24px 18px 8px; }
}
@media (max-width: 720px) {
  /* Section-corner confetti would crowd the ribbons on phones. */
  .collection .confetti-note { display: none; }
  .quartet-burst { width: 72px; height: 72px; top: -20px; right: 12px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  /* Mobile keeps the menu: the collection links become their own
     full-width row inside the dark header instead of disappearing. */
  .nav-inner { flex-wrap: wrap; }
  .nav-links {
    display: flex;
    order: 4;
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 8px;
    padding-top: 4px;
    font-size: 0.88rem;
  }
  .nav-inner { justify-content: space-between; }
  .pv-main { grid-template-columns: 1fr; }
  .pv-rail-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  /* Search drops to its own full-width row under the wordmark row. */
  .nav-inner { flex-wrap: wrap; row-gap: 10px; }
  .nav-search { order: 3; flex: 1 1 100%; max-width: none; margin-left: 0; }
  .nav .btn { margin-left: auto; }
  .collection { scroll-margin-top: 196px; }
  .idea { scroll-margin-top: 204px; }
  .idea-band-inner { padding: 22px; gap: 16px; }
  .idea-form { padding: 22px 18px; }
  .idea-submit { align-self: stretch; text-align: center; }
}
@media (max-width: 520px) {
  /* Keep the longer "ARTistic Singing.com" wordmark + Shop all button on one line. */
  .nav-inner { padding: 12px 14px; gap: 12px; }
  .wordmark { font-size: 1.18rem; }
  .nav .btn { padding: 8px 16px; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .pv { padding: 8px; }
  .pv-sheet { padding: 22px 18px 20px; }
  .pv-stickybar { gap: 10px; padding: 10px 12px; }
  .pv-sticky-title { font-size: 0.85rem; }
  .pv-sticky-buy { padding: 9px 16px; font-size: 0.9rem; }
  .newest-tile { flex-basis: 138px; }
  .reel-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
}

/* ---------- v5: views, highlights, on-shirt photo panels ---------- */
.is-hidden { display: none !important; }
body.search-active #highlights { display: none; }

.shop-back {
  display: inline-block;
  margin: 20px 0 2px;
  font-weight: 800;
  text-decoration: none;
}
.shop-back:hover { text-decoration: underline; }

/* On-shirt photos fill their frames (reel, newest rail, quartet). */
.reel-panel.panel-photo { background: #F5EFE2; }
.reel-panel.panel-photo img { width: 100%; height: 100%; object-fit: cover; }
.newest-panel.panel-photo img,
.quartet-panel.panel-photo img { width: 100%; height: 100%; object-fit: cover; }

/* The newest rail loops continuously — keep it fed. */
.newest-track { will-change: transform; animation-duration: 45s; }

/* Homepage highlights */
.highlights { max-width: 1180px; margin: 0 auto; padding: 6px 20px 0; }
/* "Featured Shirts" divider above the highlight sets. */
.hl-featured {
  border-top: 3px solid var(--ink);
  margin-top: 34px;
  padding-top: 26px;
}
.hl-featured h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 6px; }
.hl-featured p { color: var(--ink-soft); max-width: 44rem; }
.hl-cats { padding: 30px 0 4px; }
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.cat-tile {
  background: var(--cat-tint);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid rgba(28, 25, 23, 0.12);
  display: flex;
  align-items: center;
}
.cat-tile:hover { border-color: var(--cat-accent); }
.hl-section { max-width: none; margin: 0; padding: 36px 0 4px; }
.hl-more { margin: 18px 0 6px; }
.hl-all { text-align: center; padding: 32px 0 44px; }

.idea-back { margin-top: 22px; }
.idea-back a { color: var(--paper); font-weight: 800; }

@media (max-width: 980px) {
  /* On phones the shop's category menu is a menu row, not a box. */
  .cat-nav {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 0;
  }
}

/* v6 polish: photo panels sit on the photo's cream while loading;
   the idea form's tape strips shrink on phones so they stay on the
   card corners instead of crossing the text above. */
.newest-panel.panel-photo,
.quartet-panel.panel-photo { background: #F5EFE2; }
@media (max-width: 640px) {
  .idea-form::before, .idea-form::after {
    width: 72px;
    height: 20px;
    top: -9px;
  }
  .idea-form::before { left: 16px; }
  .idea-form::after { right: 16px; }
}
