/**
 * Storefront layout. Colors and type come from tokens.css, which was extracted
 * from the live Shopify theme — keep visual decisions there, structure here.
 */

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

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--font-body-weight);
  font-size: var(--font-size-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  color: var(--color-heading);
  line-height: 1.2;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--color-header-background);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text-light) 30%, transparent);
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  color: var(--color-header-heading);
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
}

.site-header nav a {
  color: var(--color-nav-text);
}

/* Product grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.card h2 {
  font-size: 1.0625rem;
  margin: 0.75rem 0 0.25rem;
}

.card:hover {
  text-decoration: none;
}

.card:hover h2 {
  text-decoration: underline;
}

.card-noimage {
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--color-text-light) 15%, transparent);
  border-radius: 4px;
}

.price {
  color: var(--color-ink);
  font-weight: 700;
  margin: 0;
}

/* Product page */

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .product {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.product-media {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

/*
 * Every product photo sits on an explicit white canvas. The source images are
 * a mix of transparent PNGs and baked-in white backgrounds; rendering both on
 * pure white makes them indistinguishable without editing the files.
 */
.media-main {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-text-light) 20%, transparent);
  border-radius: 10px;
}

.media-main img,
.media-main .img-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.media-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x proximity;
}

.media-thumb {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  padding: 4px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-text-light) 22%, transparent);
  border-radius: 8px;
  cursor: pointer;
  scroll-snap-align: start;
}

.media-thumb img,
.media-thumb .img-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  font-size: 0.5rem;
  padding: 0;
}

.media-thumb.is-active {
  border-color: var(--color-button-background);
  box-shadow: 0 0 0 1px var(--color-button-background);
}

.product h1 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.product .price {
  font-size: 1.375rem;
  margin: 0.5rem 0 1.5rem;
}

.buy {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.9rem 2rem;
  border: 0;
  border-radius: 3px;
  color: var(--color-button-text);
  background: var(--color-button-background);
}

.buy:hover {
  filter: brightness(0.93);
}

.buy:disabled {
  opacity: 0.6;
  cursor: default;
}

.product-description {
  margin-top: 2rem;
}

/*
 * The product copy comes from Shopify and carries the old theme's classes
 * (Product__Benefits-Icons and friends). These rules reimplement just enough of
 * Prestige's layout that the benefit-icon rows do not collapse into a stack of
 * full-width images.
 */
.product-description :is(img) {
  display: inline-block;
}

.product-description .Product__Benefits-Icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.product-description .Product__Benefits-Icons .fL {
  flex: 0 0 auto;
  width: 96px;
  text-align: center;
}

.product-description .Product__Benefits-Icons img {
  width: 56px;
  height: auto;
  margin: 0 auto;
}

.product-description .Product__Benefits-Icons label {
  display: block;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--color-text-light);
}

.product-description .clearfix {
  display: none;
}

/* Cart */

.cart-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text-light) 25%, transparent);
}

.cart-row input {
  width: 4.5rem;
  padding: 0.4rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-background);
  border: 1px solid color-mix(in srgb, var(--color-text-light) 45%, transparent);
  border-radius: 3px;
}

.cart-row button {
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--color-text-light);
  background: none;
  border: 0;
  text-decoration: underline;
}

.cart-total {
  font-size: 1.125rem;
}

.cart-note {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

[data-cart-error] {
  color: var(--color-error);
}

/* Footer */

.site-footer {
  margin-top: 4rem;
  padding: 2rem 1.25rem;
  background: var(--color-footer-band);
  color: var(--color-footer-text);
  border-top: 1px solid color-mix(in srgb, var(--color-text-light) 30%, transparent);
}

.site-footer p {
  max-width: 60ch;
  margin: 0 auto;
  font-size: 0.8125rem;
  text-align: center;
}

/* Collections */

.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.collection-index {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
}

.collection-index li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text-light) 25%, transparent);
}

.collection-index a {
  font-weight: 700;
}

.muted {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* Sold out */

.badge-soldout {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  color: var(--color-text-light);
  background: color-mix(in srgb, var(--color-text-light) 18%, transparent);
  vertical-align: middle;
}

/*
 * Stand-in for an image that failed to load — a Shopify CDN URL that has
 * stopped resolving, or the preview build, where the sandbox blocks external
 * hosts. Sized like the image it replaces so the layout does not jump.
 */
.img-fallback {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--color-text-light);
  background: color-mix(in srgb, var(--color-text-light) 12%, transparent);
  border-radius: 4px;
}

