/* The shop (shop.doctorberan.com; views/layouts/shop.php, modules/orders/views/shop-*.php). Built on the coming soon
   page: the hexagons and soft glow behind the top, the logo on the left. White boxes with anthracite bands (as in the
   admin pages) for the general headings, light grey bands for each product.
   Header: sticky, with a white glass background once the page scrolls under it. Phones (below 768px) a pill with the
   basket and a menu button, the menu sliding down full height; from 768px Shop and Consultations in the middle and the
   globe (Deliver to, Prices in) and basket pills on the right. The basket opens a drop-down with what is in it.
   Hero: phones the photo first, then the words; from 576px the words and a square photo side by side (60/40); from
   992px the wide photo turned in 3D like the coming soon window. Products: 1, 2 (576px), 3 (992px), 4 (1200px) a row.
   A product page: its photo and the buying part side by side from 768px. The footer sits on the hexagons at the bottom left. */

/* --- The page --- */
.shop {
  position: relative; /* holds the glow and the hexagons */
  isolation: isolate;
  overflow: clip; /* the turned photo's shadow never widens the page, and the top hexagons never lengthen a short page */
  min-height: 100vh;
  min-height: 100dvh; /* 100vh first for browsers without dvh (see "Browser quirks" in CLAUDE.md) */
  display: flex;
  flex-direction: column;
  padding: var(--sp-4) var(--gutter) 0; /* the header's own padding makes up the rest of the space at the top */
  background-color: var(--c-off-white);
}

.shop::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--shop-hex-h);
  z-index: -2;
  background-image: radial-gradient(60% 60% at 80% 0, var(--c-blue-glow), transparent 70%);
}

.shop__hex {
  inset: 0 0 auto;
  height: var(--shop-hex-h);
  z-index: -1;
  background-color: var(--c-hex-shop);
  --hex-fade: radial-gradient(60% 60% at 85% 20%, rgb(0, 0, 0), rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0));
}

/* The same hexagons and glow again at the bottom, from the bottom left, behind the last products and the footer. */
.shop__hex--bottom {
  inset: auto 0 0;
  height: var(--shop-hex-bottom-h);
  --hex-fade: radial-gradient(35% 45% at 5% 100%, rgb(0, 0, 0), rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0)); /* gone well before the top's hexagons, even on a short page */
}

.shop::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--shop-hex-bottom-h);
  z-index: -2;
  background-image: radial-gradient(60% 60% at 20% 100%, var(--c-blue-glow), transparent 70%);
}

.shop__top,
.shop__main,
.shop__foot {
  width: 100%;
  max-width: var(--shop-max);
  margin-inline: auto;
}

.shop__main {
  flex: 1; /* the footer stays at the bottom of short pages */
}

/* --- The anthracite band: the goals' boxes, the drop-downs, the photo's caption. White small capitals on a very faint
   crosshatch (the calendar's linen). --- */
.shop__band {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--sp-8);
  margin: 0;
  padding: var(--sp-2) var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-xxs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  line-height: var(--lh-heading);
  color: var(--c-page);
  background-color: var(--c-anthracite);
}

.shop__band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, var(--c-linen) 0 var(--border-1), transparent var(--border-1) var(--sp-1)),
    repeating-linear-gradient(-45deg, var(--c-linen) 0 var(--border-1), transparent var(--border-1) var(--sp-1));
}

/* --- The partner or clinic bar: for visitors who came from their link (shop-header.php), across the very top of the
   screen, above the header, scrolling away with the page. Anthracite with the bands' faint crosshatch, the name in white
   small capitals, centred, on one line (a long name ends in …). Phones (below 576px) show the name only. --- */
.shop__from {
  position: relative;
  isolation: isolate;
  height: var(--sp-8);
  margin: calc(-1 * var(--sp-4)) calc(-1 * var(--gutter)) var(--sp-4); /* out over the page's padding, edge to edge */
  padding-inline: var(--gutter);
  overflow: hidden;
  line-height: var(--sp-8); /* one line, centred in the bar */
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-align: center;
  text-transform: uppercase;
  color: var(--c-page);
  background-color: var(--c-anthracite);
}

.shop__from::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, var(--c-linen) 0 var(--border-1), transparent var(--border-1) var(--sp-1)),
    repeating-linear-gradient(-45deg, var(--c-linen) 0 var(--border-1), transparent var(--border-1) var(--sp-1));
}

