/* ============================================================
   shop.css - Shop landing page components
   Loaded only on /shop/ pages. Assumes base site stylesheet
   already defines :root tokens (--purple, --pink, --gold, --off,
   --white, --ink, --border, --r-lg/md/sm/pill, --shadow-*, --ff-display,
   --ff-body, --ease/--ease-mid), resets, .wrap, .btn*, .eyebrow, .h1, .h2.
   ============================================================ */

/* ── Button variants used on this page ────────────────────────────
   .btn-pink already exists sitewide (see index.php). These two are
   shop-specific additions, built standalone (not `.btn .btn-outline-…`)
   to match the site's existing standalone button-class pattern. ──── */
.btn-outline-purple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--purple);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.btn-outline-purple:hover {
  border-color: var(--purple);
  background: var(--purple-pale);
  color: var(--purple);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* ── Section scaffold (shop pages only — avoids clobbering existing
   sitewide section rules) ───────────────────────────────────────── */
.shop-section {
  padding: 74px 0;
}

.shop-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.shop-section-header .h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  margin-bottom: 8px;
}

.shop-section-header p {
  color: var(--ink-light);
  font-size: 14.5px;
  margin: 0;
  max-width: 52ch;
}

/* ============================================================
   HERO — .page-hero itself (background, breadcrumbs, title, sub)
   is the sitewide component already used on /symptoms/. This block
   only adds the shop-specific content that sits inside it: the
   two-column layout, search bar, reviewer aside and trust bar.
   ============================================================ */
.shop-hero .shop-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .85fr;
  gap: 56px;
  align-items: center;
  margin-top: 28px;
  padding-bottom: 40px;
}

.shop-hero .page-hero__sub {
  max-width: 46ch;
  margin-bottom: 30px;
}

.eyebrow.on-dark {
  color: #e8cf94;
}

.eyebrow.on-dark::before {
  background: #e8cf94;
}

.hero-search {
  background: #fff;
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xl);
  max-width: 560px;
}

.hero-search svg {
  color: var(--ink-light);
  flex-shrink: 0;
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 0;
}

.hero-search .btn {
  padding: 12px 24px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.hero-chip {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}

.hero-chip:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .4);
}

.hero-chip-label {
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  font-weight: 600;
  align-self: center;
  margin-right: 2px;
}

/* Hero image — links through to the Review Panel section below. */
.hero-image {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 340px;






}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s var(--ease-mid);
}

.hero-image:hover img {
  transform: scale(1.03);
}

.hero-trustbar {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  font-weight: 600;
}

.trust-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
   SYMPTOM QUICK-FILTER STRIP
   ============================================================ */
.symptom-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.symptom-strip .wrap {
  padding-top: 26px;
  padding-bottom: 26px;
}

.symptom-strip-row {
  display: flex;
  align-items: center;
  gap: 22px;
}

.symptom-strip-label {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--purple);
}

.symptom-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}

.symptom-pills::-webkit-scrollbar {
  display: none;
}

.symptom-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--off);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all .18s var(--ease);
}

.symptom-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
}

.symptom-pill:hover,
.symptom-pill.is-active {
  border-color: var(--pink);
  background: var(--pink-wash);
  color: var(--pink-dark);
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .22s var(--ease-mid), transform .22s var(--ease-mid), border-color .22s var(--ease-mid);
}

.cat-tile:hover {
  border-color: var(--pink);
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.cat-tile__img {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--purple-pale);
}

.cat-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease-mid);
}

.cat-tile:hover .cat-tile__img img {
  transform: scale(1.06);
}

.cat-tile__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-tile__body h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 16.5px;
  color: var(--purple);
  line-height: 1.25;
}

.cat-tile__body p {
  font-size: 12.5px;
  color: var(--ink-light);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s var(--ease-mid), box-shadow .22s var(--ease-mid), border-color .22s var(--ease-mid);
}

