/* Leaf & Bloom - the two category pages (category-hair-care.html, category-lip-care.html).
 * Redesigned 30 Sep 2026 to match the homepage's 29 Sep redesign. Linked only
 * from these pages, after the shared stylesheets, so these rules win ties.
 * Shared components (.pcard, .benefits, .acc, .swipe-row) live in base.css;
 * nothing here restyles them, only the rows and sections around them.
 *
 * One template, both pages, in page order:
 *   .cat-head    the category head, as a warm card with three facts
 *   .shop-bar    the toolbar, as the shop page draws it
 *   .cat-shelf   the product cards (phone swipe row) and, on hair care,
 *                the guide (.cat-guide) under them, beside them from 1280px
 *   .cat-tiles   equal cards: hair facts, lip flavours, the jar questions
 *   .cat-faq     hair care's questions, the same .cat-tiles--qa cards as lip care's jar
 *   .cat-cross   the other category, in a forest band */

/* -- Shared bits -------------------------------------------------------- */
/*  The icon in a tinted circle with a thin gold ring (the homepage's
 *  benefit tiles), or solid forest with a cream glyph (its ledger). */
.cat-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--c-forest);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-gold) 40%, transparent);
}
.cat-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cat-icon--solid { background: var(--c-brand-fill); color: var(--c-on-brand); box-shadow: none; }
.cat-icon--solid svg { stroke-width: 1.6; }

/*  A text link with the arrow the homepage's buttons carry. 44px tall. */
.cat-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: var(--ls-btn);
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--c-gold) 55%, transparent);
  text-underline-offset: 4px;
}
.cat-link svg,
.cat-more .btn svg,
.cat-cross__action .btn svg {
  width: 18px; height: 18px;
  flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  transition: transform var(--dur) var(--ease);
}
.cat-link:hover svg,
.cat-more .btn:hover svg,
.cat-cross__action .btn:hover svg { transform: translateX(3px); }

/* -- The head ----------------------------------------------------------- */
/*  Was the title and a sentence on bare cream with 180px of air above the
 *  cards at 390px. It is now one warm card: the title, the sentence, and
 *  the sentence's three facts on a gold hairline at its foot. */
.cat-head {
  position: relative;
  margin-top: var(--sp-2);
  padding: var(--sp-5) var(--sp-5) var(--sp-3);
  background: var(--g-warm);
  border: var(--card-edge);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  row-gap: var(--sp-3);
}
.cat-head .eyebrow { margin-bottom: var(--sp-2); }
.cat-head .archive-head__lede { color: var(--c-text-soft); text-wrap: pretty; }

.cat-head__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-5);
  margin: var(--sp-1) 0 0;
  padding: var(--sp-4) 0 0;
  list-style: none;
  position: relative;
}
.cat-head__facts::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--g-gold);
}
.cat-head__facts li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: var(--lh-snug);
  color: var(--c-heading-deep);
}
.cat-head__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--c-forest);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-gold) 40%, transparent);
}
.cat-head__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

@media (min-width: 900px) {
  .cat-head {
    padding: var(--sp-7) var(--sp-8) var(--sp-5);
    row-gap: var(--sp-4);
  }
  .cat-head__facts { gap: var(--sp-3) var(--sp-7); margin-top: var(--sp-2); }
}

/* -- The toolbar --------------------------------------------------------- */
/*  shop.html's toolbar (pg-shop.css), so the same control looks the same on
 *  both: one ivory pill, a pill-shaped sort, still sticky. Since 30 Sep
 *  2026 the filters work and the category pages show the applied-filter
 *  chips too, so on phones the word "Filter" hides (it is still read out)
 *  as it does on the shop page.
 *  Since the 30 Sep review the pill is drawn exactly as pg-shop.css draws
 *  it: by ::after, over a page-coloured ::before band that runs to both
 *  screen edges, so cards scrolling up pass under the band, not past the
 *  pill's round ends; and the bar no longer adds a 2px border of its own. */
.shop-bar {
  top: 76px;
  gap: var(--sp-2);
  padding: var(--sp-2);
  background: none;
  border: 0;
}
@media (min-width: 1024px) { .shop-bar { top: 92px; } }
.shop-bar::before,
.shop-bar::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.shop-bar::before {
  inset: calc(var(--sp-2) * -1) calc(50% - 50vw);
  z-index: -2;
  background: var(--c-bg);
}
.shop-bar::after {
  inset: 0;
  z-index: -1;
  background: var(--c-surface);
  border: var(--card-edge);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
}
/*  Lip care: every card is Rs 650, so a price sort could never change the
 *  order. The control is not drawn there (the label goes with it). */
