/* PhraseQuantum mockup: color-sections
   Amazon-style store page: full-width colored bands per collection,
   product tiles on light cards, jump links + working filters. */

:root {
  color-scheme: light dark;
  --paper: #f3f3f3;
  --paper-deep: #ececec;
  --ink: #0f1111;
  --ink-soft: #555560;
  --cream: #ffffff;
  --line: #d5d5d5;
  --accent: #0f1111;
  --link: #0b5c8a;
  --max: 72rem;
  --radius: 0.5rem;
  --photo-mat: #f3f0ea;
  --header-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #121212;
    --paper-deep: #1b1b1b;
    --ink: #f3f1ec;
    --ink-soft: #c2bfb6;
    --cream: #1c1c1c;
    --line: #333333;
    --accent: #f3f1ec;
    --link: #7ec8e8;
    --header-bg: #0e0e0e;
    --photo-mat: #f3eee6;
  }
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
  overflow-x: hidden;
}
@media (prefers-color-scheme: dark) {
  html { color-scheme: dark; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", Helvetica, "Segoe UI", sans-serif;
  font-size: 1.03rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.85rem;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 1.75rem, var(--max));
  margin-inline: auto;
}

.site-header {
  padding: 0.95rem 0 0.8rem;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.wordmark {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--link); }

.tagline-nav {
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: auto;
}

.shop-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border: 1px solid #d5a017;
  border-radius: 999px;
  background: #ffd814;
  color: #0f1111;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}
.shop-link:hover {
  background: #f7ca00;
  color: #0f1111;
  border-color: #b8860b;
}

.hero {
  padding: 1.75rem 0 0.85rem;
  background: var(--header-bg);
}
.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link);
  font-weight: 700;
}
.hero h1 {
  margin: 0 0 0.85rem;
  font-weight: 700;
  font-size: clamp(2.15rem, 8vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero .hero-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 2.1vw, 1.35rem);
  line-height: 1.4;
}
@media (min-width: 960px) {
  .hero .hero-lead { white-space: nowrap; }
  .section > .wrap > .section-lead,
  .catalog-intro .section-lead { max-width: none; white-space: nowrap; }
}

/* Intro (title, lead, filters) sits on the light header surface */
.section.catalog-intro,
.section#designs {
  padding: 0.5rem 0 0;
  background: var(--header-bg);
}
.section h2,
.section h1.section-title {
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  letter-spacing: -0.02em;
}
.section-lead {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 1rem;
}
.filter-group { display: flex; flex-direction: column; gap: 0.4rem; }
.filter-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Jump-to-collection chips keep the original shared look. */
.jump-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.jump-chip:hover { border-color: var(--ink); color: var(--ink); }

/* Base filter chips: typography and sizing unchanged. */
.chip {
  appearance: none;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--chip, #0f1111);
  box-sizing: border-box;
}