.shop__from .bi {
  margin-right: var(--sp-1);
}

.shop__from-what {
  display: none; /* phones: the name only */
  opacity: 0.7;
}

@media (min-width: 576px) {
  .shop__from-what {
    display: inline;
  }
}

@media (min-width: 992px) {
  .shop__from {
    margin-top: calc(-1 * var(--sp-8)); /* the page's top padding is 32px from here */
  }
}

/* --- The header --- */
.shop__top {
  position: sticky;
  top: 0;
  z-index: 30;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  margin-bottom: var(--sp-2);
}

/* Its white glass, the full width of the screen, shown once the page has scrolled under it (site.js data-sticky). */
.shop__top::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  opacity: 0;
  background-color: var(--c-glass-bar);
  border-bottom: var(--border-1) solid var(--c-glass-bar-line);
  box-shadow: var(--shadow-bar);
  -webkit-backdrop-filter: var(--blur-bar); /* Safari before 18 */
  backdrop-filter: var(--blur-bar);
  transition: opacity var(--duration-base) var(--ease);
}

.shop__top--stuck::before {
  opacity: 1;
}

.shop__home {
  display: flex;
  color: var(--c-text);
}

.shop__home .logo {
  width: auto;
  height: var(--logo-h);
}

/* Shop and Consultations: small capitals, the open one blue and underlined (from 768px). */
.shop__nav {
  display: none;
  justify-content: center;
  gap: var(--sp-8);
}

.shop__nav-link {
  padding-block: var(--sp-1);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-heading);
  border-bottom: var(--border-1) solid transparent;
}

.shop__nav-link:hover {
  color: var(--c-accent-text);
}

.shop__nav-link[aria-current="page"] {
  color: var(--c-accent-text);
  border-bottom: calc(2 * var(--border-1)) solid var(--c-menu-button);
}

.shop__tools {
  position: relative; /* phones: holds the basket's drop-down, the width of the screen less the gutters */
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
}

/* The white glass pills on the right: prices, basket, and on phones the basket with the menu button. */
.shop__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: var(--button-h-sm);
  padding: 0 var(--sp-3);
  font-size: var(--fs-small);
  text-decoration: none;
  color: var(--c-heading);
  background-image: linear-gradient(var(--c-glass-top), var(--c-glass-bottom));
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glass);
  cursor: pointer;
  transition: box-shadow var(--duration-fast) var(--ease);
}

.shop__pill:hover {
  box-shadow: var(--shadow-glass-hover);
}

.shop__count {
  display: inline-grid;
  place-items: center;
  min-width: var(--sp-5);
  height: var(--sp-5);
  padding: 0 var(--sp-1);
  font-size: var(--fs-xxs);
  font-weight: 600;
  color: var(--c-page);
  background-color: var(--c-menu-button);
  border-radius: var(--radius-pill);
}

/* Prices in: the globe pill opens a small box with the band and the two choices (from 768px; in the menu on phones). */
.shop__prices {
  position: relative;
  display: none;
}

.shop__prices > summary {
  list-style: none;
}

.shop__prices > summary::-webkit-details-marker {
  display: none; /* Safari: the triangle of <summary> */
}

.shop__prices-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + var(--sp-2));
  right: 0;
  width: var(--shop-prices-w);
  overflow: clip;
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
}

.shop__prices-panel .shop__switch {
  margin: var(--sp-4);
}

.shop__prices-panel .field {
  margin: var(--sp-4);
}

/* The basket: the bag (and from 768px the word Basket) with how many; it opens the drop-down below. */
.shop__cart {
  height: 100%;
}

.shop__cart-drop {
  height: 100%;
}

.shop__basket {
  list-style: none;
}

.shop__basket::-webkit-details-marker {
  display: none; /* Safari: the triangle of <summary> */
}

.shop__basket-word {
  display: none;
}

.shop__cart-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + var(--sp-2));
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(var(--shop-cart-w), calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - var(--shop-top-h) - var(--sp-4));
  max-height: calc(100dvh - var(--shop-top-h) - var(--sp-4)); /* 100vh first for browsers without dvh */
  overflow: clip;
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
}

.shop__cart-empty {
  padding: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}