.shop-bar--one-price .sort-select { display: none; }
.shop-bar__left { gap: var(--sp-2); min-width: 0; }
.shop-bar .filter-trigger { padding-inline: var(--sp-4); }
.shop-bar .filter-trigger svg { flex: none; }
.shop-bar__count { padding-left: var(--sp-2); white-space: nowrap; }
.shop-bar .chips { flex-wrap: nowrap; margin: 0; }
.shop-bar .chip { padding-left: var(--sp-4); white-space: nowrap; }
.shop-bar .chip button { width: 36px; }
:root[data-theme="dark"] .shop-bar .chip { box-shadow: inset 0 0 0 1px var(--c-line-strong); color: var(--c-heading-deep); }
:root[data-theme="dark"] .shop-bar .chip button { opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shop-bar .chip { box-shadow: inset 0 0 0 1px var(--c-line-strong); color: var(--c-heading-deep); }
  :root:not([data-theme="light"]) .shop-bar .chip button { opacity: 1; }
}
.shop-bar .sort-select {
  flex: none;
  border-radius: var(--r-pill);
  border-color: var(--c-line);
  background-color: transparent;
}
@media (max-width: 519px) {
  .shop-bar { gap: var(--sp-1); padding: var(--sp-1); }
  .shop-bar__left { flex: none; gap: var(--sp-1); }
  .shop-bar .filter-trigger { padding-inline: var(--sp-2); gap: var(--sp-1); }
  /*  Nothing is ticked on load since 30 Sep 2026, so the chip row is empty
   *  and there is room for the word "Filter" (and, on lip care, where there
   *  is no sort, for the "3 flavours" count). The word hides only while
   *  chips are showing. */
  .shop-bar:not(:has(.chips:not([hidden]))) .filter-trigger { padding-inline: var(--sp-4); gap: var(--sp-2); }
  .shop-bar--one-price:not(:has(.chips:not([hidden]))) .shop-bar__count { display: block; padding-left: var(--sp-2); }
  .shop-bar:has(.chips:not([hidden])) .filter-trigger__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .shop-bar .chip { gap: 0; padding: 0 0 0 var(--sp-3); }
  .shop-bar .chip button { width: 40px; }
  .shop-bar .sort-select {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding-left: var(--sp-3);
    padding-right: var(--sp-6);
    background-position: right var(--sp-3) center, right calc(var(--sp-3) - 5px) center;
    text-overflow: ellipsis;
  }
}
/*  The toolbar sat 40px above the cards; the head card now carries its own
 *  space above it. */
.cat-head + .shop-bar,
.wrap:has(> .cat-head) + .wrap > .shop-bar { margin-top: var(--sp-4); margin-bottom: var(--sp-5); }

/*  The listing (toolbar, cards, empty state and, on hair care, the guide)
 *  ends with the same air shop.html leaves after its grid, so the cards
 *  never sit flush on the tinted band that follows. */
.cat-listing { padding-bottom: var(--sp-6); }
.cat-listing .filter-empty { margin-bottom: 0; }
@media (min-width: 768px) { .cat-listing { padding-bottom: var(--sp-8); } }

/* -- The shelf ---------------------------------------------------------- */
/*  Phones: the product rows are the site's swipe row (base.css). From
 *  768px the grids are the shop page's own (.pgrid--2 / .pgrid--3): lip
 *  care's three flavour cards (30 Sep 2026; a fourth, general card went)
 *  sit three across, exactly as the shop page's three products do. */
/*  Hair care's two cards leave the right half of a desktop empty; from
 *  1280px the guide takes that space. Below 1280 the guide was taller than
 *  the cards and stretched them into half-empty boxes, so there it sits
 *  under the cards at full width (its two rows side by side, below).
 *  The cards are never stretched to the guide: they keep their own height,
 *  and the guide, made compact enough to be the shorter, meets their foot. */
@media (min-width: 1280px) {
  .cat-shelf {
    display: grid;
    grid-template-columns: 596px minmax(0, 1fr);
    gap: var(--sp-7);
    align-items: stretch;
  }
  .cat-shelf__grid { align-self: start; }
  .cat-shelf__grid.pgrid--2 { max-width: none; }
}
/*  768-1023: the guide sits under the cards, so nothing fills the right of
 *  the row. Capped at 596px the two hair cards stopped 108px short of the
 *  toolbar's Sort control and the row looked off-centre; here they share
 *  the toolbar's full width at equal size. */