/* THEME: thin solid colored outline, light fill, section palette. */
.filter-group[data-filter-group="theme"] .chip {
  border: 1.5px solid var(--chip, #0f1111);
}
.filter-group[data-filter-group="theme"] .chip[data-value="all"] { --chip: #0f1111; }
.filter-group[data-filter-group="theme"] .chip[data-value="Thanksgiving & Fall"] { --chip: #b56a1c; }
.filter-group[data-filter-group="theme"] .chip[data-value="Spooky"] { --chip: #5a2a7a; }
.filter-group[data-filter-group="theme"] .chip[data-value="Home & scent"] { --chip: #9a3d52; }
.filter-group[data-filter-group="theme"] .chip[data-value="Coffee & tea"] { --chip: #6b4530; }
.filter-group[data-filter-group="theme"] .chip[data-value="Western & Paniolo"] { --chip: #3a6a2e; }
.filter-group[data-filter-group="theme"] .chip[data-value="Cats & animals"] { --chip: #6a3d8a; }
.filter-group[data-filter-group="theme"] .chip[data-value="Math & science"] { --chip: #2a5a8a; }
.filter-group[data-filter-group="theme"] .chip[data-value="Patriotic"] { --chip: #1e3a6e; }
.filter-group[data-filter-group="theme"] .chip[data-value="Fiesta"] { --chip: #c45a18; }
.filter-group[data-filter-group="theme"] .chip[data-value="Puns"] { --chip: #a63d6e; }
.filter-group[data-filter-group="theme"] .chip[aria-pressed="true"],
.filter-group[data-filter-group="theme"] .chip.is-active {
  background: var(--chip, #0f1111);
  color: #fff;
  border-color: var(--chip, #0f1111);
}

/* GIFT: 1.5px dashed colored outline, same weight as theme, pill shape. */
.filter-group[data-filter-group="gift"] .chip {
  border: 1.5px dashed var(--chip, #0f1111);
}
.filter-group[data-filter-group="gift"] .chip[data-value="all"] { --chip: #0f1111; }
.filter-group[data-filter-group="gift"] .chip[data-value="Housewarming"] { --chip: #c45c38; }
.filter-group[data-filter-group="gift"] .chip[data-value="Thanksgiving gift"] { --chip: #8b3e12; }
.filter-group[data-filter-group="gift"] .chip[data-value="Family matching"] { --chip: #8a2a4a; }
.filter-group[data-filter-group="gift"] .chip[data-value="Teacher gift"] { --chip: #c43c2a; }
.filter-group[data-filter-group="gift"] .chip[data-value="Holiday gift"] { --chip: #1e5a38; }
.filter-group[data-filter-group="gift"] .chip[data-value="Gag gift"] { --chip: #d44a8a; }
.filter-group[data-filter-group="gift"] .chip[data-value="Cat lover gift"] { --chip: #7a2d62; }
.filter-group[data-filter-group="gift"] .chip[data-value="Pet lover gift"] { --chip: #8a5a2a; }
.filter-group[data-filter-group="gift"] .chip[data-value="July 4th gift"] { --chip: #b71c2c; }
.filter-group[data-filter-group="gift"] .chip[aria-pressed="true"],
.filter-group[data-filter-group="gift"] .chip.is-active {
  background: var(--chip, #0f1111);
  color: #fff;
  border-color: var(--chip, #0f1111);
  border-style: solid; /* fill reads clearly; idle state stays dashed */
}

/* ITEM TYPE: rounded squares; text and outline match photo badge colors. */
.filter-group[data-filter-group="item-type"] .chip {
  border: 1.5px solid var(--chip, #0e6d62);
  border-radius: 6px;
  background: #fff;
  color: var(--chip, #0e6d62);
}
.filter-group[data-filter-group="item-type"] .chip[data-value="all"] { --chip: #0e6d62; }
.filter-group[data-filter-group="item-type"] .chip[data-value="Tee"] { --chip: #1f4e79; }
.filter-group[data-filter-group="item-type"] .chip[data-value="Candle"] { --chip: #8a2b3e; }
.filter-group[data-filter-group="item-type"] .chip[data-value="Mug"] { --chip: #1d5a48; }
.filter-group[data-filter-group="item-type"] .chip[aria-pressed="true"],
.filter-group[data-filter-group="item-type"] .chip.is-active {
  background: var(--chip, #0e6d62);
  color: #fff;
  border-color: var(--chip, #0e6d62);
}

@media (prefers-color-scheme: dark) {
  .jump-chip {
    background: #262626;
    border-color: #444;
    color: var(--ink);
  }
  /* Filter chips keep a light fill so colored outlines stay true and photos stay untouched. */
  .chip {
    background: #fff;
  }
  /* Ink-filled "All" chips would vanish on the dark header; use the light ink instead. */
  .filter-group[data-filter-group="theme"] .chip[data-value="all"][aria-pressed="true"],
  .filter-group[data-filter-group="theme"] .chip[data-value="all"].is-active,
  .filter-group[data-filter-group="gift"] .chip[data-value="all"][aria-pressed="true"],
  .filter-group[data-filter-group="gift"] .chip[data-value="all"].is-active {
    background: #f3f1ec;
    color: #0f1111;
    border-color: #f3f1ec;
  }
}

.section-jump {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
}
.jump-chip[href="#band-thanksgiving-fall"] { background: #f8d9b0; color: #4a2a0a; border-color: #e8b877; }
.jump-chip[href="#band-candles-home"] { background: #f3d4dc; color: #4a1f2c; border-color: #e0b0bc; }
.jump-chip[href="#band-coffee-tea"] { background: #e6d4c0; color: #3b2614; border-color: #cbb096; }
.jump-chip[href="#band-western-paniolo"] { background: #d5e6c8; color: #1e3a16; border-color: #b4cda3; }
.jump-chip[href="#band-cats-animals"] { background: #e3d4f4; color: #321a4a; border-color: #c7b0e0; }
.jump-chip[href="#band-math-science"] { background: #d0e2f6; color: #14304e; border-color: #adc8e4; }
.jump-chip[href="#band-patriotic"] { background: #d9e0f0; color: #1a2744; border-color: #b7c2db; }
.jump-chip[href="#band-fiesta"] { background: #fde0c4; color: #5a2a0c; border-color: #efc196; }
.jump-chip[href="#band-more"] { background: #e4e2dc; color: #333; border-color: #c9c6be; }
@media (prefers-color-scheme: dark) {
  .jump-chip[href="#band-thanksgiving-fall"] { background: #6a3d16; color: #fde7c8; border-color: #8a5424; }
  .jump-chip[href="#band-candles-home"] { background: #5a2a38; color: #f8d5de; border-color: #7a3e4e; }
  .jump-chip[href="#band-coffee-tea"] { background: #4a3220; color: #f0e0cc; border-color: #6a4a30; }
  .jump-chip[href="#band-western-paniolo"] { background: #2a4a22; color: #dcecc8; border-color: #3c6a30; }
  .jump-chip[href="#band-cats-animals"] { background: #3a2458; color: #eadbff; border-color: #543878; }
  .jump-chip[href="#band-math-science"] { background: #1a3858; color: #d4e6fa; border-color: #2a5480; }
  .jump-chip[href="#band-patriotic"] { background: #1e2c50; color: #dce4f8; border-color: #304070; }
  .jump-chip[href="#band-fiesta"] { background: #6a3410; color: #ffe0c0; border-color: #8a4a1c; }
  .jump-chip[href="#band-more"] { background: #3a3a38; color: #e8e6e0; border-color: #555; }
}

/* Full-width colored collection bands */
.catalog-bands {
  display: flex;
  flex-direction: column;
}
.catalog-band {
  padding: 1.75rem 0 2.15rem;
  scroll-margin-top: 0.5rem;
}
.catalog-band.is-hidden { display: none; }
.catalog-band h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.band-fall { background: #f6d7b0; color: #3a220c; }
.band-candles { background: #f3d5dd; color: #3d1c28; }
.band-coffee { background: #e7d3bc; color: #322214; }
.band-western { background: #d7e8c8; color: #1c3316; }
.band-cats { background: #e4d6f3; color: #2d1a42; }
.band-math { background: #d2e3f6; color: #142c48; }
.band-patriotic { background: #dce3f2; color: #1a2744; }
.band-fiesta { background: #fde3c6; color: #4a260c; }
.band-more { background: #e6e4de; color: #2a2a28; }

@media (prefers-color-scheme: dark) {
  .band-fall { background: #5a3514; color: #fde8cc; }
  .band-candles { background: #4e2732; color: #f8d8e0; }
  .band-coffee { background: #3e2c1c; color: #f0e0cc; }
  .band-western { background: #243a1e; color: #dcecc8; }
  .band-cats { background: #322046; color: #eadbff; }
  .band-math { background: #17324e; color: #d4e6fa; }
  .band-patriotic { background: #1c2a4a; color: #dce4f8; }
  .band-fiesta { background: #5a3010; color: #ffe0c0; }
  .band-more { background: #2c2c2a; color: #e8e6e0; }
}

.catalog-band h2 { color: inherit; }

.design-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.design-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #ffffff;
  color: #0f1111;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 0.55rem 0.55rem 0.9rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  color-scheme: only light;
}
@media (prefers-color-scheme: dark) {
  /* Keep tiles slightly off-white so photos never sit on a dark field */
  .design-card {
    background: #f7f3ec;
    color: #0f1111;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  }
}
.design-card.is-hidden { display: none; }
.design-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.35rem;
  aspect-ratio: 1 / 1;
}
.design-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

/* Dark-mode photo safety: never wash out, invert, or x-ray product photos.
   Image frames stay a slightly off-white mat so white-bg tees sit on a card
   instead of glowing, and color-scheme: only light opts the bitmap out of
   Chrome Auto Dark Mode / force-dark / extension inversion. */
.design-media {
  background: var(--photo-mat);
  color-scheme: only light;
  isolation: isolate;
}
.design-media img,
.design-card img {
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
  background: var(--photo-mat);
  color-scheme: only light;
  forced-color-adjust: none;
}

.badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.badge {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #0f1111;
}
.badge-tee { background: #1f4e79; }
.badge-candle { background: #8a2b3e; }
.badge-mug { background: #1d5a48; }
.design-card h3 {
  margin: 0.1rem 0.3rem 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f1111;
}
.price { margin: 0 0.3rem; color: #333; font-size: 0.95rem; font-weight: 700; }
.buy-link {
  margin: 0 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0b5c8a;
}
.buy-link:hover { color: #0f1111; }
.empty-filter {
  display: none;
  color: var(--ink-soft);
  padding: 1.25rem 0 2rem;
  background: var(--header-bg);
}
.empty-filter.is-visible { display: block; }

.collections {
  padding: 1.5rem 0 2.5rem;
  background: var(--header-bg);
  border-top: 1px solid var(--line);
}
.collections h2 {
  margin-top: 1.25rem;
  text-align: center;
}
/* Group titles (Theme, Gift, Item type): full-width solid bars at chip height.
   Colors taken from the filter-chip palette; white text for contrast. */
.collections h3 {
  --chip-height: calc(0.88rem * 1.5 + 0.64rem + 3px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--chip-height);
  margin: 2.85rem 0 0.75rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  padding: 0 1rem;
  font-size: 1.05rem;
  text-align: center;
  color: #0f1111;
  border: 0;
}
.collections h3#themes { background: #c4843a; } /* muted Thanksgiving & Fall amber */
.collections h3#gifts { background: #c06e88; } /* muted Family matching rose */
.collections h3#items { background: #3a9488; } /* muted type teal */
.collections h3 {
  color: #0f1111; /* dark text: better contrast on the softer fills */
}
@media (prefers-color-scheme: dark) {
  .collections h3 {
    color: #0f1111;
  }
  .collections h3#themes { background: #c4843a; }
  .collections h3#gifts { background: #c06e88; }
  .collections h3#items { background: #3a9488; }
}

.collections h4 {
  margin: 1.1rem 0 0.6rem;
  font-size: 0.95rem;
  text-align: center;
  color: var(--ink);
}

.collections .section-lead {
  max-width: none;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* All catalog lists: bullet-free columns, short lists centered. */
.collections ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1.15rem;
  row-gap: 0.4rem;
}
.collections li {
  margin: 0;
  box-sizing: border-box;
  flex: 0 0 100%;
}
.collections ul a {
  display: inline-block;
  line-height: 1.4;
}
@media (min-width: 500px) {
  .collections li { flex-basis: calc((100% - 1 * 1.15rem) / 2); }
}
@media (min-width: 700px) {
  .collections li { flex-basis: calc((100% - 2 * 1.15rem) / 3); }
}
@media (min-width: 900px) {
  .collections li { flex-basis: calc((100% - 3 * 1.15rem) / 4); }
}
@media (min-width: 1100px) {
  .collections li { flex-basis: calc((100% - 4 * 1.15rem) / 5); }
}
/* A single-item list stays page-centered under its heading. */
.collections ul:not(:has(> li:nth-child(2))) li {
  flex-basis: 100%;
  text-align: center;
}
/* Five or more items: a true grid so leftover rows keep the same columns. */
.collections ul:has(> li:nth-child(5)) {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: initial;
}
.collections ul:has(> li:nth-child(5)) li {
  flex: none;
  width: auto;
  max-width: none;
}
@media (min-width: 500px) {
  .collections ul:has(> li:nth-child(5)) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 700px) {
  .collections ul:has(> li:nth-child(5)) { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .collections ul:has(> li:nth-child(5)) { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .collections ul:has(> li:nth-child(5)) { grid-template-columns: repeat(5, 1fr); }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--header-bg);
  padding: 1.75rem 0 2.25rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: center;
}
.site-footer p { margin: 0 0 0.45rem; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer .thanks { color: var(--ink); font-style: italic; }
.site-footer .shop-link { margin-top: 0.4rem; }

@media (min-width: 640px) {
  .design-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 2.15rem 0 1rem; }
}
@media (min-width: 960px) {
  .design-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 2.35rem 0 1rem; }
}

.grid-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.grid-empty p { margin: 0; max-width: 36rem; color: #555; }


/* Filter accordion chrome is phone-only; desktop keeps groups always visible. */
.filters-toggle,
.filters-close { display: none; }
.filter-panel { display: contents; }

/* Phone layout only. Desktop (≥640px) is unchanged. */
@media (max-width: 639px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .wrap {
    width: min(100% - 1.25rem, var(--max));
  }

  .site-header {
    padding: 0.75rem 0 0.7rem;
  }
  .site-header .shop-link {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
  }

  .hero {
    padding: 1.1rem 0 0.55rem;
  }
  .hero .hero-lead {
    font-size: 1.08rem;
    line-height: 1.45;
  }

  .section.catalog-intro,
  .section#designs {
    padding-top: 0.25rem;
  }
  .section-lead {
    margin-bottom: 0.9rem;
  }

  .filters {
    gap: 0.7rem;
    margin-bottom: 0.85rem;
  }

  /* Fold Theme / Gift / Item type behind a Filters toggle. Jump chips stay visible. */
  .filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 0.5rem 0.9rem;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--header-bg);
    color: var(--ink);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
  }
  .filters-toggle-summary:empty { display: none; }
  .filters-toggle-summary {
    display: inline-flex;
    align-items: center;
    max-width: 52%;
    min-height: 1.35rem;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--header-bg);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .filters-toggle-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    width: 12px;
    height: 8px;
  }
  .filters-toggle-chevron svg {
    display: block;
    position: absolute;
    inset: 0;
  }
  .filters-toggle-chevron .chevron-up { visibility: hidden; }
  .filters.is-open .filters-toggle-chevron .chevron-down { visibility: hidden; }
  .filters.is-open .filters-toggle-chevron .chevron-up { visibility: visible; }
  .filter-panel { display: none; }
  .filters.is-open .filter-panel {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }
  .filters-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-height: 44px;
    min-width: 7.5rem;
    box-sizing: border-box;
    padding: 0.4rem 1.15rem;
    margin-top: 0.1rem;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--header-bg);
    color: var(--ink);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
  }


  /* Tidy wrapping stays; bump tap targets to at least 40px. */
  .chip,
  .jump-chip {
    box-sizing: border-box;
    min-height: 40px;
    padding: 0.4rem 0.7rem;
    justify-content: center;
  }
  .chips,
  .section-jump .chips {
    gap: 0.4rem 0.4rem;
  }
  .section-jump {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  /* Two-column product tiles at phone width; photos stay unaltered. */
  .design-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
  .design-card {
    padding: 0.4rem 0.4rem 0.7rem;
    gap: 0.35rem;
    min-width: 0;
  }
  .design-card h3 {
    margin: 0.05rem 0.2rem 0;
    font-size: 0.88rem;
    line-height: 1.25;
  }
  .price {
    margin: 0 0.2rem;
    font-size: 0.82rem;
  }
  .buy-link {
    margin: 0 0.2rem;
    font-size: 0.78rem;
    line-height: 1.3;
    min-height: 40px;
    display: flex;
    align-items: center;
    width: calc(100% - 0.4rem);
    box-sizing: border-box;
    text-wrap: balance;
    overflow-wrap: break-word;
  }
  .badges {
    top: 0.4rem;
    left: 0.4rem;
  }
  .catalog-band {
    padding: 1.25rem 0 1.5rem;
  }
  .catalog-band h2 {
    font-size: 1.28rem;
    margin-bottom: 0.8rem;
  }

  /* Catalog group bars stay full-bleed; a bit taller so they match chip height. */
  .collections {
    padding: 1.15rem 0 1.75rem;
  }
  .collections h2 {
    margin-top: 0.85rem;
  }
  .collections h3 {
    --chip-height: 44px;
    margin-top: 1.85rem;
    margin-bottom: 0.65rem;
    font-size: 1rem;
    padding: 0 0.75rem;
  }
  .collections h4 {
    margin: 0.95rem 0 0.4rem;
  }
  .collections ul {
    column-gap: 0.7rem;
    row-gap: 0.15rem;
    margin-bottom: 1.1rem;
  }
  .collections ul a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.2rem 0.1rem;
    line-height: 1.3;
  }

  .site-footer {
    padding: 1.35rem 0 1.85rem;
  }
  .site-footer .shop-link {
    max-width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    font-size: 0.88rem;
  }
}

/* Two-column catalog links on phones (desktop already switches at 500px). */
@media (max-width: 499px) {
  .collections li {
    flex-basis: calc((100% - 0.7rem) / 2);
  }
  .collections ul:not(:has(> li:nth-child(2))) li {
    flex-basis: 100%;
  }
  .collections ul:has(> li:nth-child(5)) {
    grid-template-columns: repeat(2, 1fr);
  }
}