.shop__cart-rows {
  overflow-y: auto; /* a long basket scrolls inside the drop-down; the subtotal and Checkout stay in view */
  padding: 0 var(--sp-4);
}

.shop__cart-row {
  display: grid;
  grid-template-columns: var(--sp-12) minmax(0, 1fr) auto;
  gap: var(--sp-3);
  align-items: center;
  padding-block: var(--sp-3);
  border-bottom: var(--border-1) solid var(--c-line);
}

.shop__cart-thumb {
  display: grid;
  place-items: center;
  width: var(--sp-12);
  aspect-ratio: 1;
  overflow: clip;
  font-size: var(--fs-lead);
  color: var(--c-text-muted);
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-1);
}

.shop__cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop__cart-name {
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  color: var(--c-heading);
}

.shop__cart-name:hover {
  color: var(--c-accent-text);
}

.shop__cart-qty {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
  font-size: var(--fs-small);
}

.shop__cart-step {
  display: grid;
  place-items: center;
  width: var(--sp-6);
  height: var(--sp-6);
  font-size: var(--fs-small);
  color: var(--c-text);
  background-color: var(--c-surface);
  border: var(--border-1) solid var(--c-line);
  border-radius: 50%;
  cursor: pointer;
}

.shop__cart-step:hover {
  background-color: var(--c-ground);
}

.shop__cart-step:disabled {
  opacity: 0.4;
  cursor: default;
}

.shop__cart-price {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--c-heading);
}

.shop__cart-total {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4) 0;
  font-weight: 600;
  color: var(--c-heading);
}

.shop__cart-note {
  padding: var(--sp-1) var(--sp-4) 0;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

.shop__cart-checkout {
  margin: var(--sp-4);
}

/* The white glass pill button: every product's Add and a product page's Add to basket. */
.shop__glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--button-h-sm);
  padding: 0 var(--sp-4);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
  color: var(--c-heading);
  background-image: linear-gradient(var(--c-glass-top), var(--c-glass-bottom));
  border: var(--border-1) solid var(--c-glass-edge);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glass);
  cursor: pointer;
  transition: box-shadow var(--duration-fast) var(--ease);
}

.shop__glass:hover {
  box-shadow: var(--shadow-glass-hover);
}

/* Two joined choices, the chosen one filled blue: Prices in (€ Euros, £ Pounds). Each is a button that posts it. */
.shop__switch {
  display: flex;
  padding: var(--sp-1);
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-pill);
}

.shop__switch-option {
  flex: 1;
  padding: var(--sp-2);
  font: inherit;
  font-size: var(--fs-small);
  color: var(--c-text);
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.shop__switch-option:hover {
  background-color: var(--c-ground);
}

.shop__switch-option[aria-pressed="true"] {
  font-weight: 600;
  color: var(--c-menu-button-text);
  background-color: var(--c-menu-button);
}

/* Phones: one pill, the basket and the menu button split by a thin line. */
.shop__phone {
  display: flex;
  align-items: center;
  height: var(--button-h-sm);
  background-image: linear-gradient(var(--c-glass-top), var(--c-glass-bottom));
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glass);
}

.shop__phone .shop__basket {
  height: 100%;
  background: none;
  box-shadow: none;
}

.shop__toggle {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--sp-3);
  color: var(--c-heading);
  font: inherit;
  font-size: var(--fs-lead);
  background: none;
  border: 0;
  border-left: var(--border-1) solid var(--c-line);
  cursor: pointer;
}

.shop__toggle[aria-expanded="true"] .shop__toggle-open,
.shop__toggle:not([aria-expanded="true"]) .shop__toggle-close {
  display: none;
}

.shop__toggle-close {
  font-size: var(--fs-body);
}

/* The phone menu: a full-height white panel under the top bar; the menu button slides it down from behind the bar
   (as the admin pages; no slide with reduced motion, base.css). While it is open the top bar stays fixed at the top
   and the page behind does not scroll. */
.shop__menu {
  position: fixed;
  inset: var(--shop-top-h) 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-6) var(--gutter);
  overflow-y: auto;
  background-color: var(--c-page);
  visibility: hidden; /* hidden from screen readers and the keyboard while closed */
  translate: 0 -100%;
  transition: translate var(--duration-slow) var(--ease), visibility var(--duration-slow);
}