/* ============================================================
   Conversion layer: announce bar, hero, trust bar, tiles,
   buy box, sections. Palette still comes from tokens.css.
   ============================================================ */

.announce {
  background: var(--color-secondary-background);
  color: var(--color-secondary-text);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.5rem 1.25rem;
}

main.wide {
  max-width: 1240px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-button-background);
  margin: 0 0 0.5rem;
}

.section {
  margin-top: 4rem;
}

/*
 * A tinted band visually separates a section from its neighbors. Applied to
 * alternating sections so the page reads as distinct blocks instead of one
 * long white column.
 */
.band {
  background: var(--color-band);
  border: 1px solid var(--color-band-border);
  border-radius: 16px;
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 2.75rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-heading {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

.section-head .section-heading {
  margin-bottom: 1.5rem;
}

.btn-text {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-button-background);
  white-space: nowrap;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--color-band) 0%, var(--color-band-aqua) 60%, var(--color-band-mint) 100%);
  border: 1px solid var(--color-band-border);
  border-radius: 16px;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    padding: 3rem clamp(2rem, 5vw, 3.5rem);
  }
}

.hero h1 {
  font-size: clamp(1.875rem, 4.4vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 22ch;
}

.hero-body {
  font-size: 1.0625rem;
  color: var(--color-text-light);
  max-width: 46ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-actions .buy {
  display: inline-block;
  text-decoration: none;
}

.hero-actions .buy:hover {
  text-decoration: none;
}

.hero-media {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.hero-media img,
.hero-media .img-fallback {
  border-radius: 10px;
}

/* Trust bar */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: color-mix(in srgb, var(--color-text-light) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-text-light) 22%, transparent);
  border-radius: 8px;
  overflow: hidden;
}

@media (min-width: 720px) {
  .trust-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Rotating brand accents: blue, green, aqua, orange — one per cell. */
.trust-item:nth-child(4n + 1) {
  box-shadow: inset 0 3px 0 var(--color-button-background);
}

.trust-item:nth-child(4n + 2) {
  box-shadow: inset 0 3px 0 var(--color-green-bright);
}

.trust-item:nth-child(4n + 3) {
  box-shadow: inset 0 3px 0 var(--color-aqua-bright);
}

.trust-item:nth-child(4n + 4) {
  box-shadow: inset 0 3px 0 var(--color-orange);
}

.trust-item {
  background: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trust-item strong {
  font-size: 0.9375rem;
  color: var(--color-heading);
}

.trust-item span {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* Category tiles */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* Same rotating accents as the trust bar, so the system reads as deliberate. */
.tile:nth-child(4n + 1) {
  box-shadow: inset 0 3px 0 var(--color-button-background);
}

.tile:nth-child(4n + 2) {
  box-shadow: inset 0 3px 0 var(--color-green-bright);
}

.tile:nth-child(4n + 3) {
  box-shadow: inset 0 3px 0 var(--color-aqua-bright);
}

.tile:nth-child(4n + 4) {
  box-shadow: inset 0 3px 0 var(--color-orange);
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--color-text-light) 28%, transparent);
  border-radius: 8px;
  background: var(--color-background);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tile:hover {
  text-decoration: none;
  border-color: var(--color-button-background);
  transform: translateY(-2px);
}

.tile strong {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  color: var(--color-heading);
}

.tile span {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.tile-count {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.75rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-button-background) !important;
  font-weight: 700;
}

/* Product cards get a surface so the grid reads as a set */

.card {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.25rem;
}

.card > img,
.card > .img-fallback,
.card > .card-noimage {
  border-radius: 8px;
  /* White, not tinted: half the photos have white baked in, so any tint shows
     them as white boxes while transparent PNGs pick up the tint. */
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-text-light) 15%, transparent);
  transition: transform 0.2s ease;
}

.card:hover > img,
.card:hover > .img-fallback {
  transform: scale(1.015);
}

/* Buy box */

.buy-box {
  border: 1px solid color-mix(in srgb, var(--color-text-light) 26%, transparent);
  border-radius: 10px;
  padding: 1.5rem;
  background: var(--color-background);
}

@media (min-width: 900px) {
  .buy-box {
    position: sticky;
    top: 1.25rem;
  }
}

.buy-box h1 {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  letter-spacing: -0.01em;
}

.buy-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 0.875rem;
}

