/* ============================================================
   ▶ START: CATEGORY PAGE (MASTER BLOCK)
   ============================================================
   SUMMARY: Styles for the base category page (and later Shop All).
   Dark photo title band → espresso filter sidebar with gold vines →
   sand-coloured product area with bronze vines → image-only photo
   band at the end. Loaded ONLY by category pages, so no other page
   can change by accident.
   INSIDE: CATEGORY > Title band · CATEGORY > Layout + vine art ·
           CATEGORY > Filter sidebar · CATEGORY > Toolbar ·
           CATEGORY > Product cards · CATEGORY > Empty + error ·
           CATEGORY > Page numbers · CATEGORY > Partner band ·
           CATEGORY > Laptop · CATEGORY > Tablet · CATEGORY > Phone ·
           CATEGORY > Calm motion
   HOW TO EDIT: colours for the sand area and cards are the two
   variables at the top of CATEGORY > Layout + vine art.
   ============================================================ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Title band
   ------------------------------------------------------------
   SUMMARY: Full-width photo with a dark fade on the left so the
   breadcrumb, label, title and intro stay easy to read. Shop All
   uses the mixed-products photo. Category pages add cp-hero--photo
   for the "Soft Focus" design: a blurred boutique fills the band and
   that category's own photo (.cp-hero__photo) melts in from the
   right. Phones are set in CATEGORY > Phone: the mixed photo gets a
   full-height fade, and the category photo moves above the words.
   ------------------------------------------------------------ */