.shop:has(.shop__toggle[aria-expanded="true"]) .shop__menu {
  visibility: visible;
  translate: 0 0;
}

.shop:has(.shop__toggle[aria-expanded="true"]) {
  padding-top: calc(var(--sp-4) + var(--shop-top-h));
}

.shop:has(.shop__toggle[aria-expanded="true"]) .shop__top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  max-width: none;
  margin: 0;
  padding: var(--sp-4) var(--gutter);
  background-color: var(--c-page);
  border-bottom: var(--border-1) solid var(--c-line);
}

.shop:has(.shop__toggle[aria-expanded="true"]) .shop__top::before {
  display: none;
}

body:has(.shop__toggle[aria-expanded="true"]) {
  overflow: hidden;
}

.shop__menu-nav {
  padding-bottom: var(--sp-4);
  border-bottom: var(--border-1) solid var(--c-line); /* the line between the pages and Deliver to */
}

.shop__menu-links {
  display: grid;
  gap: var(--sp-2);
}

.shop__menu-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  font-size: var(--fs-menu);
  font-weight: 500;
  text-decoration: none;
  color: var(--c-text);
  border-radius: var(--radius-1);
}

.shop__menu-link:hover {
  background-color: var(--c-ground);
}

.shop__menu-link[aria-current="page"] {
  color: var(--c-menu-button-text);
  background-color: var(--c-menu-button);
}

.shop__group {
  margin-top: var(--sp-4);
  padding: 0 var(--sp-3) var(--sp-1);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* --- The hero: the words with Help me choose, and Dr. Beran's photo --- */
.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: center;
  margin-bottom: var(--shop-hero-gap);
}

.shop-hero__words {
  display: grid;
  justify-items: start;
  gap: var(--sp-4);
  max-width: var(--soon-text-w);
}

.shop-hero__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-accent-text);
}

.shop-hero__title {
  font-size: var(--fs-h2);
  color: var(--c-heading);
  text-wrap: balance;
}

.shop-hero__lead {
  font-size: var(--fs-body);
  color: var(--c-text-muted);
}

/* The photo in a white box with the anthracite band, turned into the screen like the coming soon window (less below
   992px). Phones: first, wide; 576–991px: square beside the words; from 992px: wide again. */
.shop-hero__stage {
  order: -1;
  min-width: 0;
  perspective: var(--window-depth);
  perspective-origin: 30% 50%;
  padding-block: var(--sp-2); /* room for the turned photo's corners (more from 992px, where it turns more) */
  --turn: var(--window-turn-phone);
}

.shop-hero__photo {
  margin: 0;
  overflow: clip;
  background-color: var(--c-page);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-window);
  transform: rotateY(calc(var(--window-turn-y) * var(--turn))) rotateX(calc(var(--window-turn-x) * var(--turn)));
}

/* Its band in cream with dark words, instead of the anthracite of the goals' boxes. */
.shop-hero__photo .shop__band {
  color: var(--c-heading);
  background-color: var(--c-ground);
  border-bottom: var(--border-1) solid var(--c-line);
}

.shop-hero__photo .shop__band::before {
  display: none;
}

.shop-hero__role {
  display: none; /* Functional health medicine: from 992px, where the band is wide enough */
  font-weight: 400;
  color: var(--c-text-muted);
}

.shop-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover; /* she stands in the middle of the photo, so every shape keeps her centred */
}

/* Help me choose: the bright button opens a box with the goals, each a link down to its box of products. */
.shop-help {
  position: relative;
  margin-top: var(--sp-2);
}

.shop-help > summary {
  list-style: none;
}

.shop-help > summary::-webkit-details-marker {
  display: none; /* Safari: the triangle of <summary> */
}

.shop-help[open] .shop-help__chevron {
  rotate: 180deg;
}

.shop-help__panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + var(--sp-2));
  left: 0;
  width: min(var(--shop-help-w), calc(100vw - 2 * var(--gutter)));
  overflow: clip;
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
}

.shop-help__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-1);
  padding: var(--sp-3);
}

.shop-help__link {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-menu);
  text-decoration: none;
  color: var(--c-text);
  border-radius: var(--radius-1);
}

.shop-help__link:hover {
  background-color: var(--c-ground);
}