.qty input {
  width: 4.5rem;
  height: 100%;
  padding: 0.6rem 0.5rem;
  font: inherit;
  font-weight: 600;
  text-align: center;
  color: var(--color-text);
  background: var(--color-background);
  border: 1px solid color-mix(in srgb, var(--color-text-light) 45%, transparent);
  border-radius: 3px;
}

.buy-row .buy {
  flex: 1 1 auto;
}

.ship-note {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-green);
  margin: 0 0 1rem;
}

.assurance {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--color-text-light) 22%, transparent);
  display: grid;
  gap: 0.5rem;
}

.assurance li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.45;
}

.assurance li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -0.05rem;
  font-weight: 700;
  color: var(--color-button-background);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Cart affordances */

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-button-text);
  background: var(--color-button-background);
}

.ship-progress {
  margin: 0 0 1rem;
}

.ship-progress-bar {
  height: 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-text-light) 20%, transparent);
  overflow: hidden;
}

.ship-progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--color-aqua-bright), var(--color-green-bright));
  transition: width 0.25s ease;
}

.ship-progress p {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.site-footer .disclaimer {
  color: var(--color-footer-text);
}

/* Footer nav and content pages */

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.footer-nav a {
  color: var(--color-footer-heading);
  font-weight: 600;
}

.page-body {
  max-width: 70ch;
}

.page-body :is(h2, h3) {
  margin-top: 2rem;
}

.page-body :is(p, li) {
  color: var(--color-text);
}

/* Reviews */

.stars {
  color: #e8a020;
  letter-spacing: 0.06em;
  font-size: 0.95em;
}

.rating-line {
  margin: 0 0 0.75rem;
}

.rating-line a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.review-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.review {
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--color-text-light) 26%, transparent);
  border-radius: 8px;
  background: var(--color-background);
}

.review-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.review-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-heading);
  line-height: 1.3;
}

.review-body {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}

.review-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* Reviews drawer — recreates the Stamped tab from the old theme, natively */

.drawer-tab {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 60;
  transform: rotate(180deg) translateY(50%);
  writing-mode: vertical-rl;
  padding: 1rem 0.55rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-button-text);
  background: var(--color-button-background);
  border: 0;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.drawer-tab:hover {
  filter: brightness(0.93);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 61;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#reviews-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 62;
  width: min(420px, 92vw);
  background: var(--color-background);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.22);
  transform: translateX(105%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

#reviews-drawer-root.open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

#reviews-drawer-root.open #reviews-drawer {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  #reviews-drawer,
  .drawer-overlay {
    transition: none;
  }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-text-light) 30%, transparent);
}

.drawer-head > div > strong {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  color: var(--color-heading);
}

.drawer-summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  margin-top: 0.15rem;
}

.drawer-close {
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.2rem 0.55rem;
  border: 0;
  background: none;
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: 4px;
}

.drawer-close:hover {
  background: color-mix(in srgb, var(--color-text-light) 15%, transparent);
  color: var(--color-text);
}

.drawer-list {
  overflow-y: auto;
  padding: 1rem 1.25rem 2rem;
  display: grid;
  gap: 1rem;
}

.drawer-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-text-light) 25%, transparent);
  border-radius: 8px;
}

.drawer-thumb img,
.drawer-thumb .img-fallback,
.drawer-thumb .card-noimage {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--color-text-light) 22%, transparent);
  font-size: 0.5rem;
  padding: 0.2rem;
}

.drawer-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.drawer-card .review-title {
  display: block;
  margin-bottom: 0.25rem;
}

.drawer-card .review-body {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.drawer-product {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Product subtitle + breadcrumb, matching the live page */

.product-subtitle {
  margin: -0.5rem 0 0.5rem;
  padding-bottom: 0.5rem;
  color: var(--color-text-light);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text-light) 30%, transparent);
}

/* Content tabs (What is it? / Ingredients / How to use / FAQ / Benefits) */

.product-tabs {
  margin-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--color-text-light) 26%, transparent);
}

.product-tabs details {
  border-bottom: 1px solid color-mix(in srgb, var(--color-text-light) 26%, transparent);
}

.product-tabs summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-heading);
}

.product-tabs summary::-webkit-details-marker {
  display: none;
}

.product-tabs summary::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--color-button-background);
}

.product-tabs details[open] summary::after {
  content: "–";
}

.product-tabs summary:hover {
  color: var(--color-button-background);
}

.tab-body {
  padding: 0 0.25rem 1.25rem;
  font-size: 0.9375rem;
}

.tab-body h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.35rem;
}