@media (min-width: 768px) and (max-width: 1023px) {
  .cat-shelf__grid.pgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}

/* -- The guide: Choosing between the two -------------------------------- */
/*  A card with a forest band for its head (the homepage's "What to
 *  expect" header) and the two products as rows, each led by its icon. The
 *  band uses the grounds that do not invert, so it weighs the same dark. */
.cat-guide {
  display: flex;
  flex-direction: column;
  margin-top: var(--sp-7);
  overflow: hidden;
  background: var(--c-surface);
  border: var(--card-edge);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.cat-guide__band {
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  background: linear-gradient(135deg, var(--c-ground-2) 30%, var(--c-ground-mid));
  color: var(--c-on-dark);
}
.cat-guide__band .eyebrow { margin-bottom: var(--sp-2); color: var(--c-gold-bright); }
.cat-guide__title {
  font-size: var(--fs-h2-sm);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--c-on-dark);
}
.cat-guide__lead {
  margin-top: var(--sp-2);
  font-size: var(--fs-body);
  line-height: var(--lh-copy);
  color: color-mix(in srgb, var(--c-on-dark) 86%, transparent);
}
.cat-guide__list {
  display: grid;
  flex: 1;
  margin: 0;
  padding: 0 var(--sp-5);
  list-style: none;
}
/*  Icon and name share the top line; the text runs the card's full width
 *  under them (the homepage ledger's phone layout), so a 360px phone does
 *  not lose 60px of every line to the icon column. */
.cat-guide__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas: "icon name" "text text";
  column-gap: var(--sp-3);
  row-gap: var(--sp-2);
  align-items: center;
  padding-block: var(--sp-4) var(--sp-2);
}
.cat-guide__item > .cat-icon { grid-area: icon; }
.cat-guide__text { display: contents; }
.cat-guide__name { grid-area: name; }
.cat-guide__text p, .cat-guide__text .cat-link { grid-column: 1 / -1; }
.cat-guide__item + .cat-guide__item { border-top: 1px solid var(--c-line); }
.cat-guide__name {
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  color: var(--c-heading-deep);
}
.cat-guide__text p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-copy);
  color: var(--c-text-soft);
}
.cat-guide__text strong { color: var(--c-text); font-weight: 500; }
.cat-guide__text .cat-link { justify-self: start; align-self: end; }

/*  Tablet: the guide is full width under the cards, so its two rows sit
 *  side by side instead of as two long bars. */
@media (min-width: 640px) and (max-width: 1279px) {
  .cat-guide__list { grid-template-columns: 1fr 1fr; column-gap: var(--sp-6); }
  .cat-guide__item + .cat-guide__item { border-top: 0; }
}
@media (min-width: 1024px) {
  .cat-guide__band { padding: var(--sp-6) var(--sp-6) var(--sp-5); }
  .cat-guide__list { padding: 0 var(--sp-6); }
  .cat-guide__item { padding-block: var(--sp-5) var(--sp-4); }
}
/*  Beside the cards: the link joins the name's line, so each row loses a
 *  line and the guide is no taller than the cards it sits beside. */
@media (min-width: 1280px) {
  .cat-guide { margin-top: 0; }
  .cat-guide__band { padding: var(--sp-5) var(--sp-5) var(--sp-4); }
  .cat-guide__list { align-content: space-evenly; padding: 0 var(--sp-5); }
  .cat-guide__name { white-space: nowrap; }
  .cat-guide__item {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas: "icon name link" "text text text";
    padding-block: var(--sp-4) var(--sp-4);
  }
  .cat-guide__text .cat-link { grid-area: link; align-self: center; }
}

/* -- Section heads ------------------------------------------------------ */
/*  The section's one action (.cat-more) comes after its cards in the
 *  markup, as the homepage's "Read all questions" does: under the cards on
 *  phones, and from 768px beside the head, on the right (the homepage's
 *  #faq grid). Before the 30 Sep review it sat between the head and the
 *  cards on phones. */
.cat-sec-head { margin-bottom: var(--sp-5); max-width: none; }
.cat-sec-head .section-sub { max-width: 52ch; }
.cat-more { margin-top: var(--sp-5); }
/*  The long label wraps on a phone rather than pushing the page sideways,
 *  and on a phone it is short enough not to: the tail of "Compare all
 *  three on the product page" is hidden under 768px. */