.shop-help__link span {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

/* --- A goal's box: the anthracite band with its name and how many products, then the products on off-white --- */
.shop-goal {
  overflow: clip;
  scroll-margin-top: calc(var(--shop-top-h) + var(--sp-4)); /* a link from Help me choose: just under the sticky header */
  background-color: var(--c-off-white);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
}

.shop-goal + .shop-goal {
  margin-top: var(--sp-6);
}

.shop-goal__band {
  min-height: var(--sp-12);
  font-size: var(--fs-xs);
}

.shop-goal__title {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.shop-goal__count {
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--c-on-dark-muted);
}

.shop-goal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-4);
}

/* --- A product: its name on a light grey band, the photo, its line, the price and Add --- */
.shop-card {
  display: flex;
  flex-direction: column;
  overflow: clip;
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
}

.shop-card__name {
  padding: var(--sp-2) var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-xxs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  line-height: var(--lh-heading);
  background-color: var(--c-surface);
  border-bottom: var(--border-1) solid var(--c-line);
}

.shop-card__name a {
  display: flex;
  align-items: center;
  min-height: var(--sp-4);
  text-decoration: none;
  color: var(--c-heading);
}

.shop-card__name a:hover {
  color: var(--c-accent-text);
}

.shop-card__photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  border-bottom: var(--border-1) solid var(--c-line);
}

.shop-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: var(--sp-4);
  object-fit: contain;
}

/* A drawn bottle for a product without a photo yet (shop-bottle.php): a cap, orange on every other product, and a
   teal label with the name, as on the first site. Sized by its box's width. */
.bottle {
  display: grid;
  justify-items: center;
  width: var(--bottle-w);
  filter: drop-shadow(var(--shadow-bottle));
}

.bottle__cap {
  width: 70%;
  aspect-ratio: 3.2;
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-1) var(--radius-1) 0 0;
}

.bottle--orange .bottle__cap {
  background-color: var(--c-bottle-cap);
  border-color: var(--c-bottle-cap);
}

.bottle__body {
  display: grid;
  align-content: center;
  width: 100%;
  aspect-ratio: 0.72;
  padding-inline: var(--sp-1);
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
}

.bottle__band {
  display: grid;
  justify-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-1);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  line-height: var(--lh-heading);
  text-align: center;
  color: var(--c-page);
  background-color: var(--c-bottle-band);
}

.bottle__brand {
  font-size: var(--fs-xxs);
}

.shop-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4);
}

.shop-card__line {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}

.shop-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: auto;
}

.shop-card__price {
  color: var(--c-heading);
}

.shop-empty {
  color: var(--c-text-muted);
}

/* --- A product's page: the path back, the photo box and the buying part, the text boxes, then You might also like --- */
.shop-product__path {
  margin-bottom: var(--sp-6);
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}

.shop-product__path a {
  color: var(--c-accent-text);
  text-decoration: none;
}

.shop-product__path a:hover {
  text-decoration: underline;
}

.shop-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-8);
}

.shop-product__photo {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: clip;
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-window);
}

.shop-product__img {
  display: grid;
  place-items: center;
  flex: 1;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1;
  object-fit: contain;
  padding: var(--sp-8);
}

.shop-product__img .bottle {
  width: var(--bottle-w-lg);
}

.shop-product__buy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}

.shop-product__goal {
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-accent-text);
  background-color: var(--c-chip);
  border-radius: var(--radius-pill);
}

.shop-product__title {
  font-size: var(--fs-h1);
  text-wrap: balance;
}

.shop-product__line {
  font-size: var(--fs-lead);
  color: var(--c-text-muted);
}

.shop-product__price {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--c-heading);
}

/* How many and Add to basket: always on one line, the button taking the rest of the room. */
.shop-product__add {
  display: flex;
  gap: var(--sp-3);
  width: 100%;
}

.shop-product__stepper {
  display: flex;
  flex: none;
  align-items: center;
  height: var(--button-h-lg);
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-pill);
}