.product-card:hover {
  transform: translateY(-5px);

  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.product-media {
  position: relative;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--pc-a, #f0d9e4), var(--pc-b, #e7d3ef));
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media .ph-label {
  font-family: var(--ff-display);
  font-style: italic;
  color: rgba(63, 35, 80, .38);
  font-size: 15px;
  text-align: center;
  padding: 0 20px;
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-reviewed {
  background: var(--white);
  color: var(--purple);
  box-shadow: var(--shadow-sm);
}

.badge-reviewed svg {
  color: var(--gold-dark, var(--gold));
}

.badge-offer {
  background: var(--pink);
  color: #fff;
}

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.fav-btn:hover {
  color: var(--pink);
  transform: scale(1.08);
}

.fav-btn.is-saved {
  color: var(--pink);
}

.fav-btn.is-saved svg {
  fill: var(--pink);
}

.product-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pink);
}

.product-title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 17.5px;
  color: var(--ink);
  line-height: 1.28;
}

.product-points {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 2px 0 4px;
}

.product-points li {
  display: flex;
  gap: 8px;
  font-size: 12.8px;
  color: var(--ink-mid);
  line-height: 1.5;
}

.product-points li::before {
  content: '✓';
  color: var(--purple-2, var(--purple));
  font-weight: 700;
  flex-shrink: 0;
}

.product-desc {
  font-size: 12.8px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin: 2px 0 4px;
}

.product-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.price {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--purple);
}

.price-code {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pink-dark, var(--pink));
  background: var(--pink-wash);
  padding: 4px 9px;
  border-radius: var(--r-pill);
}

.buy-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leaving-note {
  font-size: 11px;
  color: var(--ink-light);
  text-align: center;
}

.leaving-note svg {
  vertical-align: -2px;
  margin-right: 3px;
}

.product-cta-row {
  text-align: center;
  margin-top: 38px;
}

/* ============================================================
   REVIEW PANEL — community feature, warm-pink treatment so it
   reads as a standalone initiative, not another shop shelf.
   ============================================================ */
.panel-band {
  background: linear-gradient(180deg, var(--pink-wash) 0%, var(--off) 100%);
}

.panel-head {
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: center;
}

.panel-head .eyebrow {
  justify-content: center;
}

.panel-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin-top: 14px;
}

.panel-tagline {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  color: var(--pink-dark, var(--pink));
  font-size: 18px;
  margin: 12px 0 18px;
}

.panel-head p.lede {
  margin: 0 auto 24px;
}

.panel-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.panel-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mid);
}

.panel-note svg {
  color: var(--pink);
  flex-shrink: 0;
}

.panel-steps {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.panel-steps::before {
  content: '';
  position: absolute;
  top: 29px;
  left: 9%;
  right: 9%;
  height: 2px;
  z-index: -1;
  background-image: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
}

.panel-step {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 16px 22px;
  text-align: center;
  transition: transform .2s var(--ease-mid), box-shadow .2s var(--ease-mid), border-color .2s var(--ease-mid);
}

.panel-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.panel-step-num {
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(226, 87, 143, .32);
}

.panel-step h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 15.5px;
  color: var(--purple);
  margin: 0 0 8px;
  line-height: 1.3;
}

.panel-step p {
  font-size: 12.5px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   TRUST / TRANSPARENCY BAND
   ============================================================ */
.trust-band {
  background: var(--purple-pale);
}

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 26px;
  border: 1.5px solid var(--border);
}

.trust-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pink-wash);
  color: var(--pink-dark, var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.trust-card h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--purple);
  margin: 0 0 8px;
}