.cp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  aspect-ratio: 18 / 5; /* 1440 wide → 400 tall */
  min-height: 20rem;
  max-height: 26rem; /* stays compact on very wide screens */
  padding: 2rem 0;
  border-bottom: 3px solid #140d07; /* fine black line under the photo */
}
.cp-hero__img,
.cp-hero__img img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center; /* products stay in view; the soft left side sits under the text */
}
.cp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(18, 10, 4, 0.92) 0%,
    rgba(18, 10, 4, 0.7) 35%,
    rgba(18, 10, 4, 0.1) 70%
  );
}
/* Soft Focus layers, back to front: boutique, dark fade, category photo */
.cp-hero--photo .cp-hero__img,
.cp-hero--photo .cp-hero__img img {
  z-index: -3;
}
.cp-hero--photo::after {
  z-index: -2;
  background: linear-gradient(
    90deg,
    rgba(18, 10, 4, 0.94) 0%,
    rgba(18, 10, 4, 0.68) 50%,
    rgba(18, 10, 4, 0.2) 68%,
    rgba(18, 10, 4, 0) 100%
  );
}
.cp-hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: min(36%, 32rem); /* capped so the photo stays sharp on very wide screens */
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* keeps the tops of tall products in view */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%);
  mask-image: linear-gradient(90deg, transparent, #000 42%); /* the melting left edge */
}
.cp-wrap {
  width: 100%;
  max-width: max(80rem, 1280px); /* page width: kept the same on laptops (does not shrink with the laptop dial) */
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.cp-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: #e6d4b6;
}
.cp-crumb a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(240, 207, 138, 0.5);
}
.cp-eyebrow {
  font: 600 0.75rem var(--font-body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f0cf8a;
}
.cp-title {
  margin: 0.375rem 0 0.625rem;
  font: 500 clamp(2.5rem, 1.75rem + 2.6vw, 4rem) / 1.02 var(--font-head);
  color: #fff8ec;
}
.cp-title em {
  font-style: italic;
  background: linear-gradient(100deg, #e7c27a, #fff0c2 45%, #d9a85a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cp-intro {
  max-width: 30rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #f3e6cf;
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Title band
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Title band > Best Sellers light
   ------------------------------------------------------------
   SUMMARY: The "Wine & Ivory" banner, used only on Best Sellers
   (cp-hero--light). A light cream photo (perfume, wine bag, watch)
   is shrunk until all of it fits, sitting on the right; the band's
   own colour matches the photo's cream wall, so any gap blends in.
   Dark espresso words sit on that empty wall with a soft cream glow
   behind them, "Sellers" is set in the wine of the bag, and a short
   gold line sits before the small label.
   900px and narrower (small tablets and phones): the photo moves on
   top, trimmed only at its empty sides so the products stay whole,
   and the words sit below it on cream. Otherwise the words would
   cover the perfume.
   ------------------------------------------------------------ */
.cp-hero.cp-hero--light {
  background: #e7d1bd; /* the photo's own wall colour */
  border-bottom-color: #3a1218; /* deep wine-black line under the band */
}
.cp-hero--light .cp-hero__img img {
  object-fit: contain; /* photo shown whole, never cut */
  object-position: right center;
}
.cp-hero.cp-hero--light::after {
  background: linear-gradient(
    90deg,
    rgba(240, 224, 204, 0.85) 0%,
    rgba(240, 224, 204, 0.45) 32%,
    rgba(240, 224, 204, 0) 52%
  );
}
.cp-hero--light .cp-crumb {
  color: #5a4330;
}
.cp-hero--light .cp-crumb a {
  text-decoration-color: rgba(138, 90, 24, 0.5);
}
.cp-hero--light .cp-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #7a2230;
}
.cp-hero--light .cp-eyebrow::before {
  content: "";
  flex: none;
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, #8a5a18, #d9a85a); /* short gold line */
}
.cp-hero--light .cp-title {
  color: #24160b;
}
.cp-hero--light .cp-title em {
  background: none;
  color: #6e1d2a; /* wine, like the bag and watch strap */
}
.cp-hero--light .cp-intro {
  max-width: min(30rem, 38vw); /* stays on the empty wall, clear of the perfume */
  color: #3e2c1d;
}
@media (max-width: 56.25em) {
  .cp-hero.cp-hero--light {
    display: block;
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    padding: 0 0 1.75rem;
    background: linear-gradient(180deg, #ead6bf, #e3caae);
  }
  .cp-hero--light .cp-hero__img,
  .cp-hero--light .cp-hero__img img {
    position: relative;
    inset: auto;
    display: block;
  }
  .cp-hero--light .cp-hero__img {
    width: 100%;
    aspect-ratio: 1.6;
    max-height: 18rem;
  }
  .cp-hero.cp-hero--light .cp-hero__img img {
    height: 100%;
    object-fit: cover; /* only the empty wall on the left is trimmed */
    object-position: 95% 50%;
  }
  .cp-hero.cp-hero--light::after {
    inset: 0 0 auto;
    height: min(62.5vw, 18rem); /* same height as the photo */
    background: linear-gradient(
      180deg,
      rgba(234, 214, 191, 0) 70%,
      #ead6bf 100%
    ); /* photo melts into the cream below */
  }
  .cp-hero--light .cp-wrap {
    padding-top: 1.25rem;
  }
  .cp-hero--light .cp-intro {
    max-width: 34rem;
  }
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Title band > Best Sellers light
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Layout + vine art
   ------------------------------------------------------------
   SUMMARY: Sidebar on the left, products on the right. The sand
   area has two vine layers BEHIND the cards: a light vine pattern
   everywhere (::before) and darker vines down both edges (::after).
   They reach all the way to the photo band at the end.
   ------------------------------------------------------------ */
.cp-main {
  --cp-sand: linear-gradient(180deg, #dcc59e, #cdb07f);
  --cp-card: linear-gradient(180deg, #fcf3e2, #f0dfc0);
  position: relative;
  isolation: isolate;
  background: var(--cp-sand);
  /* polished gold foil seam right under the black line */
  border-top: 3px solid transparent;
  border-image: linear-gradient(
      90deg,
      #8a5a18,
      #f6d891 30%,
      #fff3cf 50%,
      #f6d891 70%,
      #8a5a18
    )
    1;
}
.cp-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(./images/patterns/damask-bronze.webp) repeat center top /
    20rem auto;
  opacity: 0.12;
  pointer-events: none;
}
.cf-layout {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
}
.cf-results {
  position: relative;
  isolation: isolate;
  padding: 2rem 2.5rem 3.5rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
/* Held a full screen tall until the products arrive (category.js
   removes it), so the banner below doesn't jump down after load. */
.cf-results.is-loading {
  min-height: 100vh;
  min-height: 100svh;
}
.cf-results::before,
.cf-results::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.cf-results::before {
  background: url(./images/patterns/vine-climb-bronze.webp) 0 0 / 20rem auto
    repeat;
  opacity: 0.85;
}
.cf-results::after {
  background:
    url(./images/patterns/vine-tall-bronze.webp) left -4rem top / 18rem auto
      repeat-y,
    url(./images/patterns/vine-tall-bronze-mirror.webp) right -4rem top / 18rem
      auto repeat-y;
  filter: brightness(0.45) contrast(1.15);
  opacity: 0.9;
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Layout + vine art
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Filter sidebar
   ------------------------------------------------------------
   SUMMARY: Espresso panel with a gold blossom on top, faint gold
   damask, a thin inset gold frame and gold-outline boxes. The
   "Explore the collection" heading is centered engraved Cinzel in
   gold, with no box or lines: a soft dark glow with no edges sits
   behind the words so they read clearly over the blossom. Group
   titles (Category, Price…) are big ivory serif; labels inside a
   group (Most popular, All brands) are small gold capitals. The
   empty space under the filters fills with a MATCHED PAIR of gold
   vines: both sides are equally bright, and the small faded leaves
   stay soft for a little depth. Petals fade gently as they near the
   right-hand gold line, so they don't crowd it.
   Each group (Category, Price, Brand, Retailer) folds open/closed.
   On tablets and phones the same panel slides in from the left
   when "Filters" is tapped (see CATEGORY > Tablet).
   ------------------------------------------------------------ */
.cf-side {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 2.5rem 2rem;
  background:
    url(./images/patterns/bloom-gold-down.webp) center top / 100% auto no-repeat,
    url(./images/patterns/damask-gold.webp) repeat center top / 14rem auto,
    linear-gradient(180deg, #24170c, #160e07);
  background-blend-mode: screen, soft-light, normal;
  box-shadow: inset -1px 0 0 rgba(224, 183, 101, 0.45);
  outline: 1px solid rgba(224, 183, 101, 0.4);
  outline-offset: -0.75rem;
}
.cf-side::after {
  content: "";
  flex: 1;
  min-height: 14rem;
  margin: 1rem -1.5rem -2.5rem -2rem;
  /* the "-match" image is the right side raised to the same strength
     as the left, so neither half looks switched off */
  background:
    url(./images/patterns/vine-tall-gold.webp) left top / 50% auto repeat-y,
    url(./images/patterns/vine-tall-gold-right-match.webp) right top 20rem / 50%
      auto repeat-y;
  opacity: 0.55;
  /* two fades, like two stencils stacked: the first softens the top
     of the vines, the second makes petals very faint near the right
     line. "intersect" means a petal must pass both to fully show. */
  -webkit-mask-image:
    linear-gradient(transparent, #000 6rem),
    linear-gradient(to left, rgba(0, 0, 0, 0.18) 0.75rem, #000 4.5rem);
  mask-image:
    linear-gradient(transparent, #000 6rem),
    linear-gradient(to left, rgba(0, 0, 0, 0.18) 0.75rem, #000 4.5rem);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  pointer-events: none;
}
.cf-head {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  /* the panel has more padding on the left than the right, so this
     small margin puts the heading in the exact middle */
  margin: 0 0.5rem 0.75rem 0;
}
.cf-h {
  position: relative;
  isolation: isolate; /* keeps the glow behind these words */
  flex: 1 1 100%;
  padding-block: 0.5rem;
  font:
    700 1.0625rem / 1.5 "Cinzel",
    Georgia,
    serif;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--gold-light);
}
/* Hidden shadow: dark in the middle and fading to nothing at its
   edges, so it never looks like a box */
.cf-h::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.25rem -1.5rem;
  background: radial-gradient(
    ellipse closest-side,
    rgba(14, 8, 3, 0.82) 35%,
    rgba(14, 8, 3, 0) 100%
  );
  pointer-events: none;
}
.cf-close,
.cf-done {
  display: none;
}
.cf-group {
  padding: 1rem 0;
  border-top: 1px solid rgba(224, 183, 101, 0.22);
}
/* no line right under the heading */
.cf-group:first-child {
  border-top: 0;
}
.cf-group summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 2rem;
  margin-bottom: 0.375rem;
  list-style: none;
  cursor: pointer;
}
.cf-group summary::-webkit-details-marker {
  display: none;
}
/* group titles (Category, Price, Brand, Retailer): the BIGGEST words
   in each group, in ivory, so people always know which section they
   are in. The small gold capitals below them (.cf-sub) are labels. */
.cf-group summary h3 {
  font: 600 1.3125rem var(--font-head);
  color: #fff8ec;
}
.cf-group summary svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: #e0b765;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.cf-group:not([open]) summary {
  margin-bottom: 0;
}
.cf-group:not([open]) summary svg {
  transform: rotate(180deg);
}
.cf-group summary:focus-visible,
.cf-group input:focus-visible {
  outline: 2px solid #f6d891;
  outline-offset: 2px;
}
.cf-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  padding: 0.3125rem 0;
  font-size: 0.875rem;
  color: #f3e6cf;
  cursor: pointer;
}
.cf-group label span {
  margin-left: auto;
  font-size: 0.8125rem;
  color: #c9b597;
}
/* gold-outline boxes (not plain white ones) */
.cf-group input {
  appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  margin: 0;
  border: 1.5px solid #e0b765;
  border-radius: 0.25rem;
  background: transparent;
  cursor: pointer;
}
.cf-group input[type="radio"] {
  border-radius: 50%;
}
.cf-group input:checked {
  background: #e0b765;
}
.cf-group input:checked::after {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: #160e07;
}
.cf-group input[type="checkbox"]:checked::after {
  width: 0.25rem;
  height: 0.5rem;
  border-radius: 0;
  background: none;
  border: solid #160e07;
  border-width: 0 2px 2px 0;
  transform: translateY(-0.06rem) rotate(45deg);
}
.cf-scrim {
  display: none;
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Filter sidebar
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Toolbar
   ------------------------------------------------------------
   SUMMARY: IVORY SPOTLIGHT. Search box, "Sort by" + sort box in
   bright ivory-white (the brightest thing on the sand, so the eye
   goes straight to them, like Apple's search fields) with a fine 1px
   black line and a deeper soft shadow so they float. Plus the
   Filters button (tablet + phone only).
   ------------------------------------------------------------ */
.cf-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.cf-search {
  flex: 0 1 32rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: #fffdf9; /* bright ivory-white, stands out from the sand */
  /* fine black line + a tight shadow + a wide soft shadow = floats */
  box-shadow:
    inset 0 0 0 1px rgba(20, 13, 7, 0.65),
    0 0.125rem 0.25rem rgba(20, 13, 7, 0.08),
    0 0.75rem 1.75rem -0.5rem rgba(20, 13, 7, 0.38);
}
.cf-search:focus-within {
  outline: 2px solid #8a5a18;
  outline-offset: 2px;
}
.cf-search svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: #140d07; /* black icons read crisply on the ivory */
  stroke-width: 1.8;
  stroke-linecap: round;
}
.cf-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: 400 0.9375rem var(--font-body);
  color: #140d07;
  outline: none;
}
.cf-search input::placeholder {
  color: #5e4a35;
}
.cf-sortwrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.cf-sortlbl {
  font-size: 0.875rem;
  font-weight: 600;
  color: #140d07;
  white-space: nowrap;
}
.cf-sortbox {
  position: relative;
  display: flex;
  align-items: center;
}
.cf-sortbox svg {
  position: absolute;
  left: 0.875rem;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: #140d07;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.cf-sortbox select,
.cf-sortbtn {
  appearance: none;
  min-width: 12rem;
  min-height: 2.75rem;
  padding: 0 2.5rem;
  border: 0;
  border-radius: 0.625rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23140d07' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
      right 0.875rem center / 1rem no-repeat,
    #fffdf9;
  /* same ivory, fine black line and floating shadow as the search box */
  box-shadow:
    inset 0 0 0 1px rgba(20, 13, 7, 0.65),
    0 0.125rem 0.25rem rgba(20, 13, 7, 0.08),
    0 0.75rem 1.75rem -0.5rem rgba(20, 13, 7, 0.38);
  font: 500 0.875rem var(--font-body);
  color: #140d07;
  cursor: pointer;
}
.cf-sortbox select:focus-visible,
.cf-sortbtn:focus-visible,
.cf-filter:focus-visible {
  outline: 2px solid #8a5a18;
  outline-offset: 2px;
}
.cf-filter {
  display: none;
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Toolbar
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Sort menu
   ------------------------------------------------------------
   SUMMARY: ESPRESSO MENU. category.js swaps the browser's plain
   white drop-down for this one: a dark espresso panel with ivory
   words, a gold check on the chosen sort and a soft gold glow on
   the row under the mouse/finger. The real <select> stays hidden
   underneath, so sorting works exactly as before.
   ------------------------------------------------------------ */
.cf-sortbox.is-enhanced select {
  position: absolute;
  width: 1px;
  min-width: 0;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.cf-sortbtn {
  text-align: left;
  white-space: nowrap;
}
.cf-sortbtn[aria-expanded="true"] {
  box-shadow:
    inset 0 0 0 2px #8a5a18,
    0 0 0 3px rgba(246, 216, 145, 0.6);
}
.cf-menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  z-index: 30;
  min-width: 100%;
  padding: 0.375rem;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #2a1b0f, #160e07);
  box-shadow:
    0 0 0 1px rgba(224, 183, 101, 0.6),
    0 1.25rem 2rem -0.75rem rgba(20, 13, 7, 0.7);
  list-style: none;
}
.cf-menu[hidden] {
  display: none;
}
.cf-menu:focus {
  outline: none;
}
.cf-menu li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  font: 500 0.875rem var(--font-body);
  color: #f3e6cf;
  white-space: nowrap;
  cursor: pointer;
}
.cf-menu li.is-active {
  background: rgba(224, 183, 101, 0.16);
  color: #fff3cf;
}
.cf-menu li[aria-selected="true"] {
  color: #f6d891;
}
.cf-menu svg {
  position: static; /* not the sort-box icon position */
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  visibility: hidden;
}
.cf-menu li[aria-selected="true"] svg {
  visibility: visible;
}
@media (max-width: 47.9375em) {
  .cf-sortbtn {
    width: 100%;
    min-width: 0;
    min-height: 2.5rem;
    padding-right: 2rem;
    background-position:
      right 0.625rem center,
      0 0;
    font-size: 0.8125rem;
  }
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Sort menu
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Long lists
   ------------------------------------------------------------
   SUMMARY: Brand / Retailer lists with more than 8 names (made by
   SCRIPT > Long lists). Computers: find box + a short scroll window
   (Selected → Most popular → All A–Z) + a gold "View all" pill.
   Tablets/phones: find box + Selected + Most popular + "View all"
   (no small scroll box inside the scrolling Filters panel).
   ------------------------------------------------------------ */
/* find box (a label, so the sidebar's label + checkbox rules are reset) */
.cf-group .cf-find,
.az .cf-find {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.5rem;
  margin: 0.25rem 0 0.625rem;
  padding: 0 0.875rem;
  border-radius: 0.5rem;
  background: rgba(255, 248, 236, 0.06);
  box-shadow: inset 0 0 0 1px rgba(224, 183, 101, 0.45);
  cursor: text;
}
.cf-group .cf-find:focus-within,
.az .cf-find:focus-within {
  box-shadow: inset 0 0 0 1.5px #e0b765;
}
.cf-find svg {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: #e0b765;
  stroke-width: 2;
  stroke-linecap: round;
}
.cf-group .cf-find input,
.az .cf-find input {
  appearance: none;
  display: block;
  flex: 1;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font: 400 0.875rem / 2.5rem var(--font-body);
  color: #fff3dc;
  text-align: left;
  text-indent: 0;
  place-items: normal; /* undo the checkbox "center" rule, so typed text starts on the left */
  outline: none;
}
.cf-find input::placeholder {
  color: #bfa77f;
}
/* no little "×" clear icon in any search box on this page */
.cp-main input[type="search"]::-webkit-search-cancel-button,
.cp-main input[type="search"]::-webkit-search-decoration,
.az input[type="search"]::-webkit-search-cancel-button,
.az input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
/* small labels inside a group: Selected · Most popular · All brands
   (Apple-style: tiny spaced gold capitals, clearly SMALLER than the
   group title above, so title → label → list reads in order) */
.cf-sub {
  display: flex;
  align-items: center;
  margin: 1rem 0 0.25rem;
  font: 600 0.6875rem var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9a15e;
}
.cf-sub:first-child {
  margin-top: 0.25rem;
}
.cf-sub[hidden] {
  display: none;
}
.cf-div {
  display: none; /* the small gold labels already separate sections */
}
.cf-none {
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  color: #c9b597;
}
.cf-none[hidden],
.cf-long label[hidden] {
  display: none;
}
/* computers: short scroll window with a soft fade at the bottom */
.cf-scroll {
  max-height: 22rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #c9a15e rgba(224, 183, 101, 0.12);
  /* a short soft fade at the bottom, plus empty space under the last
     name, so when you scroll to the end the last name sits fully
     above the fade: clear and easy to click. Kept short (1rem) so
     the "View all" button sits close under the last name. */
  padding-bottom: 1rem;
  -webkit-mask: linear-gradient(#000 calc(100% - 1rem), transparent);
  mask: linear-gradient(#000 calc(100% - 1rem), transparent);
}
/* "View all brands" gold outline pill */
.cf-more {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  min-height: 2.5rem;
  margin-top: 0.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: none;
  box-shadow: inset 0 0 0 1px rgba(224, 183, 101, 0.6);
  font: 500 0.8125rem var(--font-body);
  color: #f0cf8a;
  cursor: pointer;
  transition: background 0.2s;
}
.cf-more:hover {
  background: rgba(224, 183, 101, 0.12);
}
.cf-more:focus-visible {
  outline: 2px solid #f6d891;
  outline-offset: 2px;
}
.cf-more svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* tablets + phones: no inner scroll; just Selected + Most popular
   (the A–Z part shows again while someone is using the find box) */
@media (max-width: 64em) {
  .cf-scroll {
    max-height: none;
    overflow: visible;
    padding: 0;
    -webkit-mask: none;
    mask: none;
  }
  .cf-long:not(.is-finding) .cf-rest,
  .cf-long:not(.is-finding) .cf-rest-label,
  .cf-long:not(.is-finding) .cf-div {
    display: none;
  }
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Long lists
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > No auto-zoom on touch screens
   ------------------------------------------------------------
   SUMMARY: iPhones and iPads zoom the whole page in when you tap a
   text box whose letters are smaller than 16px, and they stay
   zoomed, so the page looks too big and white edges show when you
   slide around. On tablets, phones and any touch screen, every
   search box on the shop pages ("Search products", "Find a brand",
   "Find a retailer" and the find box in the A–Z panel) uses 16px
   letters, so tapping them never zooms. Laptops and desktops with
   a mouse keep the smaller letters.
   ------------------------------------------------------------ */
@media (max-width: 64em), (pointer: coarse) {
  .cf-search input,
  .cf-group .cf-find input,
  .az .cf-find input {
    font-size: 1rem;
  }
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > No auto-zoom on touch screens
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > A–Z panel
   ------------------------------------------------------------
   SUMMARY: ESPRESSO HEADER + CHAMPAGNE LIST. "View all brands /
   retailers" panel: a rich espresso band (gold blossom + damask)
   with "BROWSE BY NAME", "All brands" in Playfair with the word in
   gold italic and a small gold ornament, then a gold foil seam.
   Below, a light champagne list (same finish as the product cards):
   find box, names only (no counts) grouped under gold letters,
   and an espresso "Show products" button.
   Computers: 3 columns. Phones: full screen, ONE list that scrolls
   straight down (never sideways).
   While this panel or the Filters panel is open the page behind is
   frozen (SCRIPT > Page freeze) and the very back of the page turns
   espresso, so a phone's stretchy "bounce" at the top, bottom or
   sides shows dark, never white. The list's own bounce stays inside
   the list.
   ------------------------------------------------------------ */
html.az-lock,
html.cf-lock {
  overflow: hidden;
  background: #160e07;
}
.az-wrap[hidden] {
  display: none;
}
.az-scrim {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 6, 3, 0.6);
}
.az {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(56rem, 92vw);
  max-height: 86vh;
  border-radius: 1rem;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #fff8ea, #f1dfbd);
  box-shadow:
    0 0 0 1px rgba(224, 183, 101, 0.6),
    0 2rem 4rem rgba(0, 0, 0, 0.6);
}
/* espresso header band */
.az-head {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.75rem 4rem 1.125rem;
  background:
    url(./images/patterns/bloom-gold-down.webp) center top / 100% auto no-repeat,
    url(./images/patterns/damask-gold.webp) repeat center / 14rem auto,
    linear-gradient(180deg, #24170c, #160e07);
  background-blend-mode: screen, soft-light, normal;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(
      90deg,
      #8a5a18,
      #f6d891 30%,
      #fff3cf 50%,
      #f6d891 70%,
      #8a5a18
    )
    1;
  text-align: center;
}
.az-eyebrow {
  font: 600 0.6875rem var(--font-body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e0b765;
}
.az-head h3 {
  font: 500 clamp(1.75rem, 1.4rem + 1vw, 2.25rem) / 1.1 var(--font-head);
  color: #fff8ec;
}
.az-head h3 em {
  font-style: italic;
  background: linear-gradient(100deg, #e7c27a, #fff0c2 45%, #d9a85a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* small gold line + diamond under the title */
.az-orn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: min(16rem, 70%);
  margin-top: 0.375rem;
}
.az-orn::before,
.az-orn::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a15e);
}
.az-orn::after {
  transform: scaleX(-1);
}
.az-orn i {
  width: 0.4rem;
  height: 0.4rem;
  background: #e0b765;
  transform: rotate(45deg);
}
.az-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(224, 183, 101, 0.14);
  color: #f0cf8a;
  cursor: pointer;
}
.az-x svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
/* find box on the light list (overrides the dark sidebar version) */
.az .cf-find {
  flex: none;
  width: calc(100% - 4rem);
  max-width: 32rem;
  margin: 1.25rem auto 1rem;
  background: #fffaf2;
  box-shadow: inset 0 0 0 1.5px #b8893f;
}
.az .cf-find:focus-within {
  box-shadow: inset 0 0 0 2px #8a5a18;
}
.az .cf-find svg {
  stroke: #8a5a18;
}
.az .cf-find input {
  color: #140d07;
}
.az .cf-find input::placeholder {
  color: #6b5640;
}
/* the list: 3 columns on computers, scrolls down inside the panel */
.az-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain; /* reaching the end doesn't drag the page behind */
  columns: 3 13rem;
  column-gap: 2.25rem;
  padding: 0 2rem 1rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #b8893f rgba(184, 137, 63, 0.12);
}
.az-sec {
  break-inside: avoid;
  margin-bottom: 0.875rem;
}
.az-sec[hidden],
.az-sec label[hidden] {
  display: none;
}
.az-sec h4 {
  margin-bottom: 0.375rem;
  padding-bottom: 0.125rem;
  border-bottom: 1px solid rgba(184, 137, 63, 0.35);
  font: 600 1.25rem var(--font-head);
  color: #8a5a18;
}
.az-sec label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.25rem;
  padding: 0 0.375rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #140d07;
  cursor: pointer;
}
.az-sec label:hover {
  background: rgba(184, 137, 63, 0.12);
}
.az-nm {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.az-sec input {
  appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  margin: 0;
  border: 1.5px solid #8a5a18;
  border-radius: 0.25rem;
  cursor: pointer;
}
.az-sec input:checked {
  background: #8a5a18;
}
.az-sec input:checked::after {
  content: "";
  width: 0.25rem;
  height: 0.5rem;
  border: solid #fff8ec;
  border-width: 0 2px 2px 0;
  transform: translateY(-0.06rem) rotate(45deg);
}
.az-sec input:focus-visible,
.az-foot button:focus-visible {
  outline: 2px solid #8a5a18;
  outline-offset: 2px;
}
.az-x:focus-visible {
  outline: 2px solid #f6d891;
  outline-offset: 2px;
}
.az-foot {
  flex: none;
  padding: 1rem 2rem 1.25rem;
  border-top: 1px solid rgba(184, 137, 63, 0.35);
}
.az-foot button {
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  background: #1d1209;
  font: 600 0.9375rem var(--font-body);
  color: #f6d891;
  cursor: pointer;
}
/* phones: full screen, one list that scrolls straight down */
@media (max-width: 47.9375em) {
  .az {
    inset: 0; /* pinned to all 4 edges, so no gap when Safari's bars slide away */
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 0;
    transform: none;
  }
  .az-head {
    padding: 1.5rem 3.5rem 1rem;
  }
  .az-x {
    top: 0.75rem;
    right: 0.75rem;
  }
  .az .cf-find {
    width: calc(100% - 2.5rem);
  }
  .az-body {
    columns: auto; /* one plain list (columns + a fixed height would spill sideways) */
    padding: 0 1.25rem 1rem;
  }
  .az-foot {
    padding: 0.875rem 1.25rem 1rem;
  }
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > A–Z panel
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Product cards
   ------------------------------------------------------------
   SUMMARY: ESPRESSO DAMASK ("Sidebar Twin"). 4 per row on big
   screens, compact. The bottom half of each card uses the SAME gold
   damask + espresso gradient as the "Explore the collection" panel,
   with a fine 1px black line and a soft shadow. Ivory text, gold
   brand + store. The short line is a warm Playfair italic (like a
   magazine caption). The store sits in a fine gold pill.
   Brand, name, short line and store sit on the SAME level in
   every card.
   PHOTOS: a product's own photo is shown whole on a cream tile
   (tall, wide or square, nothing is cut off). Borrowed category
   photos and the "coming soon" photo still fill the box.
   HEART + SHARE (2026-11-23): two matching ivory circles in the
   photo's top-right corner, the heart on top and the share icon
   8px under it (36px each on laptops, 40px on phones).
   BUTTON (Red Pill, 2026-11-22): a SLIM gold box across the card
   with one short label on every screen: "View price" (one store),
   "Compare prices" (2+ stores), or the price itself in the heading
   font (.cp-btn--price, once a store API sends prices). It looks
   slim, but an invisible ring (::after) makes it 44px to a finger.
   Every small word (brand, store, button) is at least 12px.
   ------------------------------------------------------------ */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}
.cp-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.125rem;
  /* solid espresso base (the damask is painted on .cp-body below) */
  background: #160e07;
  /* fine black line (1px, 65%) + soft shadow */
  box-shadow:
    0 0 0 1px rgba(20, 13, 7, 0.65),
    0 0.875rem 1.75rem -1rem rgba(10, 6, 3, 0.6);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.cp-card:hover {
  transform: translateY(-0.25rem);
  box-shadow:
    0 0 0 1px rgba(20, 13, 7, 0.85),
    0 1.25rem 2rem -1rem rgba(10, 6, 3, 0.7);
}
.cp-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #2a1d12;
}
.cp-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.cp-card:hover .cp-img img {
  transform: scale(1.04);
}
/* A product's OWN photo (cp-img--own, added in category.js) is shown
   WHOLE on a cream tile, never cut off, whatever its shape. "multiply"
   lets a white photo background melt into the cream. */
.cp-img--own {
  background: var(--cp-card, linear-gradient(180deg, #fcf3e2, #f0dfc0));
}
.cp-img--own img {
  box-sizing: border-box;
  padding: 7%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
/* ♡ save: ivory circle; saved = red filled heart */
.cp-save {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.9);
  color: #8a5a18;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.cp-save::before {
  content: "";
  position: absolute;
  inset: -0.375rem; /* bigger tap area, same look */
}
.cp-save svg {
  width: 1.0625rem;
  height: 1.0625rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
/* ⇪ share: the same ivory circle, sitting just under the heart
   (heart top + heart size + 8px gap). It opens the share window. */
.cp-share {
  position: absolute;
  top: 3.5rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.9);
  color: #8a5a18;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.cp-share::before {
  content: "";
  position: absolute;
  inset: -0.25rem; /* bigger tap area without touching the heart's */
}
.cp-share svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cp-share:hover {
  background: #fffaf2;
}
.cp-share:focus-visible {
  outline: 2px solid #f6d891;
  outline-offset: 2px;
}
.cp-save[aria-pressed="true"] {
  color: #e0353f;
}
.cp-save[aria-pressed="true"] svg {
  fill: currentColor;
}
.cp-save:focus-visible,
.cp-btn:focus-visible {
  outline: 2px solid #f6d891;
  outline-offset: 2px;
}
.cp-body {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  padding: 0.75rem 0.75rem 0.875rem;
  text-align: center;
  /* the same gold damask + espresso as the "Explore the collection" panel */
  background:
    url(./images/patterns/damask-gold.webp) repeat center top / 14rem auto,
    linear-gradient(180deg, #24170c, #160e07);
  background-blend-mode: soft-light, normal;
}
.cp-brand {
  width: 100%;
  font: 600 var(--t-xs) / 1rem var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e3bf7a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* the name always gets room for 2 lines, so every row lines up */
.cp-namebox {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 2.6em;
  margin-top: 0.25rem;
  font-size: 1rem;
}
.cp-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font: 600 1em / 1.3 var(--font-head);
  letter-spacing: -0.005em;
  color: #fbf6ec;
}
/* The name opens the product's own page (SEO Batch 2). Same colour
   and look as before; a fine gold underline shows on hover/focus. */
.cp-name a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.cp-name a:hover,
.cp-name a:focus-visible {
  text-decoration: underline;
  text-decoration-color: #d9b46a;
}
.cp-name a:focus-visible {
  outline: 2px solid #d9b46a;
  outline-offset: 2px;
  border-radius: 2px;
}
.cp-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 16rem;
  min-height: 3em; /* always room for 2 lines, so rows line up */
  margin: 0.25rem auto 0;
  /* magazine-caption italic: medium weight, a touch of spacing and a
     brighter ivory so the thin italic strokes stay easy to read */
  font: italic 500 0.875rem / 1.5 var(--font-head);
  letter-spacing: 0.01em;
  color: #e6d9c3;
}
/* the store: small gold capitals inside a fine gold pill */
.cp-ret {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  max-width: 100%;
  margin: 0.375rem 0 0.5rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid rgba(227, 191, 122, 0.35);
  border-radius: 999px;
  font: 600 var(--t-xs) / 1rem var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e3bf7a;
}
.cp-ret span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-ret svg {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.cp-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  margin-top: auto;
  padding-top: 0.625rem;
  border-top: 1px solid rgba(227, 191, 122, 0.28);
}
.cp-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  /* slim polished-gold box across the card: small spaced capitals */
  width: 100%;
  height: 1.875rem;
  padding: 0 0.5rem;
  border-radius: 0.375rem;
  font: 600 var(--t-xs) / 1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f6d891, #c9a15e 55%, #a87a32);
  color: #140d07;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0.25rem 0.625rem rgba(0, 0, 0, 0.3);
  transition: filter 0.2s;
}
.cp-btn:hover {
  filter: brightness(1.08);
}
/* invisible extra space around the slim button: 44px to a finger */
.cp-btn::after {
  content: "";
  position: absolute;
  inset: -0.4375rem -0.25rem;
}
/* the price itself (store API on): heading font, like the name */
.cp-btn--price {
  font: 600 1rem / 1 var(--font-head);
  letter-spacing: 0.01em;
  text-transform: none;
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Product cards
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Empty + error
   ------------------------------------------------------------
   SUMMARY: Shown in place of the cards when nothing matches the
   search/filters, when the product list can't load, or when the
   shelf has 0 products (see CATEGORY > Empty shelf).
   ------------------------------------------------------------ */
/* STORYBOOK CARD: the cat watercolor fills a gold-framed card and the
   words sit on its empty paper on the left. Tablets/phones: the cat
   sits on top, words + button centered underneath. */
.cp-empty {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  margin: 1rem 0 0;
  border: 2px solid transparent;
  border-radius: 0.875rem;
  background: #f6ebd6;
  background-clip: padding-box;
  box-shadow:
    0 0 0 2px #c9a15e,
    0 0 0 3px rgba(255, 240, 200, 0.8),
    0 1.25rem 1.75rem -1.25rem rgba(43, 26, 13, 0.5);
}
.cp-empty[hidden] {
  display: none;
}
.cp-empty__pic {
  position: absolute;
  inset: 0;
}
.cp-empty__pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-empty__txt {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 46%;
  padding-left: clamp(1.5rem, 4vw, 3.5rem);
}
.cp-empty__eyebrow {
  margin-bottom: 0.5rem;
  font: 600 0.6875rem var(--font-body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8a5a18;
}
.cp-empty h2 {
  font: 500 clamp(1.75rem, 1.2rem + 1.6vw, 2.625rem) / 1.1 var(--font-head);
  color: #140d07;
  text-wrap: balance;
}
.cp-empty h2 em {
  font-style: italic;
  color: #8a5a18;
  white-space: nowrap;
}
.cp-empty__line {
  max-width: 20rem;
  margin: 0.75rem 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #4e3d2a;
}
.cp-empty button,
.cp-empty__link {
  align-self: flex-start;
  min-height: 2.75rem;
  padding: 0 1.75rem;
  border: 0;
  border-radius: 999px;
  background: #1d1209;
  color: #f6d891;
  font: 600 0.875rem var(--font-body);
  cursor: pointer;
}
.cp-empty__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.cp-empty__link[hidden] {
  display: none;
}
.cp-empty button:focus-visible,
.cp-empty__link:focus-visible {
  outline: 2px solid #8a5a18;
  outline-offset: 2px;
}
/* tablets + phones: cat on top, words centered underneath */
@media (max-width: 64em) {
  .cp-empty {
    aspect-ratio: auto;
  }
  .cp-empty__pic {
    position: relative;
    inset: auto;
    display: block;
    aspect-ratio: 2 / 1;
  }
  .cp-empty__pic img {
    object-position: right center;
  }
  .cp-empty__txt {
    align-items: center;
    max-width: none;
    padding: 1.5rem 1.5rem 1.75rem;
    text-align: center;
  }
  .cp-empty__line {
    margin-inline: auto;
  }
  .cp-empty button,
  .cp-empty__link {
    align-self: center;
  }
}
@media (max-width: 47.9375em) {
  .cp-empty__pic {
    aspect-ratio: 800 / 583;
  }
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Empty + error
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Empty shelf
   ------------------------------------------------------------
   SUMMARY: category.js adds is-empty-shelf only when this page
   has 0 products. The search, sort and filters disappear, the
   page becomes one column, and the message card sits centered.
   ------------------------------------------------------------ */
.is-empty-shelf .cf-layout {
  grid-template-columns: minmax(0, 1fr);
}
.is-empty-shelf .cf-side,
.is-empty-shelf .cf-scrim,
.is-empty-shelf .cf-top {
  display: none;
}
.is-empty-shelf .cf-layout > .cp-banner {
  grid-column: 1;
}
.is-empty-shelf .cp-empty {
  max-width: 62rem;
  margin: 0 auto;
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Empty shelf
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Page numbers
   ------------------------------------------------------------
   SUMMARY: Champagne circles with a gold ring and Playfair numbers;
   the current page is espresso with a gold number. Hidden when
   everything fits on one page. They are real links (?page=2), so
   Google can follow them; no underline, same look as before.
   ------------------------------------------------------------ */
.cp-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  margin-top: 2.5rem;
}
.cp-pager[hidden] {
  display: none;
}
.cp-pager a {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cp-card);
  /* same fine black line as the search + sort boxes */
  box-shadow:
    inset 0 0 0 1px rgba(20, 13, 7, 0.65),
    0 0.375rem 0.875rem -0.5rem rgba(20, 13, 7, 0.4);
  font: 600 1.125rem var(--font-head);
  color: #140d07;
  text-decoration: none;
  cursor: pointer;
}
.cp-pager a[aria-current="page"] {
  background: radial-gradient(circle at 50% 35%, #3a2614, #140d07);
  color: #f6d891;
  box-shadow:
    inset 0 0 0 1px rgba(20, 13, 7, 0.65),
    0 0.5rem 1rem -0.5rem rgba(20, 13, 7, 0.6);
}
.cp-pager .cp-step {
  display: inline-flex;
  gap: 0.375rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font: 600 0.875rem var(--font-body);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cp-pager .cp-gap {
  font: 600 1.125rem var(--font-head);
  color: #140d07;
}
.cp-pager a:focus-visible {
  outline: 2px solid #8a5a18;
  outline-offset: 2px;
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Page numbers
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Partner band
   ------------------------------------------------------------
   SUMMARY: "Partner with Caravan & Co" band ("Natural Light" photo),
   built like the Title band at the top (same fonts, gold label,
   gold-gradient italic). Four layers, back to front:
   (1) .cp-banner__soft  = the Title band's boutique shelves, with
       the blur saved into the file to match the Title band's
       strength. It reaches a little past the 38.4% line so it
       shows through the photo's fade;
   (2) .cp-banner::before = dark shade so the words read;
   (3) .cp-banner__photo = gift photo from 38.4% to the screen edge.
       A CSS mask fades only its first 6%, which ends before the
       first gift, so every gift and purse stays sharp. The photo
       has extra wall at the top, so shorter or narrower bands
       still show the whole display;
   (4) .cp-banner__txt   = words + gold button, centred in the
       left 38.4%.
   "container-type" lets the band switch layout by its OWN width
   (it's narrower on laptops because the sidebar sits beside it).
   Under 55em (about 880px) wide it stacks: the whole photo sits on
   top and melts into solid espresso behind the words, so they stay
   easy to read (phones, tablets, narrowest laptops).
   Phones only: the gold label gets bigger and brighter.
   ------------------------------------------------------------ */
.cp-banner {
  container-type: inline-size;
  position: relative;
  isolation: isolate; /* keeps the layers' z-index inside the band */
  overflow: hidden;
  background: #120a04;
  border-top: 4px solid #8a5a18; /* darker antique-gold border above the band */
}
/* (1) blurred boutique, left side; it ends where the photo's fade
   ends (38.4% + 6% of the photo's width = about 44.4%) */
.cp-banner__soft {
  position: absolute;
  inset: 0 55.6% 0 0;
  z-index: -3;
  display: block;
}
.cp-banner__soft img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center; /* shelves sit behind the words */
}
/* (2) shade: darkest at the far left, easing off toward the photo */
.cp-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    90deg,
    rgba(18, 10, 4, 0.8) 0%,
    rgba(18, 10, 4, 0.66) 24%,
    rgba(18, 10, 4, 0.5) 38.4%,
    rgba(18, 10, 4, 0.34) 44.4%,
    transparent 44.4%
  );
}
/* (3) gift photo, from the 38.4% line to the screen edge */
.cp-banner__photo {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  display: block;
  width: 61.6%;
  height: 100%;
}
.cp-banner__pic {
  display: block;
  width: 100%;
  height: 100%;
}
.cp-banner__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* left = the first gift and the fade are never trimmed off;
     91.7% = the extra wall at the top is what gets trimmed */
  object-position: left 91.7%;
  /* a mask decides how see-through each part is: clear at the left
     edge, solid by 6%, which is just before the first gift */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.5) 3%, #000 6%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.5) 3%, #000 6%);
}
/* (4) words, centred in the left 38.4% */
.cp-banner__txt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 38.4%;
  /* the band's height is set here (a box can't resize itself from
     its own container rule, so its child sets it); cqi = 1% of the
     band's width. 28cqi = on very wide screens the band keeps growing
     so the photo is never cropped through the gifts. */
  height: max(clamp(24rem, 34cqi, 28rem), 28cqi);
  padding: 2rem clamp(1.25rem, 3cqi, 2.5rem);
  text-align: center;
}
.cp-banner__eyebrow {
  font: 600 0.75rem var(--font-body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f0cf8a;
}
.cp-banner__title {
  margin: 0.375rem 0 0.625rem;
  font: 500 clamp(2rem, 1rem + 2.8cqi, 3.25rem) / 1.04 var(--font-head);
  color: #fff8ec;
  text-wrap: balance;
}
.cp-banner__title em {
  font-style: italic;
  background: linear-gradient(100deg, #e7c27a, #fff0c2 45%, #d9a85a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cp-banner__line {
  max-width: 24rem;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #f3e6cf;
  text-wrap: pretty; /* avoids a lonely last word */
}
.cp-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem; /* comfortable finger size */
  padding: 0 1.5rem;
  border-radius: 0.375rem;
  font: 600 0.75rem var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(135deg, #f6d891, #c9a15e 55%, #a87a32); /* same gold as "View at retailer" */
  color: #140d07;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: filter 0.2s;
}
.cp-banner__btn:hover {
  filter: brightness(1.08);
}
.cp-banner__btn:focus-visible {
  outline: 2px solid #f0cf8a;
  outline-offset: 3px;
}
/* Band under 55em wide: whole photo on top, melting down into solid
   espresso below the gifts, so the words + button centred underneath
   sit on a calm dark area. 57.5cqi = the photo's height (it's 57.5%
   as tall as it is wide). */
@container (max-width: 55em) {
  .cp-banner__soft {
    inset: 0;
  }
  .cp-banner__soft img {
    object-position: 30% center;
  }
  .cp-banner::before {
    background: linear-gradient(
      180deg,
      rgba(18, 10, 4, 0.15) 0,
      rgba(18, 10, 4, 0.6) calc(57.5cqi - 3rem),
      #160e07 calc(57.5cqi + 1.5rem)
    );
  }
  .cp-banner__photo {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 460;
  }
  .cp-banner__photo img {
    object-position: center bottom; /* the extra wall at the top is what gets trimmed */
    -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent);
    mask-image: linear-gradient(180deg, #000 88%, transparent);
  }
  .cp-banner__txt {
    width: 100%;
    height: auto;
    margin-top: -0.5rem;
    padding: 0 var(--gutter) 2.5rem;
  }
  .cp-banner__title {
    font-size: 2.125rem;
  }
  .cp-banner__line {
    color: #fff8ec;
  }
}
/* Phones only (767px and below): the gold label is a touch bigger
   and brighter, for reading. Tablets and desktop are untouched. */
@media (max-width: 47.9375em) {
  .cp-banner__eyebrow {
    font-size: 0.8125rem;
    color: #f6d891;
  }
}
/* Laptops + desktop: the espresso sidebar runs down beside the band
   to the footer, and the band starts at the sidebar's edge. */
@media (min-width: 64.0625em) {
  /* Row 1 (the products) takes any extra height, so when a filter
     leaves only a few products the band still sits right on the
     footer instead of floating with a gap underneath. */
  .cf-layout {
    grid-template-rows: 1fr auto;
  }
  .cf-side {
    grid-row: 1 / span 2;
  }
  .cf-layout > .cp-banner {
    grid-column: 2;
    align-self: end;
  }
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Partner band
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Wide screens + photo tag
   ------------------------------------------------------------
   SUMMARY: (1) On very wide screens (1440px+) the search bar, cards
   and page numbers stop at a comfortable width and sit in the
   middle, so cards never grow huge; the vines fill the sides.
   (2) The small "Photo coming soon" tag on cards that are borrowing
   their category's photo until the real product photo is added.
   ------------------------------------------------------------ */
@media (min-width: 100em) {
  .cf-top,
  .cp-grid,
  .cp-pager,
  .cp-empty {
    max-width: 68rem;
    margin-inline: auto;
  }
  .cf-top {
    width: 100%;
  }
}
.cp-tag {
  position: absolute;
  left: 0.625rem;
  bottom: 0.625rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(20, 13, 7, 0.78);
  box-shadow: inset 0 0 0 1px rgba(224, 183, 101, 0.5);
  color: #f6d891;
  font: 600 0.6875rem var(--font-body);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@media (max-width: 47.9375em) {
  .cp-tag {
    left: 0.5rem;
    bottom: 0.5rem;
    padding: 0.1875rem 0.5rem;
    font-size: var(--t-xs);
  }
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Wide screens + photo tag
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Laptop
   ------------------------------------------------------------
   SUMMARY: Laptops (1060–1280px): 3 cards per row.
   ------------------------------------------------------------ */
@media (max-width: 64em) {
  .cp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Laptop
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Tablet
   ------------------------------------------------------------
   SUMMARY: 1024px and below: the sidebar becomes a slide-in panel
   opened by the Filters button (closed by a solid gold circle X
   in its top corner); 4 smaller cards per row; no short
   line on cards (keeps them neat); store name fits on one line.
   ------------------------------------------------------------ */
@media (max-width: 64em) {
  .cp-hero {
    aspect-ratio: auto;
  }
  .cf-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .cf-results {
    padding: 1.5rem var(--gutter) 3rem;
  }
  .cf-results::after {
    background-size: 12rem auto;
    background-position:
      left -3.5rem top,
      right -3.5rem top;
  }
  /* sidebar → slide-in panel */
  .cf-side {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: min(22rem, 88vw);
    padding: 1.75rem 1.5rem 0 1.75rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-102%);
    visibility: hidden;
    transition:
      transform 0.35s var(--ease),
      visibility 0s 0.35s;
  }
  .cf-side.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.35s var(--ease);
  }
  .cf-side::after {
    display: none;
  }
  /* the X gets its own row at the top right, so the heading below it
     can use the full width and stay exactly centered */
  .cf-head {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-right: 0.25rem;
  }
  .cf-close {
    order: -1; /* shows above the heading, without changing the HTML */
    position: relative;
    z-index: 1; /* stays on top of the heading's soft glow */
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    margin: -0.375rem -0.75rem 0 auto;
    border: 0;
    border-radius: 50%;
    /* solid gold circle + dark X: same gold as the "Show products"
       button, so it stands out clearly against the espresso panel */
    background: linear-gradient(135deg, #f6d891, #c9a15e 55%, #a87a32);
    color: #140d07;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      0 0.25rem 0.75rem rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: filter 0.2s;
  }
  .cf-close:hover {
    filter: brightness(1.08);
  }
  .cf-close svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
  }
  .cf-done {
    position: sticky;
    bottom: 0;
    display: block;
    margin: auto -1.5rem 0 -1.75rem;
    padding: 1rem 1.5rem 1.25rem 1.75rem;
    background: linear-gradient(180deg, rgba(22, 14, 7, 0), #160e07 35%);
  }
  .cf-done button {
    width: 100%;
    min-height: 3rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6d891, #c9a15e 55%, #a87a32);
    color: #140d07;
    font: 600 0.9375rem var(--font-body);
    cursor: pointer;
  }
  .cf-close:focus-visible,
  .cf-done button:focus-visible {
    outline: 2px solid #f6d891;
    outline-offset: 2px;
  }
  .cf-scrim {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: block;
    background: rgba(10, 6, 3, 0.55);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.35s,
      visibility 0s 0.35s;
  }
  .cf-scrim.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s;
  }
  /* (html.cf-lock lives in CATEGORY > A–Z panel, next to az-lock) */
  /* while the panel is open, lift this whole section above the
     sticky menu bar so the panel and dark backdrop cover it */
  .cp-main.is-filtering {
    z-index: 1001;
  }
  /* toolbar */
  .cf-search {
    flex: 1 1 auto;
  }
  .cf-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0 1.125rem;
    border: 0;
    border-radius: 0.625rem;
    background: #1d1209;
    color: #f6d891;
    font: 600 0.875rem var(--font-body);
    cursor: pointer;
  }
  .cf-filter svg {
    flex: none;
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
  }
  /* cards */
  .cp-desc {
    display: none;
  }
  .cp-ret {
    letter-spacing: 0.06em;
  }
}
@media (min-width: 48em) and (max-width: 64em) {
  .cp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .cp-namebox {
    font-size: 1rem;
  }
  .cp-brand {
    font-size: var(--t-xs);
    letter-spacing: 0.14em;
  }
  .cp-ret {
    font-size: var(--t-xs);
  }
  /* tighter letter spacing so the words fit the narrower tablet card */
  .cp-btn {
    padding: 0 0.375rem;
    letter-spacing: 0.06em;
  }
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Tablet
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Phone
   ------------------------------------------------------------
   SUMMARY: Title band text sits at the bottom of the photo. On
   category pages the category photo sits above the words and fades
   into them, and the band grows if the title needs more lines. Search
   on its own row, then Sort + Filters as two equal 44px boxes; 2
   compact cards per row with a big square photo, a 40px heart and a
   slim gold button (44px to a finger). Phones ≤360px give the button
   a little more room so "Compare prices" fits on one line.
   ------------------------------------------------------------ */
@media (max-width: 47.9375em) {
  .cp-hero {
    align-items: flex-end;
    min-height: 19rem;
    padding: 1.5rem 0;
  }
  .cp-hero__img img {
    object-position: 58% 40%;
  }
  .cp-hero::after {
    background: linear-gradient(
      0deg,
      rgba(18, 10, 4, 0.95) 0%,
      rgba(18, 10, 4, 0.8) 50%,
      rgba(18, 10, 4, 0.66) 100%
    );
  }
  .cp-hero--photo {
    max-height: none; /* the band grows with the title */
    padding-top: 16rem; /* room for the photo above the words */
  }
  .cp-hero--photo::after {
    background: linear-gradient(
      0deg,
      rgba(18, 10, 4, 0.96) 0%,
      rgba(18, 10, 4, 0.8) 45%,
      rgba(18, 10, 4, 0.25) 100%
    );
  }
  .cp-hero__photo {
    width: min(100%, 30rem);
    height: 17rem;
    object-position: center 28%;
    -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent);
    mask-image: linear-gradient(180deg, #000 58%, transparent);
  }
  /* Large phones: the photo no longer fills the width, so its left edge fades too */
  @media (min-width: 30.0625em) {
    .cp-hero__photo {
      -webkit-mask-image:
        linear-gradient(180deg, #000 58%, transparent),
        linear-gradient(90deg, transparent, #000 30%);
      -webkit-mask-composite: source-in;
      mask-image:
        linear-gradient(180deg, #000 58%, transparent),
        linear-gradient(90deg, transparent, #000 30%);
      mask-composite: intersect;
    }
  }
  .cf-results {
    padding-bottom: 2.5rem;
  }
  /* toolbar: search row, then two equal boxes */
  .cf-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .cf-search {
    grid-column: 1 / -1;
  }
  .cf-sortlbl {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .cf-sortwrap,
  .cf-sortbox,
  .cf-sortbox select {
    width: 100%;
    min-width: 0;
  }
  .cf-sortbox select {
    min-height: 2.75rem;
    padding-right: 2rem;
    background-position:
      right 0.625rem center,
      0 0;
    font-size: 0.8125rem;
  }
  .cf-filter {
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
  }
  /* cards */
  .cp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.75rem;
  }
  .cp-save {
    top: 0.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .cp-save svg {
    width: 1.125rem;
    height: 1.125rem;
  }
  /* share sits under the 40px heart: 8 + 40 + 8px */
  .cp-share {
    top: 3.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .cp-share svg {
    width: 1.0625rem;
    height: 1.0625rem;
  }
  .cp-body {
    padding: 0.5rem 0.5rem 0.625rem;
  }
  .cp-brand {
    font-size: var(--t-xs);
    letter-spacing: 0.16em;
    line-height: 0.875rem;
  }
  .cp-namebox {
    margin-top: 0.25rem;
    font-size: 0.875rem;
  }
  .cp-ret {
    gap: 0.25rem;
    margin: 0.375rem 0 0.5rem;
    font-size: var(--t-xs);
  }
  .cp-ret svg {
    width: 0.75rem;
    height: 0.75rem;
  }
  .cp-foot {
    gap: 0.375rem;
    padding-top: 0.5rem;
  }
  /* slim gold box, a touch taller on phones; still 44px to a finger */
  .cp-btn {
    height: 2rem;
    padding: 0 0.25rem;
    letter-spacing: 0.08em;
  }
  .cp-btn::after {
    inset: -0.375rem -0.25rem;
  }
}
/* small phones (≤360px): a little more room for "Compare prices" */
@media (max-width: 22.5em) {
  .cp-body {
    padding-inline: 0.375rem;
  }
  .cp-btn {
    padding: 0 0.125rem;
    letter-spacing: 0.02em;
  }
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Phone
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Best Sellers
   ------------------------------------------------------------
   SUMMARY: Only best-sellers.html uses these. The page keeps the
   Shop All look: the same hero, sand + damask background, vines
   and espresso sidebar. Compact "Swipe shelves" layout (approved
   Option 2), so phones don't scroll forever.
   (1) Sidebar (laptops): "The best of each category" heading, then
       a numbered jump list (01–08, .bs-jump) with fine gold lines
       between the rows. It sticks below the menu bar while you
       scroll; the section you're reading turns gold (.is-on, set by
       category.js). The sidebar vines are off here.
   (2) Each category is one section (.bs-sec): a slim espresso
       heading band with a thin gold outline, so it never blends into
       the sand background (cream "Top in" + gold italic "Fragrance",
       gold "See all Fragrance →"), then its top 12 cards in a
       slow, endless glide (.bs-window + .bs-grid): one row with 4
       cards on screen, the same size as Shop All's, drifting left
       at the same gentle speed as the homepage's "Our Collections"
       (it uses that same script). It rests while your mouse is over
       it, and you can drag it with the mouse.
   (3) Tablets (768–1024px): the sidebar is hidden and a swipeable
       row of category chips (.bs-chips) sticks under the menu bar
       instead; the lit chip turns gold. Tablets keep the same
       glide, 4 cards on screen.
   (4) Phones (767px and below), "Peek Carousel" (approved Option B):
       no chip row (you just scroll down through the categories).
       The first band sits right under the hero with no sand strip
       above it. The heading band runs edge to edge (straight ends, gold lines
       top and bottom): a big gold italic number ("01") with a thin
       gold line after it, then a small "Top 12 picks" label above
       the title, which always stays on one line (its size shrinks to
       fit the band's width, e.g. "Fashion & Accessories" on a 320px
       phone). The "See all" pill moves out of the band to the bottom
       right of the section, under the dots (.bs-more). Below the band,
       one big card sits in the middle with its neighbors peeking in
       at the sides (dimmed), 12 picks per category. category.js
       (setupPeek) glides it to the next pick every 3.75 seconds; the
       dots under the row fill up like a timer. Swiping still works. Card words line up on the left:
       brand, name, "at Store" in normal letters, then a round gold
       "View price at retailer" button on one line.
   (5) Very wide screens (1600px+): sections stop at the same width
       as the Shop All cards and sit in the middle.
   ------------------------------------------------------------ */
.bs-side::after {
  display: none; /* no vines under the jump list */
}
.bs-side .cf-head {
  margin-bottom: 0.75rem;
}
.bs-jump {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  display: grid;
  counter-reset: bs-num; /* numbers the links 01, 02, 03 … */
}
.bs-jump a {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.5rem;
  font: 500 0.875rem var(--font-body);
  color: #f3e6cf;
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 183, 101, 0.18);
  transition: color 0.2s;
}
.bs-jump a::before {
  counter-increment: bs-num;
  content: counter(bs-num, decimal-leading-zero);
  flex: none;
  width: 1.75rem;
  font: 600 0.6875rem var(--font-body);
  letter-spacing: 0.1em;
  color: #a98d5c;
  transition: color 0.2s;
}
.bs-jump a:hover,
.bs-jump a.is-on,
.bs-jump a.is-on::before {
  color: #f0cf8a;
}
.bs-jump a:focus-visible,
.bs-chips a:focus-visible,
.bs-all:focus-visible,
.bs-more:focus-visible {
  outline: 2px solid #f0cf8a;
  outline-offset: 2px;
}

/* the sections */
.bs-sec {
  /* leaves room for the menu bar (and the chip row) when a jump link
     scrolls here, so the heading isn't hidden under them */
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}
.bs-sec + .bs-sec {
  margin-top: 2rem;
}
.bs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.875rem;
  padding: 0.125rem 1rem;
  border-radius: 0.875rem;
  /* solid espresso band (same brown as the cards) with a thin gold
     line, so it stands out clearly from the sand damask behind it */
  background: #1d1209;
  box-shadow:
    inset 0 0 0 1px rgba(224, 183, 101, 0.45),
    0 0.375rem 1rem rgba(29, 18, 9, 0.22);
}
.bs-title {
  min-width: 0;
}
.bs-eye,
.bs-num,
.bs-more {
  display: none; /* phones only */
}
.bs-dots {
  display: none; /* phones only */
}
.bs-h {
  margin: 0;
  font: 500 clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem) / 1.15 var(--font-head);
  color: #f6ecd9;
}
.bs-h em {
  font-style: italic;
  color: #e0b765;
}
.bs-all {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: var(--tap);
  font: 600 0.875rem var(--font-body);
  color: #f0cf8a;
  text-decoration: none;
  white-space: nowrap;
}
.bs-all:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.bs-all svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.bs-all:hover svg {
  transform: translateX(0.2rem);
}
.bs-grid {
  --bs-gap: 1rem;
  position: relative; /* card positions are measured from here */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--bs-gap);
}
/* tablets + laptops: all 12 cards in one row, 4 on screen at a time.
   Without JavaScript it simply scrolls sideways (the extra padding
   keeps card shadows and the hover lift from being cut off; the minus
   margins cancel it, so the row stays where it was). With JavaScript
   category.js adds is-belt to the window around it: the window stops
   scrolling and the whole row glides slowly inside it, the same as
   the homepage's "Our Collections". */
@media (min-width: 48em) {
  .bs-window.is-belt {
    overflow-x: hidden; /* for older browsers */
    overflow-x: clip; /* cuts off the sides only, so the hover lift still shows */
  }
  .bs-window.is-belt > .bs-grid {
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    margin: 0;
    will-change: transform; /* keeps the belt on the graphics chip */
    touch-action: pan-y; /* up/down still scrolls the page; sideways moves the belt */
    cursor: grab;
  }
  .bs-window.is-belt > .bs-grid.is-dragging {
    cursor: grabbing;
    user-select: none;
  }
  .bs-window.is-belt > .bs-grid.is-dragging .cp-card {
    transform: none; /* no hover lift while dragging */
  }
  .bs-grid {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; /* cards click into place */
    scroll-padding-inline: 0.125rem;
    scrollbar-width: none;
    padding: 0.5rem 0.125rem 1.5rem;
    margin: -0.5rem -0.125rem -1.5rem;
  }
  .bs-grid::-webkit-scrollbar {
    display: none;
  }
  .bs-grid > .cp-card {
    flex: 0 0 calc((100% - 3 * var(--bs-gap)) / 4); /* 4 across */
    scroll-snap-align: start;
  }
}

/* chip row: hidden on laptops (the sidebar does the job) */
.bs-chips {
  display: none;
  gap: 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.bs-chips::-webkit-scrollbar {
  display: none;
}
.bs-chips a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 1.1rem;
  border-radius: 999px;
  font: 500 0.875rem var(--font-body);
  color: #f3e6cf;
  text-decoration: none;
  background: #1d1209;
  border: 1px solid rgba(224, 183, 101, 0.45);
  transition:
    background 0.2s,
    color 0.2s;
}
.bs-chips a:hover {
  border-color: #f0cf8a;
}
.bs-chips a.is-on {
  color: #2a1a08;
  background: linear-gradient(135deg, #f6d891, #c4964a);
  border-color: transparent;
}
.is-empty-shelf .bs-chips {
  display: none; /* nothing ranked yet → no chips */
}

/* very wide screens: same width as the Shop All cards */
@media (min-width: 100em) {
  .bs-list {
    max-width: 68rem;
    margin-inline: auto;
  }
}

/* tablets + phones */
@media (max-width: 64em) {
  .bs-side {
    display: none;
  }
  .bs-chips {
    display: flex;
    position: sticky;
    top: var(--nav-h);
    z-index: 5;
    /* stretches edge to edge over the results' own padding */
    margin: -1.5rem calc(var(--gutter) * -1) 1.25rem;
    padding: 0.75rem var(--gutter);
    background: rgba(220, 197, 158, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(95, 64, 25, 0.25);
  }
  .bs-sec {
    scroll-margin-top: calc(var(--nav-h) + 5rem); /* menu bar + chip row */
  }
  .bs-grid {
    --bs-gap: 0.875rem;
  }
}

/* phones: no chip row, edge-to-edge band + "Peek Carousel" per category */
@media (max-width: 47.9375em) {
  .bs-chips {
    display: none; /* phones just scroll down through the categories */
  }
  .bs-sec {
    scroll-margin-top: calc(var(--nav-h) + 1rem); /* no chip row here */
  }
  .bs-sec + .bs-sec {
    margin-top: 1.75rem;
  }
  /* the first band sits right under the hero (no sand strip above it) */
  .bs-sec:first-child {
    margin-top: -1.5rem; /* = the results box's top padding on phones */
  }
  /* band: full screen width, straight ends, gold lines top + bottom */
  .bs-head {
    flex-wrap: nowrap;
    gap: 0.875rem;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0.875rem var(--gutter);
    border-radius: 0;
    background:
      radial-gradient(120% 140% at 0% 0%, rgba(224, 183, 101, 0.14), transparent 55%),
      #1d1209;
    box-shadow:
      inset 0 1px 0 rgba(224, 183, 101, 0.45),
      inset 0 -1px 0 rgba(224, 183, 101, 0.45);
  }
  /* big gold "01", with a thin gold line between it and the title */
  .bs-num {
    display: flex;
    align-items: center;
    flex: none;
    align-self: stretch;
    padding-right: 0.875rem;
    border-right: 1px solid rgba(224, 183, 101, 0.35);
    font: italic 500 2rem / 1 var(--font-head);
    color: #e0b765;
  }
  .bs-title {
    flex: 1;
    /* lets the title size itself to this box's width ("cqi" units) */
    container-type: inline-size;
  }
  .bs-eye {
    display: block;
    margin: 0 0 0.25rem;
    font: 600 var(--t-xs) / 1.2 var(--font-body);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a98d5c;
  }
  /* one line always: 1.25rem when it fits, smaller on narrow phones */
  .bs-h {
    font-size: min(1.25rem, 7cqi);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* safety net only; the size normally fits */
  }
  /* "See all" leaves the band and sits at the bottom right of the
     section, under the dots (the full name is still read out by
     screen readers) */
  .bs-all {
    display: none;
  }
  .bs-more {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    width: fit-content;
    min-height: 2.25rem;
    margin: 0.25rem 0 0 auto;
    padding: 0 0.875rem 0 1rem;
    border: 1px solid rgba(224, 183, 101, 0.45);
    border-radius: 999px;
    background: #1d1209;
    box-shadow: 0 0.25rem 0.75rem rgba(29, 18, 9, 0.2);
    font: 600 0.8125rem var(--font-body);
    color: #f0cf8a;
    text-decoration: none;
    white-space: nowrap;
  }
  .bs-more:hover {
    border-color: #f0cf8a;
  }
  .bs-more svg {
    width: 0.875rem;
    height: 0.875rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* the carousel row: one card in the middle, neighbors peeking in */
  .bs-grid {
    position: relative; /* card positions are measured from here */
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; /* cards click into place */
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    /* 15% each side = room for the neighbors to peek in */
    padding: 0.875rem 15% 0.5rem;
  }
  .bs-grid::-webkit-scrollbar {
    display: none;
  }
  .bs-grid > .cp-card {
    flex: 0 0 100%; /* = 70% of the screen (the padding takes the rest) */
    scroll-snap-align: center;
    transition:
      transform 0.5s var(--ease),
      opacity 0.5s;
  }
  .bs-grid.is-peek > .cp-card:not(.is-on) {
    transform: scale(0.92);
    opacity: 0.55;
  }

  /* card words: one clean left edge */
  .bs-grid .cp-body {
    align-items: stretch;
    padding: 0.75rem 0.75rem 0.875rem;
    text-align: left;
  }
  .bs-grid .cp-brand {
    font-size: var(--t-xs);
    letter-spacing: 0.16em;
  }
  .bs-grid .cp-namebox {
    place-items: center start;
    margin-top: 0.25rem;
    font-size: 1rem;
  }
  .bs-grid .cp-ret {
    justify-content: flex-start;
    margin: 0.25rem 0 0.75rem;
    font: 500 0.8125rem / 1.3 var(--font-body);
    letter-spacing: 0;
    text-transform: none;
    color: #c9b89a;
  }
  .bs-grid .cp-ret svg {
    display: none;
  }
  .bs-grid .cp-ret span::before {
    content: "at ";
  }
  .bs-grid .cp-foot {
    align-items: stretch;
    padding-top: 0.75rem;
  }
  .bs-grid .cp-btn {
    max-width: none;
    min-height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    font-size: var(--t-xs);
    letter-spacing: 0.01em;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
  }

  /* dots under the row (12, so they're slim); the lit one fills up
     like a 3.75-second timer */
  .bs-dots {
    display: flex;
    justify-content: center;
  }
  .bs-dots button {
    position: relative;
    width: 1.125rem; /* tap area; the dot itself is the thin line inside */
    height: 1.75rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transition: width 0.4s var(--ease);
  }
  .bs-dots button.is-on {
    width: 2.25rem;
  }
  .bs-dots button::before,
  .bs-dots button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.3125rem;
    right: 0.3125rem;
    height: 0.4375rem;
    margin-top: -0.21875rem;
    border-radius: 999px;
    background: rgba(29, 18, 9, 0.28);
  }
  .bs-dots button::after {
    background: #1d1209;
    transform: scaleX(0);
    transform-origin: left;
  }
  .bs-dots button.is-on::after {
    animation: bs-fill 3.75s linear forwards;
  }
  .bs-dots.is-paused button.is-on::after {
    animation: none;
    transform: none; /* paused: the lit dot is simply full */
  }
  .bs-dots button:focus-visible {
    outline: 2px solid #1d1209;
    outline-offset: -2px;
    border-radius: 999px;
  }
}
@keyframes bs-fill {
  to {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bs-grid > .cp-card,
  .bs-dots button {
    transition: none;
  }
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Best Sellers
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ▶ START: CATEGORY > Calm motion
   ------------------------------------------------------------
   SUMMARY: If someone's device asks for less motion, cards don't
   lift/zoom and the filter panel appears without sliding.
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .cp-card,
  .cp-img img,
  .cf-side,
  .cf-scrim,
  .cf-group summary svg {
    transition: none;
  }
  .cp-card:hover {
    transform: none;
  }
  .cp-card:hover .cp-img img {
    transform: none;
  }
}
/* ------------------------------------------------------------
   ■ END: CATEGORY > Calm motion
   ------------------------------------------------------------ */

/* ============================================================
   ■ END: CATEGORY PAGE (MASTER BLOCK)
   ============================================================ */