.shop-product__step {
  width: var(--sp-10);
  height: 100%;
  font-size: var(--fs-lead);
  color: var(--c-text);
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.shop-product__step:hover {
  background-color: var(--c-ground);
}

.shop-product__quantity {
  width: var(--sp-8);
  font: inherit;
  font-size: var(--fs-body); /* 16px: phones do not zoom in */
  font-weight: 600;
  text-align: center;
  background: none;
  border: 0;
  -moz-appearance: textfield; /* Firefox: no arrows, the - and + do it */
  appearance: textfield;
}

.shop-product__quantity::-webkit-inner-spin-button,
.shop-product__quantity::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none; /* Chrome and Safari: no arrows, the - and + do it */
}

.shop-product__button {
  flex: 1;
  min-width: 0;
  max-width: var(--shop-add-w);
  min-height: var(--button-h-lg);
  font-size: var(--fs-body);
}

/* Three short points, each icon in its own column so a second line starts under the words. */
.shop-product__points {
  display: grid;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
}

.shop-product__points li {
  display: grid;
  grid-template-columns: var(--sp-6) minmax(0, 1fr);
}

.shop-product__points .bi {
  color: var(--c-menu-button);
}

.shop-product__boxes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
  margin-block: var(--sp-8) var(--sp-6);
}

.shop-product__box {
  overflow: clip;
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
}

.shop-product__text {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  font-size: var(--fs-small);
}

/* --- The checkout (shop-basket.php): 1 Your details and 2 Delivery; beside them from 992px Your order and 3 Pay, which
   stay in view together while the page scrolls. Phones: a row at the top jumps down to Your order. --- */
.checkout__title {
  margin-bottom: var(--sp-6);
  font-size: var(--fs-h2);
}

.checkout,
.checkout__steps,
.checkout__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
}

.checkout__box {
  overflow: clip;
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
}

.checkout__band {
  justify-content: flex-start;
}

.checkout__num {
  display: inline-grid;
  place-items: center;
  width: var(--sp-5);
  height: var(--sp-5);
  color: var(--c-anthracite);
  background-color: var(--c-page);
  border-radius: 50%;
}

.checkout__in {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
}

.checkout__two {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start; /* an error under one field must not stretch the field beside it */
}

.checkout__help {
  margin-top: calc(-1 * var(--sp-3));
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

/* Courier or collect: two cards, the chosen one pale blue with a blue edge. */
.checkout .choices__legend {
  font-weight: 600;
  color: var(--c-heading);
}

.checkout .choices .check {
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-small);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
}

.checkout .choices .check:has(:checked) {
  background-color: var(--c-chip);
  border-color: var(--c-menu-button);
  box-shadow: 0 0 0 var(--border-1) var(--c-menu-button);
}

.checkout__jump {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-small);
  text-decoration: none;
  color: var(--c-text);
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
}

.checkout__jump strong {
  color: var(--c-heading);
}

.checkout__order {
  scroll-margin-top: calc(var(--shop-top-h) + var(--sp-4)); /* the jump stops just under the sticky header */
}

.checkout__items-error:empty {
  display: none;
}

.checkout__items-error {
  padding: var(--sp-2) var(--sp-4) 0;
}

.checkout__sums {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-4);
  font-size: var(--fs-small);
}

.checkout__sums div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
}

.checkout__total {
  padding-top: var(--sp-3);
  font-size: var(--fs-lead);
  font-weight: 600;
  color: var(--c-heading);
  border-top: var(--border-1) solid var(--c-line);
}

.checkout__pay {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-5);
}

.checkout__button {
  width: 100%;
  min-height: var(--button-h-lg);
  font-size: var(--fs-body);
  color: var(--c-page); /* white on the green (the main button's own text is dark, for its grey glass) */
  background-image: linear-gradient(var(--c-pay-top), var(--c-pay-bottom));
  border-color: var(--c-pay-bottom);
  box-shadow: var(--shadow-pay);
}

.checkout__button:hover {
  color: var(--c-page);
  background-image: linear-gradient(var(--c-pay-bottom), var(--c-pay-hover));
  border-color: var(--c-pay-hover);
}

/* Greyed out, and not clickable, until the terms are ticked. PHP still checks the tick (pressing Enter in a field
   still sends the form, and then shows "Tick this to go on."). */
.checkout__pay:has(input[name="agree"]:not(:checked)) .checkout__button {
  color: var(--c-text-muted);
  background-image: none;
  background-color: var(--c-surface);
  border-color: var(--c-line);
  box-shadow: none;
  pointer-events: none;
}