.trust-card p {
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   OFFER BANNER
   ============================================================ */
.offer-banner {
  background: linear-gradient(120deg, var(--pink) 0%, #f0a4bf 100%);
  border-radius: var(--r-lg);
  padding: 38px 42px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.offer-banner h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 6px;
}

.offer-banner p {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 14.5px;
}

.offer-code {
  font-family: var(--ff-body);
  font-weight: 800;
  letter-spacing: .06em;
  background: rgba(255, 255, 255, .2);
  border: 1.5px dashed rgba(255, 255, 255, .7);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  margin: 0 3px;
}

/* ============================================================
   BLOG CARDS (blog cross-link) — copied from blog.min.css so the
   shop page renders identical cards to the /blog/ "Recent articles"
   grid. Keep in sync if blog.min.css's .blog-card is ever updated.
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.blog-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow var(--ease-mid), transform var(--ease-mid), border-color var(--ease-mid);
}

.blog-card:hover {
  border-color: var(--pink);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.blog-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--purple-pale);
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.blog-card:hover .blog-card__img img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: 22px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 18.5px;
  line-height: 1.3;
  color: var(--purple);
}

.blog-card__title a {
  color: inherit;
  transition: color var(--ease);
}

.blog-card__title a:hover {
  color: var(--pink);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-light);
}

.blog-card__meta a {
  color: inherit;
  font-weight: 600;
  transition: color var(--ease);
}

.blog-card__meta a:hover {
  color: var(--pink);
}

.blog-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-card__meta svg {
  color: var(--pink);
  flex-shrink: 0;
}

.blog-card__excerpt {
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.65;
  flex: 1;
}

.blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pink);
  margin-top: 4px;
  transition: gap var(--ease);
}

.blog-card__cta:hover {
  gap: 10px;
}

/* ============================================================
   FOOTER DISCLAIMER (affiliate note under the shared site footer)
   ============================================================ */
.shop-footer-disclaimer {
  font-size: 12px;
  line-height: 1.7;
  max-width: 900px;
  color: var(--ink-light);
  margin: 0 auto;
  padding: 18px 0 48px;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .cat-grid,
  .product-grid,
  .trust-cards,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-hero .shop-hero__inner {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
    min-height: 240px;
  }

  .panel-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .panel-steps::before {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero-trustbar {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .shop-section {
    padding: 52px 0;
  }

  .cat-grid,
  .product-grid,
  .trust-cards,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .panel-steps {
    grid-template-columns: 1fr;
  }

  .offer-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   PRODUCT CARD CTA - "More Info" / "View Product" buttons.
   Scoped to .btn-product-cta so it never touches the sitewide
   .btn-pink used in the hero, panel band etc. Applies to all
   product listings (shop home, category display, etc).
   ============================================================ */
.btn-product-cta {
  width: 100%;
  font-size: 15px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
}


/* ============================================================
   PRODUCT DESCRIPTION - clamp to 2 lines across all listings
   ============================================================ */
.product-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   PRODUCT GRID - 4-across variant. Used on category display and
   the shop home listings. Same responsive collapse points as the
   base .product-grid (2-up at 1080px, 1-up at 640px).
   ============================================================ */
.product-grid--4col {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1080px) {
  .product-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .product-grid--4col {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   HERO IMAGE — stacking fix. The shared .page-hero::after fade
   (defined in main.min.css, sitewide) is absolutely positioned so
   it paints above normal-flow content regardless of DOM order —
   including .hero-image. That straight-edged fade was clipping the
   image's rounded bottom corners. Lifting .hero-image into its own
   stacking context (above the fade's auto z-index) fixes this
   without touching the shared .page-hero::after rule.
   ============================================================ */
.hero-image {
  position: relative;
  z-index: 2;
}

/* ============================================================
   HERO — NARROW IMAGE VARIANT
   Used on the single-item display pages (shop category, brand
   and symptom display.php) so the hero image no longer drives
   page depth. Additive only — the base .shop-hero__inner rule
   above is untouched. Overrides the column ratio and hero-image
   min-height above the existing 1080px breakpoint where the
   layout already collapses to a single stacked column.
   ============================================================ */
@media (min-width: 1081px) {
  .shop-hero .shop-hero__inner--narrow-image {
    grid-template-columns: 3fr 1fr;
  }

  .shop-hero__inner--narrow-image .hero-image {
    aspect-ratio: 3 / 2;
    min-height: 0;
  }

  /* .page-hero__sub carries a fixed 46ch cap for the default hero
     layout — release it here so the description actually uses the
     wider 3fr column instead of wrapping at the old narrow width. */
  .shop-hero__inner--narrow-image .page-hero__sub {
    max-width: none;
  }
}
/* ============================================================
   shop-search.min.css
   Page-specific styles for /shop/search/ (product search & filter).
   Assumes utilities.css, main.css and shop.min.css are already
   loaded (reuses .wrap, .page-hero, .product-grid, .product-card,
   .product-media, .product-body, .product-title, .product-desc,
   .price, .badge, .btn-pink, .btn-outline-purple).
   All new rules here use the ss- prefix to avoid collisions.
   ============================================================ */

/* ── Compact header (shorter than the full shop hero) ─────────── */
.ss-header {
  background: var(--purple);
  color: var(--white);
  padding: 48px 0 36px;
}
.ss-header .breadcrumbs { margin-bottom: 16px; }
.ss-header__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  margin-bottom: 6px;
}
.ss-header__title em { font-style: normal; color: var(--pink); }
.ss-header__count {
  font-size: 14px;
  color: rgba(255,255,255,.65);
}
.ss-header__count strong { color: var(--gold); font-weight: 600; }

/* ── Page body: sidebar + results layout ───────────────────────── */
.ss-body {
  background: var(--off);
  padding: 48px 0 100px;
}
.ss-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.ss-layout > * { min-width: 0; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.ss-sidebar {
  background: var(--white);

  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.ss-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ss-sidebar__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 17px;
  color: var(--purple);
}
.ss-clear-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pink);
}
.ss-clear-link:hover { color: var(--pink-mid); text-decoration: underline; }

#ss-filter-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.ss-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.ss-group:last-of-type {
  padding-bottom: 0;
  border-bottom: none;
}
.ss-group__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* Text search field */
.ss-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 6px 4px 16px;
  transition: border-color var(--ease);
}
.ss-search-field:focus-within { border-color: var(--pink); }
.ss-search-field svg { color: var(--ink-light); flex-shrink: 0; }
.ss-search-field input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--ff-body);
  font-size: 13.5px;
  color: var(--ink);
  padding: 9px 0;
  min-width: 0;
}
.ss-search-field input::placeholder { color: var(--ink-light); }
.ss-search-field button {
  border: none;
  background: var(--pink);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--ease);
}
.ss-search-field button:hover { background: var(--pink-mid); }

/* Offers-only checkbox */
.ss-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 4px;
  font-size: 13.5px;
  color: var(--ink-mid);
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: background var(--ease);
}
.ss-check:hover { background: var(--pink-wash); }
.ss-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--pink);
  flex-shrink: 0;
  cursor: pointer;
}