.cat-more .btn { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 767px) { .cat-hide-sm { display: none; } }
/*  The tail is its own flex item in the button, so it sat a whole button
 *  gap (8px) after "three"; pulled back to one word space. */
.cat-more .cat-hide-sm { margin-left: calc(.3em - var(--sp-2)); }
@media (min-width: 768px) {
  .wrap:has(> .cat-more) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: var(--sp-6);
  }
  .wrap:has(> .cat-more) > .cat-sec-head { grid-column: 1; grid-row: 1; }
  .wrap:has(> .cat-more) > .cat-tiles { grid-column: 1 / -1; }
  .cat-more { grid-column: 2; grid-row: 1; margin: 0 0 var(--sp-5); }
}

/* -- Tiles: equal cards ------------------------------------------------- */
/*  Hair: four facts. Lip: three flavours, and four questions about the
 *  jar. Phones: the swipe row (84% cards, the next peeking). 768px: two
 *  up (three for the flavours). 1024px: one row. Grid items stretch, so the
 *  cards in a row are one height. */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cat-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/*  Every row as tall as the tallest, so a 2 x 2 is four equal boxes. */
@media (min-width: 768px) { .cat-tiles { grid-auto-rows: 1fr; } }
/*  The questions, on phones, stack one to a row like the homepage's
 *  "Before you order", each card its own height. */
@media (max-width: 767px) {
  .cat-tiles--qa { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .cat-tiles--qa .cat-tile { padding: var(--sp-4) var(--sp-5); }
}
@media (min-width: 1024px) {
  .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
  .cat-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-tiles--qa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: var(--g-warm);
  border: var(--card-edge);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.cat-tile .cat-icon { margin-bottom: var(--sp-2); }
.cat-tile__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--c-heading);
}
.cat-tile p {
  font-size: var(--fs-body);
  line-height: var(--lh-copy);
  color: var(--c-text-soft);
}
.cat-tile strong { color: var(--c-text); font-weight: 500; }

/*  "scent", beside each flavour's name: the names are scents, never what
 *  is in the tin, and the card says so where the name is read. */
.cat-tile__tag {
  display: inline-block;
  margin-left: var(--sp-1);
  font-family: var(--ff-sans);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  vertical-align: .3em;
  color: var(--c-gold-ink);
}

/*  The jar's colour, repeated from the sentence above it, in a footer on a
 *  gold hairline pinned to the card's foot, so the three line up. */
.cat-tile .cat-flavour__jar {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  align-self: stretch;
  margin-top: auto;
  padding-top: var(--sp-4);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-heading-deep);
}
.cat-flavour__jar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--g-gold);
}
.cat-flavour > p:not(.cat-flavour__jar) { margin-bottom: var(--sp-2); }
/*  The swatches are the colour of the balm itself, so they do not follow the
 *  theme: deep red, off-white, cream. A ring keeps the pale two visible. */