.checkout__note {
  display: flex;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

.checkout__empty {
  display: grid;
  justify-items: start;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
}

/* --- The text pages (views/pages/page.php: About, Terms, Privacy, Cookies, in layouts/site.php). The head: the title,
   when it was changed and, on the legal pages, a pill for each (the open one anthracite). Then On this page and the
   text, each a white panel under an anthracite band; from 992px On this page is on the left and stays in view. --- */
.text-page {
  padding-bottom: var(--sp-16);
}

.text-page__head {
  display: grid;
  justify-items: start;
  gap: var(--sp-3);
  margin-block: var(--sp-8);
}

.text-page__title {
  font-size: var(--fs-h1);
  text-wrap: balance;
}

.text-page__updated {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}

.text-page__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.text-page__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--button-h);
  padding-inline: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--c-text);
  text-decoration: none;
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-pill);
}

.text-page__tab:hover {
  border-color: var(--c-anthracite);
}

.text-page__tab--on {
  color: var(--c-page);
  background-color: var(--c-anthracite);
  border-color: var(--c-anthracite);
}

.text-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}

.text-page__contents,
.text-page__panel {
  overflow: hidden;
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
}

.text-page__contents .bi,
.text-page__panel .bi {
  margin-right: var(--sp-1);
}

.text-page__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: var(--sp-2);
  list-style: none;
  counter-reset: section;
}

.text-page__list li {
  counter-increment: section;
}

.text-page__link {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-small);
  color: var(--c-text);
  text-decoration: none;
}

.text-page__link::before {
  content: counter(section, decimal-leading-zero);
  color: var(--c-text-muted);
}

.text-page__link:hover {
  text-decoration: underline;
}

.text-page__body {
  padding: var(--sp-6);
}

.text-page__body > * {
  max-width: var(--text-w);
}

.text-page__body > * + * {
  margin-top: var(--sp-4);
}

.text-page__body h2 {
  margin-top: var(--sp-8);
  font-size: var(--fs-h4);
  scroll-margin-top: var(--sp-24); /* stops below the sticky header when On this page jumps to it */
}

.text-page__body > h2:first-child {
  margin-top: 0;
}

.text-page__body ul {
  padding-left: var(--sp-6);
  list-style: disc;
}

/* --- The thank you page (/order, back from Stripe): a green tick (a grey cross when not paid), the title and the order
   number in the middle; What happens next as a timeline, the first step done, and Your order. --- */
.thanks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
}

.thanks__head {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
  text-align: center;
}

.thanks__mark {
  display: grid;
  place-items: center;
  width: var(--sp-16);
  height: var(--sp-16);
  font-size: var(--fs-h2);
  color: var(--c-page);
  background-image: linear-gradient(var(--c-pay-top), var(--c-pay-bottom));
  border-radius: 50%;
  box-shadow: var(--shadow-pay);
}

.thanks__title {
  font-size: var(--fs-h2);
  text-wrap: balance;
}

.thanks__lead {
  max-width: 56ch;
  color: var(--c-text-muted);
  text-wrap: balance;
  overflow-wrap: anywhere; /* a long email address wraps instead of widening the page */
}

.thanks__number {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-4);
  font-size: var(--fs-small);
  color: var(--c-heading);
  background-color: var(--c-page);
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-pill);
}

.thanks__steps {
  padding: var(--sp-5);
}

.thanks__step {
  position: relative;
  display: grid;
  grid-template-columns: var(--sp-8) minmax(0, 1fr);
  gap: var(--sp-3);
  padding-bottom: var(--sp-5);
}

.thanks__step:last-child {
  padding-bottom: 0;
}

.thanks__step::before { /* the line down to the next step */
  content: "";
  position: absolute;
  top: var(--sp-8);
  bottom: 0;
  left: calc(var(--sp-4) - var(--border-1));
  width: calc(2 * var(--border-1));
  background-color: var(--c-line);
}

.thanks__step:last-child::before {
  display: none;
}

.thanks__step--done::before {
  background-color: var(--c-pay-top);
}

.thanks__dot {
  display: grid;
  place-items: center;
  width: var(--sp-8);
  height: var(--sp-8);
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  background-color: var(--c-surface);
  border: var(--border-1) solid var(--c-line);
  border-radius: 50%;
}