/* Price range */
.ss-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ss-price-row input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--ink);
  min-width: 0;
}
.ss-price-row input:focus { outline: none; border-color: var(--pink); }
.ss-price-row span { color: var(--ink-light); font-size: 12px; flex-shrink: 0; }

/* Offers-only toggle re-uses .ss-check styling */

.ss-apply-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--ff-body);
  font-size: 13.5px;
  font-weight: 600;
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--ease);
}
.ss-apply-btn:hover { background: var(--pink-mid); }

/* Mobile filter toggle button — hidden on desktop */
.ss-mobile-filter-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 12px 18px;
  font-family: var(--ff-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--purple);
  cursor: pointer;
  margin-bottom: 20px;
}

/* ── Results column ─────────────────────────────────────────── */
.ss-results { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.ss-results__toolbar {

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ss-results__count {
  font-size: 13.5px;
  color: var(--ink-light);
  font-weight: 600;
}
.ss-sort-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 10px;
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}
.ss-sort-select:focus { outline: none; border-color: var(--pink); }

/* Active filter chips */
.ss-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ss-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-pale);
  padding: 6px 8px 6px 14px;
  border-radius: var(--r-pill);
}
.ss-active-chip a {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(53,43,83,.12);
  color: var(--purple);
  font-size: 11px;
  line-height: 1;
}
.ss-active-chip a:hover { background: var(--purple); color: var(--white); }

.ss-clear-all {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--pink);
  border: 1.5px solid var(--pink);
  transition: background var(--ease), color var(--ease);
}
.ss-clear-all:hover { background: var(--pink); color: var(--white); }

/* No results */
.ss-no-results {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px 32px;
  text-align: center;
}
.ss-no-results h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 21px;
  color: var(--purple);
  margin-bottom: 8px;
}
.ss-no-results p {
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 20px;
}