/*
 * Benefit icon grid inside product descriptions. Column counts are chosen so
 * every row is full: 4-item grids run 2x2 (then one row of 4 on desktop),
 * 6-item grids run 2x3 (then 3x2 on desktop) — never a ragged last row.
 */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1rem;
  margin: 2.25rem 0 0.75rem;
}

@media (min-width: 640px) {
  .benefit-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefit-grid[data-count="4"] {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-grid figure {
  margin: 0;
  text-align: center;
}

.benefit-grid img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.5rem;
}

.benefit-grid figcaption {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.35;
}

/* Thank-you page — Shopify order-status layout */

.thankyou {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 860px) {
  .thankyou {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }
}

.ty-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.ty-head h1 {
  margin: 0;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
}

.ty-ref {
  margin: 0 0 0.15rem;
  font-size: 0.875rem;
}

.ty-check {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-green-bright);
  color: var(--color-green);
  display: grid;
  place-items: center;
  font-size: 1.375rem;
  font-weight: 700;
}

.ty-panel {
  border: 1px solid var(--color-band-border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: #fff;
}

.ty-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.ty-panel h3 {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.ty-panel p {
  margin: 0;
  font-size: 0.9375rem;
}

.ty-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0 1.5rem;
}

.ty-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.ty-actions .buy {
  text-decoration: none;
  display: inline-block;
}

.ty-summary {
  background: var(--color-band);
  border: 1px solid var(--color-band-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.ty-items {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--color-band-border);
  display: grid;
  gap: 0.75rem;
}

.ty-items li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.9375rem;
}

.ty-qty {
  flex: 0 0 auto;
  min-width: 1.6rem;
  text-align: center;
  background: var(--color-button-background);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
}

.ty-name {
  flex: 1;
}

.ty-totals {
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.ty-totals > div {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
}

.ty-totals dt {
  color: var(--color-text-light);
}

.ty-totals dd {
  margin: 0;
}

.ty-total {
  border-top: 1px solid var(--color-band-border);
  padding-top: 0.6rem;
  margin-top: 0.35rem;
  font-weight: 700;
  font-size: 1.0625rem !important;
  color: var(--color-ink);
}

/* Review form */

.review-form-wrap {
  margin-top: 1.5rem;
}

.review-form-wrap summary {
  cursor: pointer;
  list-style: none;
}

.review-form-wrap summary::before {
  content: "✎ ";
}

.review-form {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-band-border);
  border-radius: 10px;
  background: var(--color-band);
  display: grid;
  gap: 0.9rem;
  max-width: 34rem;
}

.review-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.review-form input,
.review-form textarea {
  font: inherit;
  color: var(--color-text);
  padding: 0.55rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--color-text-light) 40%, transparent);
  border-radius: 6px;
  background: #fff;
}

/* Star picker: reversed order + sibling selector = highlight up to the pick. */
.rating-picker {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.1rem;
}

.rating-picker legend {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0.3rem;
}

.rating-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-picker label {
  font-size: 1.75rem;
  color: color-mix(in srgb, var(--color-text-light) 45%, transparent);
  cursor: pointer;
  line-height: 1;
}

.rating-picker input:checked ~ label,
.rating-picker label:hover,
.rating-picker label:hover ~ label {
  color: var(--color-gold);
}

/* Honeypot: present for bots, absent for people. */
.review-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.review-form-note {
  font-size: 0.8125rem;
  margin: 0;
}

[data-review-result] {
  font-weight: 600;
  color: var(--color-green);
  margin: 0;
}

/* Science-backed strip */

.science-bar .centered {
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.0625rem;
}

.science-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.science-item {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
  padding: 0 0.5rem;
}

.science-item p {
  margin: 0;
}

/* The science strip sits on the mint band with per-item accent colors. */
.science-bar.band {
  background: var(--color-band-mint);
  border-color: var(--color-band-mint-border);
}

.science-icon {
  width: 34px;
  height: 34px;
  display: block;
  margin: 0 auto 0.65rem;
  color: var(--color-button-background);
}

.science-item:nth-child(4n + 1) .science-icon {
  color: var(--color-green-bright);
}

.science-item:nth-child(4n + 2) .science-icon {
  color: var(--color-aqua-bright);
}

.science-item:nth-child(4n + 3) .science-icon {
  color: var(--color-button-background);
}

.science-item:nth-child(4n + 4) .science-icon {
  color: var(--color-sale);
}

/* An entry without an icon keeps the original bar accent. */
.science-item:not(:has(.science-icon))::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-button-background);
  margin: 0 auto 0.75rem;
}