.thanks__step--done .thanks__dot {
  color: var(--c-page);
  background-image: linear-gradient(var(--c-pay-top), var(--c-pay-bottom));
  border-color: var(--c-pay-bottom);
}

.thanks__step strong {
  display: block;
  color: var(--c-heading);
}

.thanks__step div > span { /* the detail under each step (not the numbered circle, also a span) */
  display: block; /* its own line height, so a wrapped line sits close */
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}

.thanks__quantity {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

.thanks__where {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-4);
  font-size: var(--fs-small);
  border-top: var(--border-1) solid var(--c-line);
}

.thanks__where strong {
  color: var(--c-heading);
}

/* --- The footer: the copyright and the legal pages, on the hexagons at the bottom left --- */
.shop__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-16);
  padding-block: var(--sp-6) var(--sp-8);
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  border-top: var(--border-1) solid var(--c-line);
}

.shop__legal {
  display: flex;
  gap: var(--sp-5);
}

.shop__legal a {
  color: var(--c-text-muted);
  text-decoration: none;
}

.shop__legal a:hover {
  color: var(--c-accent-text);
}

/* --- From 576px: products two a row; the words and a square photo side by side --- */
@media (min-width: 576px) {
  .shop-hero {
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  }

  .shop-hero__stage {
    order: 0;
  }

  .shop-hero__img {
    aspect-ratio: 1;
  }

  .shop-help__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-goal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout__two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- From 768px: Shop and Consultations in the middle, the prices and basket pills on the right; no phone menu --- */
@media (min-width: 768px) {
  .shop__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    margin-bottom: var(--sp-6);
  }

  .shop__nav {
    display: flex;
  }

  .shop__prices {
    display: block;
  }

  .shop__phone {
    height: auto;
    background: none;
    box-shadow: none;
  }

  .shop__phone .shop__basket {
    height: var(--button-h-sm);
    background-image: linear-gradient(var(--c-glass-top), var(--c-glass-bottom));
    box-shadow: var(--shadow-glass);
  }

  .shop__basket-word {
    display: inline;
  }

  .shop__cart {
    position: relative; /* the drop-down under the basket pill */
  }

  .shop__toggle,
  .shop__menu {
    display: none;
  }

  /* A product: the photo and the buying part side by side, the buying part at the bottom so both bottoms line up. */
  .shop-product {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: stretch;
  }

  .shop-product__buy {
    justify-content: flex-end;
  }
}

/* --- From 992px: the wide photo turned in full, Functional health medicine on its band, the bigger lead; products
   three a row --- */
@media (min-width: 992px) {
  .shop {
    padding-top: var(--sp-8);
  }

  .shop-hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--sp-16);
  }

  .shop-hero__stage {
    padding-block: var(--sp-4); /* room for the turned photo's corners, so the gap to the first box stays 48px or more */
    --turn: 1;
  }

  .shop-hero__img {
    aspect-ratio: 16 / 9;
  }

  .shop-hero__role {
    display: inline;
  }

  .shop-hero__lead {
    font-size: var(--fs-lead);
  }

  .shop-goal__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* A product: About this product and How to take side by side, Ingredients the full width under them. */
  .shop-product__boxes {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .shop-product__box:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* The checkout: the steps, and Your order with Pay beside them, staying in view. */
  .checkout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--sp-8);
  }

  .checkout__side {
    position: sticky;
    top: calc(var(--shop-top-h) + var(--sp-4));
  }

  .checkout__jump {
    display: none;
  }
  .thanks {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--sp-8);
  }
}

/* --- From 1200px: the biggest title; products four a row --- */
@media (min-width: 1200px) {
  .shop-hero__title {
    font-size: var(--fs-h1);
  }

  .shop-goal__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* The text pages: On this page in two columns from 576px, then on the left of the text from 992px. */
@media (min-width: 576px) {
  .text-page__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .text-page__body {
    padding: var(--sp-8) var(--sp-10);
  }
}

@media (min-width: 992px) {
  .text-page__grid {
    grid-template-columns: var(--text-page-contents-w) minmax(0, 1fr);
  }

  .text-page__grid--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .text-page__contents {
    position: sticky;
    top: var(--sp-24);
  }

  .text-page__list {
    grid-template-columns: minmax(0, 1fr);
  }
}