/* Pagination */
.ss-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.ss-page-link {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
  background: var(--white);
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.ss-page-link:hover { border-color: var(--pink); color: var(--pink); }
.ss-page-link.is-active {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
}
.ss-page-link.is-disabled {
  opacity: .4;
  pointer-events: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ss-layout { grid-template-columns: 1fr; }
  .ss-mobile-filter-btn { display: flex; }
  .ss-sidebar {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 300;
    border-radius: 0;
    max-width: 340px;
    height: 100vh;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: var(--shadow-xl);
  }
  .ss-sidebar.is-open { transform: translateX(0); }
  .ss-sidebar__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: transparent;
    cursor: pointer;
    color: var(--ink-mid);
  }
  .ss-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30,24,38,.5);
    z-index: 290;
  }
  .ss-sidebar-overlay.is-open { display: block; }
}
@media (min-width: 901px) {
  .ss-sidebar__close { display: none; }
}
@media (max-width: 640px) {
  .ss-header { padding: 36px 0 28px; }
  .ss-body { padding: 32px 0 70px; }
  .ss-results__toolbar { flex-direction: column; align-items: flex-start; }
}
/* ============================================================
   PRODUCT DISPLAY PAGE (PDP)  — /shop/products/[name_link]
   Reuses .breadcrumbs (main.min.css), .product-grid/.product-card/
   .badge/.badge-offer/.price/.price-code/.btn-pink/.btn-outline-purple/
   .leaving-note/.eyebrow/.h1/.h2 (shop.min.css + sitewide). Everything
   below is new, page-specific to the PDP.
   ============================================================ */

.pdp-breadcrumb-strip { background: var(--white); border-bottom: 1px solid var(--border); }
.pdp-breadcrumb-strip .breadcrumbs { padding: 16px 0; margin-bottom: 0; }
.pdp-breadcrumbs, .pdp-breadcrumbs a { color: var(--ink-light); }
.pdp-breadcrumbs a:hover { color: var(--pink-mid); }
.pdp-breadcrumbs span[aria-current] { color: var(--ink); font-weight: 600; }

.pdp-hero { background: var(--white); padding: 48px 0 64px; overflow-x: hidden; }
.pdp-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: flex-start; }
.pdp-grid > * { min-width: 0; }

/* Image */
.pdp-gallery { position: sticky; top: calc(var(--nav-h) + 20px); width: 100%; min-width: 0; }
.pdp-main-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--purple-pale);
  box-shadow: var(--shadow-sm);
}
.pdp-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pdp-badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 6px; }

.pdp-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .92);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.pdp-nav-arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.06); }
.pdp-nav-arrow--prev { left: 12px; }
.pdp-nav-arrow--next { right: 12px; }

/* Scrolling thumbnail strip — populated from every image found in the
   product's /uploads/shop/products/{id}/ folder. Only rendered when
   there's more than one image. */
.pdp-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px;
  margin-top: 14px;
  scrollbar-width: none;
}
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb {
  flex: 0 0 auto;
  width: 76px;
  aspect-ratio: 1/1;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  padding: 0;
  background: var(--purple-pale);
  cursor: pointer;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb:hover { transform: translateY(-2px); }
.pdp-thumb.is-active { border-color: var(--pink); }

/* Buy panel */
.pdp-info { display: flex; flex-direction: column; gap: 18px; }
.pdp-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.pdp-title { font-size: clamp(26px, 3vw, 34px); color: var(--ink); margin: 2px 0 0; }
.pdp-sub { color: var(--ink-mid); font-size: 14.5px; line-height: 1.65; }

.pdp-overview {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.pdp-overview li { display: flex; gap: 10px; font-size: 13.8px; color: var(--ink-mid); line-height: 1.55; }
.pdp-overview li::before { content: '✓'; color: var(--purple-mid); font-weight: 700; flex-shrink: 0; }

.pdp-offer-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pink-wash);
  border: 1.5px solid rgba(226, 28, 118, .2);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--pink-mid);
  font-weight: 600;
  line-height: 1.5;
}
.pdp-offer-banner svg { flex-shrink: 0; color: var(--pink); }