.cat-swatch {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-gold) 55%, transparent), inset 0 -3px 6px rgba(0, 0, 0, .12);
}
.cat-swatch--red   { background: #8E1B2C; }
.cat-swatch--white { background: #F4F1EA; }
.cat-swatch--cream { background: #EBD6A8; }

/*  The jar questions read like the homepage's "Before you order": icon and
 *  question on one line, the answer under the question. */
.cat-tiles--qa .cat-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon q" "a a";
  align-items: center;
  align-content: start;
  column-gap: var(--sp-3);
  row-gap: var(--sp-2);
}
.cat-tiles--qa .cat-icon { grid-area: icon; margin: 0; }
.cat-tiles--qa .cat-tile__title { grid-area: q; font-family: var(--ff-display); color: var(--c-heading); }
.cat-tiles--qa p { grid-area: a; }
@media (min-width: 1024px) {
  .cat-tiles--qa .cat-tile {
    grid-template-areas: "icon q" ". a";
    column-gap: var(--sp-4);
    padding: var(--sp-5) var(--sp-6) var(--sp-5) var(--sp-5);
  }
}

/* -- The other category ------------------------------------------------- */
/*  A forest band, built from the grounds that do not invert, so the page
 *  ends on something rather than a heading over a lone card. The text on
 *  the left, the cards on the right from 768px. */
.cat-cross__band {
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-5);
  background: var(--g-ground);
  border-radius: var(--card-radius);
  color: var(--c-on-dark);
  overflow: hidden;
}
.cat-cross__band .eyebrow { margin-bottom: var(--sp-2); color: var(--c-gold-bright); }
.cat-cross__band .section-title { color: var(--c-on-dark); }
.cat-cross__band .section-sub { color: color-mix(in srgb, var(--c-on-dark) 86%, transparent); max-width: 40ch; }
.cat-cross__action { margin-top: var(--sp-5); }
.cat-cross__action .btn--primary {
  background: var(--c-on-dark);
  border-color: var(--c-on-dark);
  color: var(--c-ground);
}
.cat-cross__action .btn--primary:hover {
  background: var(--c-gold-bright);
  border-color: var(--c-gold-bright);
  color: var(--c-ground);
}
.cat-cross__cards { margin: 0; }

/*  Phones: the band's own padding is the gutter, so the swipe row bleeds
 *  to the band's edges rather than the screen's. A single card is held to
 *  the width of one card in the row, centred. */
@media (max-width: 767px) {
  .cat-cross__band .swipe-row.swipe-row {
    margin-inline: calc(var(--sp-5) * -1);
    padding-inline: var(--sp-5);
    scroll-padding-inline: var(--sp-5);
    grid-auto-columns: 78%;
    justify-content: start;   /* .pgrid--cross centres, which pushed the first card off the left */
  }
  .cat-cross__cards--one { max-width: 280px; width: 100%; margin-inline: auto; }
}
/*  768px: the text over the cards. 1024px: side by side, the cards at a
 *  fixed 260px so one card and two are the same size. */
@media (min-width: 768px) {
  .cat-cross__band { padding: var(--sp-7) var(--sp-8); }
  .cat-cross__cards.pgrid--cross {
    grid-template-columns: repeat(2, 260px);
    justify-content: start;
    max-width: none;
    margin: 0;
  }
}
@media (min-width: 768px) {
  .cat-cross__cards--one.pgrid--cross { grid-template-columns: 260px; }
}
/*  Text and cards sit together in the middle of the band, not at its two
 *  ends with an empty field between them. */
@media (min-width: 1024px) {
  .cat-cross__band {
    grid-template-columns: minmax(0, 26rem) auto;
    justify-content: center;
    align-items: center;
    column-gap: var(--sp-11);
    padding: var(--sp-8) var(--sp-10);
  }
}
/*  One card fits beside the text from 768px; two wait for 1024px. */
@media (min-width: 768px) and (max-width: 1023px) {
  .cat-cross__band:has(> .cat-cross__cards--one) {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    column-gap: var(--sp-7);
  }
}

/* -- Breadcrumbs -------------------------------------------------------- */
/*  A 40px tap target on phones without moving the line: the padding is
 *  taken back by the negative margin. */
@media (max-width: 767px) {
  .crumbs a { display: inline-block; padding-block: calc(var(--sp-2) + 1px); margin-block: calc((var(--sp-2) + 1px) * -1); }
}

/* -- Phones: shorter ---------------------------------------------------- */
/*  Measured at 390: the head's sentence ran to six lines in a 20px-padded
 *  card, and the guide's band and rows carried more air than the homepage's
 *  cards do. 16px padding and 15px copy (the brief's phone floor) take a
 *  line off the head, and the guide sits as tight as the homepage ledger. */
@media (max-width: 767px) {
  .cat-head { margin-top: 0; padding: var(--sp-4) var(--sp-4) var(--sp-3); row-gap: var(--sp-2); }
  .cat-head .eyebrow { margin-bottom: var(--sp-1); }
  /*  The lede keeps .archive-head__lede's own 16px, as on every other page's
   *  head (the 15px override went in the 30 Sep review). */
  /*  The three facts repeat the sentence above them, and stacked they were
   *  up to three full lines on hair care. On a phone they are compact
   *  chips, the same on both pages, that wrap onto a second line rather
   *  than run out of the card cut mid-word. */
  .cat-head__facts {
    gap: var(--sp-2);
    margin: 0;
    padding: var(--sp-3) 0 0;
  }
  .cat-head__facts li {
    flex: 0 1 auto;
    max-width: 100%;
    gap: 6px;
    padding: 3px var(--sp-3) 3px 3px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-pill);
  }
  .cat-head__icon { width: 26px; height: 26px; }
  .cat-head__icon svg { width: 14px; height: 14px; }
  .cat-head + .shop-bar,
  .wrap:has(> .cat-head) + .wrap > .shop-bar { margin-top: var(--sp-3); margin-bottom: var(--sp-4); }
  .cat-guide { margin-top: var(--sp-4); }
  .cat-guide__band { padding: var(--sp-4); }
  .cat-guide__list { padding: 0 var(--sp-4); }
  .cat-guide__item { padding-block: var(--sp-4) var(--sp-1); }
  .cat-cross__band { padding: var(--sp-5) var(--sp-4); gap: var(--sp-4); }
  .cat-cross__action { margin-top: var(--sp-4); }
  .cat-cross__band .swipe-row.swipe-row {
    margin-inline: calc(var(--sp-4) * -1);
    padding-inline: var(--sp-4);
    scroll-padding-inline: var(--sp-4);
    /*  90% of the band, not 78%: a 252px card at 360, the same card the
     *  shelf above draws, with a 12px gap so the next still peeks in. */
    grid-auto-columns: 90%;
    gap: var(--sp-3);
  }
  .cat-cross__cards--one { max-width: 260px; }
}