.pdp-price-block { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp-price-now { font-family: var(--ff-display); font-size: 30px; font-weight: 600; color: var(--purple); }

.pdp-buy-actions { display: flex; flex-direction: column; gap: 10px; }

.pdp-trust-row { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 16px; }
.pdp-trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-mid); }
.pdp-trust-item svg { color: var(--purple-mid); flex-shrink: 0; }

/* Details accordion */
.pdp-details { background: var(--off); padding: 56px 0 76px; }
.pdp-details-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.pdp-details-nav {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.pdp-details-nav p { font-family: var(--ff-display); color: var(--purple); font-size: 16px; margin: 0 0 10px; }
.pdp-details-nav a { display: block; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--ink-mid); }
.pdp-details-nav a:first-of-type { border-top: none; }
.pdp-details-nav a:hover { color: var(--pink-mid); }

.pdp-details-nav-select {
  display: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--off) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23352B53' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 40px 13px 16px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  cursor: pointer;
}
.pdp-details-nav-select:focus { outline: none; border-color: var(--pink); }

.pdp-accordion { display: flex; flex-direction: column; gap: 12px; }
.pdp-acc-item { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.pdp-acc-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--ff-display);
  font-size: 17px;
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.pdp-acc-item summary::-webkit-details-marker { display: none; }
.pdp-acc-item summary::after { content: '+'; font-size: 22px; color: var(--pink); font-weight: 400; flex-shrink: 0; }
.pdp-acc-item[open] summary::after { content: '\2013'; }
.pdp-acc-body { padding: 0 24px 24px; color: var(--ink-mid); font-size: 14.5px; line-height: 1.75; }
.pdp-acc-body p { margin: 0 0 14px; }
.pdp-acc-body p:last-child { margin-bottom: 0; }
.pdp-acc-body ul { margin: 0 0 14px 4px; display: flex; flex-direction: column; gap: 8px; }
.pdp-acc-body ul li { display: flex; gap: 10px; }
.pdp-acc-body ul li::before { content: '•'; color: var(--pink); flex-shrink: 0; }

/* Fix: display:flex on <li> was splitting rich-text content (e.g. <strong>label</strong>: text)
   into separate anonymous flex items that each wrapped independently, breaking the bullet
   text into a staggered two-column layout. Switch to block + hanging indent instead. */
.pdp-acc-body ul li { display: block; gap: 0; position: relative; padding-left: 18px; }
.pdp-acc-body ul li::before { position: absolute; left: 0; top: 0; }

/* Defensive reset for legacy WYSIWYG markup dropped into these rich-text fields */
.pdp-acc-body .row { display: block !important; margin: 0 !important; }
.pdp-acc-body [class*="col-"] { width: 100% !important; padding: 0 !important; float: none !important; }
.pdp-acc-body table { width: 100%; max-width: 100%; border-collapse: collapse; }
.pdp-acc-body td { padding: 6px 10px; }
.pdp-acc-body img { max-width: 100%; height: auto; border-radius: var(--r-sm); }

/* Review CTA — placeholder until the Review Panel product-review table is wired in */
.pdp-review-cta { background: var(--pink-wash); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 34px; text-align: center; }
.pdp-review-cta strong { display: block; font-family: var(--ff-display); font-size: 19px; color: var(--purple); margin-bottom: 8px; }
.pdp-review-cta p { font-size: 13.5px; color: var(--ink-mid); max-width: 52ch; margin: 0 auto 18px; line-height: 1.6; }


/* ── PDP responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .pdp-main-img { max-width: 460px; margin: 0 auto; }
  .pdp-details-layout { grid-template-columns: 1fr; }
  .pdp-details-nav { position: static; }
  .pdp-details-nav p { display: none; }
  .pdp-details-nav-links { display: none; }
  .pdp-details-nav-select { display: block; }
}
@media (max-width: 640px) {
  .pdp-hero { padding: 16px 0 32px; }
  .pdp-breadcrumb-strip { display: none; }
  .pdp-nav-arrow { width: 36px; height: 36px; }
  /* Belt-and-braces containment, same pattern as .town-body etc. */
  .pdp-grid, .pdp-gallery, .pdp-main-img, .pdp-thumbs { max-width: 100%; }
}