/* -- Filters and sort that work (30 Sep 2026) -------------------------- */
/*  assets/js/shop-filters.js drives the drawer, the chips, the sort and
 *  the empty state. Without JavaScript it never runs and every product
 *  shows, so the controls that would do nothing are not drawn at all. */
html:not(.js) .shop-bar .filter-trigger,
html:not(.js) .shop-bar .chips,
html:not(.js) .shop-bar .sort-select { display: none; }

/*  The applied filters. More than one chip no longer pushes the bar past
 *  the screen: the row gives way and swipes, and the sort keeps its room.
 *  The remove button's focus ring is drawn inside, where the row cannot
 *  clip it. */
.shop-bar .chips {
  flex: 0 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.shop-bar .chips::-webkit-scrollbar { display: none; }
.shop-bar .chip { flex: none; }
.shop-bar .chip button:focus-visible { outline-offset: -4px; }
.shop-bar__count { flex: none; }
@media (max-width: 519px) {
  .shop-bar__left { flex: 0 1 auto; }
  .shop-bar .sort-select { min-width: 128px; }
}

/*  Flavour: each swatch is a toggle (aria-pressed), drawn as a row like
 *  the checkboxes above it - the dot, the name, the live count - so a
 *  flavour is chosen by name, not by guessing at a colour. The dot is the
 *  button's own background here, so ::before can carry the name and
 *  ::after the count; pressed, it gains a ring in the accent green. */
#filter-drawer .swatch-row { display: grid; gap: 0; }
#filter-drawer .swatch-dot {
  --dot-ring: var(--c-line-strong);
  display: flex; align-items: center; gap: var(--sp-3);
  width: 100%; height: auto; min-height: 44px;
  padding: 0 0 0 calc(24px + var(--sp-3));
  border-radius: var(--r-sm);
  background: radial-gradient(circle at 12px 50%,
    var(--swatch) 0 8px, var(--dot-ring) 8.5px 9.5px, transparent 10px) no-repeat;
  font-family: var(--ff-sans);
  font-size: var(--fs-small);
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
}
#filter-drawer .swatch-dot::before { content: attr(aria-label); }
#filter-drawer .swatch-dot::after {
  content: attr(data-count);
  position: static; inset: auto;
  margin-left: auto;
  background: none; border: 0; box-shadow: none; border-radius: 0;
  color: var(--c-text-soft);
  font-size: var(--fs-micro);
}
#filter-drawer .swatch-dot[aria-pressed="true"] {
  color: var(--c-heading);
  font-weight: 500;
  background: radial-gradient(circle at 12px 50%,
    var(--swatch) 0 7px, var(--c-surface) 7.5px 8.5px, var(--c-accent) 9px 11px, transparent 11.5px) no-repeat;
}
@media (forced-colors: active) {
  #filter-drawer .swatch-dot[aria-pressed="true"] { outline: 2px solid ButtonText; outline-offset: -2px; }
}

/*  Nothing matches: an honest card in place of an empty grid. */
.filter-empty {
  display: grid; justify-items: center; gap: var(--sp-3);
  max-width: 560px;
  margin: 0 auto var(--sp-7);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  background: var(--c-surface);
  border: var(--card-edge);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
}
.filter-empty__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--c-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-gold) 45%, transparent);
}
.filter-empty__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.filter-empty__title {
  font-family: var(--ff-display);
  font-size: var(--fs-h2-sm);
  line-height: var(--lh-tight);
  color: var(--c-heading);
}
.filter-empty__text { max-width: 36ch; font-size: var(--fs-body); color: var(--c-text-soft); }
.filter-empty__btn { margin-top: var(--sp-2); min-height: 48px; }
@media (max-width: 767px) {
  .filter-empty { padding: var(--sp-6) var(--sp-4); margin-bottom: var(--sp-6); }
}
