/* ==========================================================================
   hotlunch-theme — base stylesheet
   Design tokens are injected from layout/theme.liquid via settings.
   ========================================================================== */

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

html {
  font-size: calc(var(--font-body-scale) * 62.5%);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  letter-spacing: 0.06rem;
  line-height: calc(1 + 0.8 / var(--font-body-scale));
  font-family: var(--font-body-family);
  font-style: var(--font-body-style);
  font-weight: var(--font-body-weight);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

.content-for-layout { flex: 1 0 auto; }

h1, h2, h3, h4, h5,
.h0, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-heading-family);
  font-style: var(--font-heading-style);
  font-weight: var(--font-heading-weight);
  letter-spacing: var(--font-heading-letter-spacing);
  line-height: 1.2;
  margin: 0 0 1.5rem;
  word-break: break-word;
}

/* Uppercase is opt-in per element, not blanket — forcing it on every heading
   flattens the hierarchy and reads as shouting. */
.uppercase { text-transform: uppercase; }

.h0 { font-size: calc(var(--font-heading-scale) * 3.6rem); }
h1, .h1 { font-size: calc(var(--font-heading-scale) * 3.0rem); }
h2, .h2 { font-size: calc(var(--font-heading-scale) * 2.4rem); }
h3, .h3 { font-size: calc(var(--font-heading-scale) * 1.9rem); }
h4, .h4 { font-size: calc(var(--font-heading-scale) * 1.6rem); }
h5, .h5 { font-size: calc(var(--font-heading-scale) * 1.4rem); }

@media screen and (min-width: 750px) {
  .h0 { font-size: calc(var(--font-heading-scale) * 5.2rem); }
  h1, .h1 { font-size: calc(var(--font-heading-scale) * 4.0rem); }
  h2, .h2 { font-size: calc(var(--font-heading-scale) * 3.2rem); }
  h3, .h3 { font-size: calc(var(--font-heading-scale) * 2.4rem); }
}

p { margin: 0 0 1.5rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 0.1rem; text-underline-offset: 0.3rem; }
a.link--text { text-decoration: none; }
a.link--text:hover { color: var(--color-accent-1); }

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

ul, ol { padding-left: 2rem; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  border: 0; clip: rect(0 0 0 0);
  word-wrap: normal !important;
}

.skip-to-content-link:focus {
  z-index: 9999;
  position: inherit !important;
  overflow: auto;
  width: auto; height: auto;
  clip: auto;
}

/* --------------------------------------------------------------- layout */

.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media screen and (min-width: 750px) {
  .page-width { padding: 0 5rem; }
}

.page-width--narrow { max-width: 72rem; }

.section {
  padding-top: var(--spacing-sections);
  padding-bottom: var(--spacing-sections);
}

.section--tight { padding-top: 0; padding-bottom: 0; }

.center { text-align: center; }

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

@media screen and (min-width: 750px) {
  .grid { gap: 2.4rem; }
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--1-mobile { grid-template-columns: minmax(0, 1fr); }

@media screen and (min-width: 750px) {
  .grid--2-desktop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3-desktop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4-desktop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------- buttons */

.button,
.shopify-challenge__button,
.customer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  min-height: 4.8rem;
  padding: 1.2rem 3rem;
  border: 0.1rem solid transparent;
  border-radius: var(--buttons-radius);
  background-color: var(--color-cta);
  color: var(--color-cta-text);
  font-family: var(--font-heading-family);
  font-size: 1.6rem;
  font-weight: var(--font-heading-weight);
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.button--full { width: 100%; }

.button--secondary {
  background-color: transparent;
  border-color: var(--color-accent-1);
  color: var(--color-accent-1);
}

.button--secondary:hover {
  background-color: var(--color-accent-1);
  color: #fff;
  filter: none;
}

.button[disabled],
.button[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --------------------------------------------------------------- forms */

.field { position: relative; display: flex; width: 100%; }

.field__input,
.select__select,
.customer input,
.customer textarea {
  flex-grow: 1;
  width: 100%;
  min-height: 4.8rem;
  padding: 1.2rem 1.6rem;
  font-family: var(--font-body-family);
  font-size: 1.6rem;
  color: var(--color-text);
  background-color: var(--color-background);
  border: 0.1rem solid rgba(var(--color-text-rgb), 0.2);
  border-radius: var(--buttons-radius);
}

.field__input:focus,
.select__select:focus {
  outline: 0.2rem solid var(--color-accent-1);
  outline-offset: 0.1rem;
}

.form__message {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  margin-top: 1rem;
}

.form__message--error { color: #d20f0f; }
.form__message--success { color: #0b7d3e; }

/* --------------------------------------------------------------- announcement bar */

.announcement-bar {
  padding: 1.1rem 0;
  text-align: center;
}

@media screen and (min-width: 750px) {
  .announcement-bar { padding: 1.4rem 0; }
}

/* Mobile size only — the 750px rule below keeps desktop at 2rem. */
.announcement-bar__message {
  margin: 0;
  font-size: 1.4rem;
  font-weight: var(--font-body-weight-bold);
  line-height: 1.3;
}

@media screen and (min-width: 750px) {
  .announcement-bar__message { font-size: 2rem; }
}

/* Marquee */

.announcement-bar__marquee {
  overflow: hidden;
  /* Stops the sliding text widening the page. */
  width: 100%;
}

.announcement-bar__track {
  display: flex;
  width: max-content;
  animation-name: announcement-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Pausing on hover gives anyone a chance to read or click a message. */
.announcement-bar__marquee:hover .announcement-bar__track,
.announcement-bar__track:focus-within {
  animation-play-state: paused;
}

.announcement-bar__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 3rem;
  padding-right: 3rem;
}

@media screen and (min-width: 750px) {
  .announcement-bar__group { gap: 5rem; padding-right: 5rem; }
}

.announcement-bar__marquee .announcement-bar__message {
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

/* The track is two identical groups, so half a track is exactly one loop. */
@keyframes announcement-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-bar__track { animation: none; }
  .announcement-bar__marquee { overflow-x: auto; }
}

/* --------------------------------------------------------------- header */

.header-wrapper {
  position: relative;
  border-bottom: 0.1rem solid rgba(var(--color-text-rgb), 0.08);
  background-color: var(--color-background);
}

/* When the header carries its own colours, everything inside inherits them
   rather than falling back to the page's text colour. */
.header-wrapper--themed .header__menu-item,
.header-wrapper--themed .header__icon,
.header-wrapper--themed .header__heading-link,
.header-wrapper--themed .header__heading { color: var(--header-fg); }

.header-wrapper--themed .header__menu-item:hover,
.header-wrapper--themed .header__icon:hover { color: var(--color-accent-1); }

/* The dropdown is a panel in its own right, so it keeps the page palette. */
.header-wrapper--themed .header__submenu {
  background-color: var(--color-background);
  color: var(--color-text);
}

.header-wrapper--sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.2s ease;
}

.header-wrapper--sticky.is-scrolled {
  box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.1);
}

/* DOM order is: menu toggle, logo, nav, icons.
   Mobile shows toggle / logo / icons; desktop reorders per logo position. */
.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  max-width: var(--page-width);
  margin: 0 auto;
}

@media screen and (min-width: 990px) {
  .header {
    padding: 1.6rem 5rem;
    gap: 2.4rem;
  }

  .header--logo-left { grid-template-columns: auto 1fr auto; }

  .header--logo-center { grid-template-columns: 1fr auto 1fr; }
  .header--logo-center .header__inline-menu { order: 1; }
  .header--logo-center .header__heading { order: 2; justify-self: center; }
  .header--logo-center .header__icons { order: 3; }
}

.header__heading { margin: 0; font-size: 2rem; }

.header__heading-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

/* Respect the width the merchant set rather than filling the column —
   width:100% here overrides the image's own width attribute and scales it up. */
.header__heading-logo {
  width: var(--logo-width, 23rem);
  max-width: 100%;
  height: auto;
  display: block;
}

.header__inline-menu { display: none; }

@media screen and (min-width: 990px) {
  .header__inline-menu { display: block; }
}

.list-menu--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__menu-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0;
  font-family: var(--font-heading-family);
  font-size: 1.4rem;
  font-weight: var(--font-heading-weight);
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.header__menu-item:hover { color: var(--color-accent-1); }

.header__submenu {
  position: absolute;
  z-index: 10;
  min-width: 22rem;
  padding: 1rem 0;
  margin-top: 0.5rem;
  list-style: none;
  background-color: var(--color-background);
  border: 0.1rem solid rgba(var(--color-text-rgb), 0.1);
  border-radius: var(--card-radius);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.12);
}

.header__submenu a {
  display: block;
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  text-decoration: none;
}

.header__submenu a:hover { background-color: var(--color-background-alt); }

details[open] > .header__submenu { display: block; }

.header__icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.header__icon svg { width: 2.2rem; height: 2.2rem; }
.header__icon:hover { color: var(--color-accent-1); }

.header__icon--cart { position: relative; }

.cart-count-bubble {
  position: absolute;
  top: 0.6rem;
  right: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.8rem;
  padding: 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background-color: var(--color-cta);
  border-radius: 1rem;
}

.header__menu-toggle { display: flex; }

@media screen and (min-width: 990px) {
  .header__menu-toggle { display: none; }
}

/* Hidden rather than removed, so the grid keeps its left column and the logo
   stays centred against the cart icon. visibility:hidden also takes it out of
   the tab order and the accessibility tree. */
@media screen and (max-width: 989px) {
  .header__menu-toggle--off { visibility: hidden; }
}

/* mobile drawer */

.menu-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: min(85vw, 36rem);
  padding: 2rem;
  overflow-y: auto;
  background-color: var(--color-background);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.menu-drawer[open],
.menu-drawer.is-open { transform: translateX(0); }

.menu-drawer__overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.5);
}

.menu-drawer__menu { list-style: none; margin: 0; padding: 0; }

.menu-drawer__menu-item {
  display: block;
  padding: 1.2rem 0;
  font-family: var(--font-heading-family);
  font-size: 1.8rem;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 0.1rem solid rgba(var(--color-text-rgb), 0.08);
}

/* --------------------------------------------------------------- banner / hero */

.banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.banner__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__image--mobile { display: block; }
.banner__image--desktop { display: none; }

@media screen and (min-width: 750px) {
  .banner__image--mobile { display: none; }
  .banner__image--desktop { display: block; }
}

.banner--adapt { aspect-ratio: 1600 / 1108; }

/* Mobile only. The portrait crop is opt-in: without a dedicated mobile image
   the desktop one keeps its own shape so nothing is cut off. */
@media screen and (max-width: 749px) {
  .banner--mobile-portrait { aspect-ratio: 800 / 1000; }
}

/* Desktop runs 16:9. Mobile keeps the taller ratio above — 16:9 on a phone
   is a letterbox strip with no room for the heading. */
@media screen and (min-width: 750px) {
  .banner--adapt { aspect-ratio: 16 / 9; }
}

/* No background image: a branded colour block rather than a stock placeholder. */
.banner--solid {
  min-height: 34rem;
  align-items: center;
  color: #fff;
}

@media screen and (min-width: 750px) {
  .banner--solid { min-height: 44rem; }
}

.banner--solid .banner__content { padding-top: 5rem; padding-bottom: 5rem; }
.banner--solid .banner__heading,
.banner--solid .banner__text { text-shadow: none; }

.banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 3rem 1.5rem 5rem;
  text-align: center;
}

.banner__content--bottom { justify-content: flex-end; }

.banner__heading { margin: 0; color: #fff; text-shadow: 0 0.2rem 1.2rem rgba(0,0,0,0.35); }
.banner__text { color: #fff; text-shadow: 0 0.1rem 0.8rem rgba(0,0,0,0.35); }

.banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, var(--overlay-opacity, 0));
}

/* --------------------------------------------------------------- rich section headings */

/* Section titles sit below the page's h1 in the hierarchy — full h1 sizing
   here was overpowering the content underneath. Defined after .h1 so it wins. */
.section__heading {
  margin: 0 0 1rem;
  text-align: center;
  font-size: calc(var(--font-heading-scale) * 2.2rem);
}

@media screen and (min-width: 750px) {
  .section__heading { font-size: calc(var(--font-heading-scale) * 2.6rem); }
}

.section__subheading {
  max-width: 62rem;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.5rem;
}

.highlight { color: var(--color-accent-1); }

/* --------------------------------------------------------------- testimonials */

.testimonial-grid { margin-top: 3rem; }

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-align: center;
  background-color: var(--color-background);
  border: 0.1rem solid rgba(var(--color-text-rgb), 0.12);
  border-radius: var(--card-radius);
}

.testimonial-card__media {
  aspect-ratio: 4 / 3;
  background-color: var(--color-background-alt);
}

.testimonial-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 0 auto;
  padding: 2rem;
}

.testimonial-card__stars {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  color: #ffcc00;
}

.testimonial-card__stars svg { width: 1.7rem; height: 1.7rem; }

.testimonial-card h3 {
  margin: 0;
  font-family: var(--font-body-family);
  font-size: 1.6rem;
  font-weight: var(--font-body-weight-bold);
  letter-spacing: 0;
}

.testimonial-card__text { font-size: 1.4rem; }

.testimonial-card__author {
  margin: auto 0 0;
  font-size: 1.3rem;
  font-weight: var(--font-body-weight-bold);
}

/* Quote badge straddling the seam between the photo and the review. */
.testimonial-card__quote {
  position: absolute;
  top: 0;
  right: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  color: var(--color-background);
  background-color: var(--color-accent-2);
  border-radius: 50%;
  transform: translateY(-50%);
}

.testimonial-card__quote svg { width: 1.6rem; height: 1.6rem; }

/* --------------------------------------------------------------- image with text */

.image-with-text {
  display: grid;
  gap: 2.4rem;
  align-items: center;
}

@media screen and (min-width: 750px) {
  .image-with-text { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
  .image-with-text--reverse .image-with-text__media { order: 2; }
}

.image-with-text__media img { width: 100%; border-radius: var(--card-radius); }

.image-with-text__content { display: flex; flex-direction: column; gap: 1.2rem; }

/* Body-font heading, mixed case — matches the editorial feel of this block
   rather than the display treatment used for section titles. */
.image-with-text__heading {
  margin: 0;
  font-family: var(--font-body-family);
  font-size: calc(var(--font-heading-scale) * 2.0rem);
  font-weight: var(--font-body-weight-bold);
  letter-spacing: 0;
  line-height: 1.25;
}

@media screen and (min-width: 750px) {
  .image-with-text__heading { font-size: calc(var(--font-heading-scale) * 2.4rem); }
}
.image-with-text__content .button { align-self: flex-start; margin-top: 0.8rem; }

/* --------------------------------------------------------------- product card */

.card-wrapper { height: 100%; }

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  background-color: var(--color-background-alt);
}

.card__media--square { aspect-ratio: 1 / 1; }
.card__media--portrait { aspect-ratio: 3 / 4; }

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.card__media--hover img.card__image--secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.card-wrapper:hover .card__image--secondary { opacity: 1; }
.card-wrapper:hover .card__image--primary { opacity: 0; }

.card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--color-cta);
  border-radius: var(--buttons-radius);
}

.card__badge--sold-out { background-color: rgba(var(--color-text-rgb), 0.6); }

.card__content { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.2rem 0; }

.card__heading {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.3;
}

.card__vendor { font-size: 1.3rem; opacity: 0.7; }

/* --------------------------------------------------------------- price */

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 1.6rem;
  font-weight: var(--font-body-weight-bold);
}

/* The buy-box price carries more weight than a price on a product card. */
[data-price-target] .price { font-size: 2.2rem; }
[data-price-target] .price--on-sale .price-item--sale { color: var(--color-cta); }

.price--on-sale .price-item--regular {
  font-weight: 400;
  text-decoration: line-through;
  opacity: 0.6;
}

.price--on-sale .price-item--sale { color: var(--color-cta); }

.price__badge-sale {
  padding: 0.2rem 0.8rem;
  font-size: 1.2rem;
  color: #fff;
  background-color: var(--color-cta);
  border-radius: var(--buttons-radius);
}

/* --------------------------------------------------------------- product page */

.product {
  display: grid;
  gap: 3rem;
}

@media screen and (min-width: 990px) {
  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 5rem; align-items: start; }
}

.product__featured-image { width: 100%; border-radius: var(--card-radius); }

/* On the product page the gallery follows the buy box down, so a long
   description doesn't leave a column of dead space. */
@media screen and (min-width: 990px) {
  .template-product .product__media-wrapper {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

/* Auto-fill rather than a fixed 4 columns, so a 5th or 6th image doesn't
   strand itself alone on a second row. */
.product__media-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0 0;
  list-style: none;
  padding: 0;
}

.product__media-thumbs button {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0.2rem solid rgba(var(--color-text-rgb), 0.1);
  border-radius: var(--card-radius);
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.product__media-thumbs button:hover { border-color: rgba(var(--color-text-rgb), 0.35); }

.product__media-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- mobile only ---- */

@media screen and (max-width: 749px) {
  /* A single scrolling strip. The auto-fill grid wrapped a stray thumbnail
     onto a second row, which reads as a layout bug. */
  .product__media-thumbs {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
  }

  .product__media-thumbs::-webkit-scrollbar { display: none; }

  .product__media-thumbs li {
    flex: 0 0 auto;
    width: 7.4rem;
    scroll-snap-align: start;
  }

  /* Keep price, compare-at and the save badge on a single row. */
  [data-price-target] .price { font-size: 2rem; gap: 0.6rem; }
  .price__badge-sale { font-size: 1.1rem; padding: 0.3rem 0.7rem; }
}

.product__media-thumbs button[aria-current='true'] { border-color: var(--color-accent-1); }

.product__info { display: flex; flex-direction: column; gap: 1.6rem; }

/* Mobile only, product page only. The default section padding leaves a big
   gap between the header and the first image on a small screen. */
@media screen and (max-width: 749px) {
  .product-section { padding-top: 0.8rem; }
  .product-section .product { gap: 1.6rem; }
  .product-section .product__info { gap: 1.4rem; }
}

/* The form and the variant picker are plain block containers by default, so
   their children sit flush against each other. */
.product-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0;
}

[data-variant-picker] {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* Product titles sit inside a section, not at the top of the page — full h1
   scale made this wrap to two lines and dwarf the price. */
.product__title {
  margin: 0;
  font-size: calc(var(--font-heading-scale) * 2.0rem);
}

/* Mobile only: uppercase. Oswald is condensed, so a 24-character name fits
   one line at 360px at a much larger size than a wide face would allow.
   No nowrap — a longer name should wrap, not overflow. */
@media screen and (max-width: 749px) {
  .product__title {
    font-size: calc(var(--font-heading-scale) * 1.9rem);
    letter-spacing: 0.02rem;
    text-transform: uppercase;
  }
}

@media screen and (min-width: 750px) {
  .product__title { font-size: calc(var(--font-heading-scale) * 2.4rem); }
}

.product__description {
  max-width: 90rem;
  margin: 4rem auto 0;
  font-size: 1.5rem;
}

.product__description img {
  width: 100%;
  height: auto;
  border-radius: var(--card-radius);
}

.product__description p:has(img),
.product__description p > img {
  margin-left: 0;
  margin-right: 0;
}

/* Benefit list above the buy button — the highest-value real estate in the
   buy box, so it gets weight without shouting. */
.product__highlights {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
  font-size: 1.5rem;
}

.product__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.product__highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin-top: 0.2rem;
  color: #fff;
  background-color: var(--color-cta);
  border-radius: 50%;
}

.product__highlight-icon svg { width: 1.1rem; height: 1.1rem; }

.product-form__buttons { display: flex; flex-direction: column; gap: 1rem; }

.product-form__buy { display: flex; flex-direction: column; gap: 1.4rem; }

/* --------------------------------------------------------------- buy-box blocks */

.product__rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 1.4rem;
}

.product__rating-stars { display: flex; gap: 0.2rem; color: #ffcc00; }
.product__rating-stars svg { width: 1.6rem; height: 1.6rem; }

.product__block-text { font-size: 1.5rem; }

.product__payment-badges {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.4rem 0;
  border-top: 0.1rem solid rgba(var(--color-text-rgb), 0.12);
  text-align: center;
}

.product__payment-text { font-size: 1.3rem; opacity: 0.75; }

.product__payment-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.product__payment-icons svg { width: 3.8rem; height: 2.4rem; }

.product__inline-description { font-size: 1.5rem; }

.product__full-details {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  font-size: 1.4rem;
  text-underline-offset: 0.4rem;
}

.product-form__input { display: flex; flex-direction: column; gap: 0.8rem; }

.product-form__input legend,
.product-form__label {
  font-size: 1.4rem;
  font-weight: var(--font-body-weight-bold);
  text-transform: uppercase;
}

.product-form__label-note {
  font-weight: 400;
  text-transform: none;
  opacity: 0.7;
}

/* The fieldset IS .product-form__input, not a child of it — a descendant
   selector here leaves the browser's default border and floating legend. */
fieldset.product-form__input {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

fieldset.product-form__input legend {
  padding: 0;
  margin-bottom: 0.4rem;
}

/* Hidden, not removed — the checked radio inside is what the variant
   matcher reads to resolve the selected variant. */
.product-form__input--single {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.product-variant-options { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.product-variant-options input { position: absolute; opacity: 0; }

.product-variant-options label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5rem;
  padding: 1rem 1.6rem;
  font-size: 1.4rem;
  border: 0.1rem solid rgba(var(--color-text-rgb), 0.3);
  border-radius: var(--buttons-radius);
  cursor: pointer;
}

.product-variant-options input:checked + label {
  border-color: var(--color-text);
  background-color: var(--color-text);
  color: var(--color-background);
}

/* Mobile only. Must sit AFTER the base rules above — same specificity, so
   source order decides. Compact chips sized to their text, so a two-option
   choice sits on one line instead of stacking into full-width boxes. */
@media screen and (max-width: 749px) {
  .product-variant-options { gap: 0.6rem; }

  .product-variant-options label {
    min-width: 0;
    padding: 0.7rem 1.1rem;
    font-size: 1.2rem;
    line-height: 1.2;
    white-space: nowrap;
    justify-content: center;
  }
}

.quantity {
  display: inline-flex;
  align-items: center;
  border: 0.1rem solid rgba(var(--color-text-rgb), 0.3);
  border-radius: var(--buttons-radius);
  width: fit-content;
}

.quantity__button {
  width: 4.4rem;
  height: 4.4rem;
  font-size: 1.8rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

.quantity__input {
  width: 5rem;
  height: 4.4rem;
  text-align: center;
  border: 0;
  background: none;
  font-size: 1.6rem;
  color: inherit;
  -moz-appearance: textfield;
}

.quantity__input::-webkit-outer-spin-button,
.quantity__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --------------------------------------------------------------- accordion */

.accordion { margin-top: 0.5rem; }

/* Rows used directly as buy-box blocks rather than inside an .accordion. */
.accordion__item--standalone { border-bottom: 0.1rem solid rgba(var(--color-text-rgb), 0.15); }
.accordion__item--standalone:first-of-type { border-top: 0.1rem solid rgba(var(--color-text-rgb), 0.15); }

.accordion__item { border-bottom: 0.1rem solid rgba(var(--color-text-rgb), 0.15); }
.accordion__item:first-child { border-top: 0.1rem solid rgba(var(--color-text-rgb), 0.15); }

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0;
  font-size: 1.5rem;
  font-weight: var(--font-body-weight-bold);
  cursor: pointer;
  list-style: none;
}

.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary:hover { color: var(--color-accent-1); }

/* Optional icon before the heading. margin-right: auto on the label keeps
   the caret pinned right regardless of whether an icon is present. */
.accordion__lead-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-right: -0.5rem;
}

.accordion__lead-icon svg { width: 100%; height: 100%; }

.accordion__summary > span:not([class]) { margin-right: auto; }

.accordion--lg .accordion__summary { padding: 2rem 0; font-size: 1.7rem; }

.accordion__icon {
  flex: 0 0 auto;
  display: flex;
  transition: transform 0.2s ease;
}

.accordion__icon svg { width: 1.2rem; height: 1.2rem; }

.accordion__item[open] .accordion__icon { transform: rotate(180deg); }

.accordion__content {
  padding: 0 0 1.8rem;
  font-size: 1.5rem;
}

/* --------------------------------------------------------------- comparison table */

.comparison {
  max-width: 78rem;
  margin: 3rem auto 0;
  border: 0.1rem solid rgba(var(--color-text-rgb), 0.15);
  border-radius: var(--card-radius);
  overflow: hidden;
}

.comparison__row {
  display: grid;
  grid-template-columns: 1fr 9rem 9rem;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  border-bottom: 0.1rem solid rgba(var(--color-text-rgb), 0.1);
}

@media screen and (min-width: 750px) {
  .comparison__row { grid-template-columns: 1fr 14rem 14rem; padding: 1.6rem 2.4rem; }
}

.comparison__row:last-child { border-bottom: 0; }

.comparison__row--head {
  background-color: var(--color-accent-2);
  color: #fff;
  font-weight: var(--font-body-weight-bold);
}

.comparison__label { font-size: 1.5rem; }

.comparison__col {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.4rem;
}

.comparison__row--head .comparison__col--us { color: var(--color-accent-1); }

.comparison__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
}

.comparison__mark svg { width: 1.3rem; height: 1.3rem; }

.comparison__mark--yes { color: #fff; background-color: #1a9c53; }
.comparison__mark--no { color: #fff; background-color: rgba(var(--color-text-rgb), 0.35); }

/* --------------------------------------------------------------- contact */

.contact__intro {
  max-width: 62rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.contact {
  display: grid;
  gap: 3rem;
  align-items: start;
  max-width: 104rem;
  margin: 0 auto;
}

/* The sidebar gets a floor so its text stops wrapping every three words. */
@media screen and (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(30rem, 34rem);
    gap: 4rem;
  }
}

.contact__form { display: flex; flex-direction: column; gap: 1.8rem; }

.contact__grid { display: grid; gap: 1.8rem; }

@media screen and (min-width: 600px) {
  .contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* A row with only one visible field shouldn't leave a gap where the other was. */
.contact__grid:not(:has(.field + .field)) { grid-template-columns: minmax(0, 1fr); }

.field { flex-direction: column; align-items: stretch; gap: 0.6rem; }

.field__label {
  font-size: 1.4rem;
  font-weight: var(--font-body-weight-bold);
}

.field__label span { color: var(--color-cta); }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
}

.contact__note { font-size: 1.3rem; opacity: 0.7; }
.contact__note p { margin: 0; }

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.8rem;
  background-color: var(--color-background-alt);
  border-radius: var(--card-radius);
}

.contact__detail-heading {
  margin: 0 0 0.6rem;
  font-size: calc(var(--font-heading-scale) * 1.4rem);
}

.contact__detail { font-size: 1.4rem; }
.contact__detail p { margin-bottom: 0.8rem; }
.contact__detail p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- steps with image */

.steps {
  display: grid;
  gap: 2.4rem;
  align-items: center;
  margin-top: 2rem;
}

@media screen and (min-width: 750px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
  .steps--reverse .steps__media { order: 2; }
}

.steps__media img { width: 100%; border-radius: var(--card-radius); }

.steps__list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps__item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 1.5rem;
}

.steps__number {
  font-weight: var(--font-body-weight-bold);
  color: var(--color-accent-1);
}

.steps__arrow { color: rgba(var(--color-text-rgb), 0.5); }

.steps__text strong { margin-right: 0.3rem; }

/* --------------------------------------------------------------- feature columns */

.feature-columns {
  display: grid;
  gap: 2.4rem;
  align-items: center;
  margin-top: 2.5rem;
}

/* Three across on desktop; stacks left / image / right on mobile, which is
   the source order. */
@media screen and (min-width: 990px) {
  .feature-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.feature-columns__col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-columns__media img {
  width: 100%;
  border-radius: var(--card-radius);
}

.feature-item__title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.4rem;
  font-size: calc(var(--font-heading-scale) * 1.3rem);
  line-height: 1.25;
}

.feature-item__icon { font-size: 1.8rem; line-height: 1; }

.feature-item__text {
  margin: 0;
  font-size: 1.4rem;
}

/* --------------------------------------------------------------- reviews */

.reviews__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2.4rem;
  margin: 2rem 0 3rem;
  background-color: var(--color-background-alt);
  border-radius: var(--card-radius);
}

.background-alt .reviews__summary { background-color: var(--color-background); }

.reviews__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.reviews__score-number {
  font-family: var(--font-heading-family);
  font-size: 4rem;
  font-weight: var(--font-heading-weight);
  line-height: 1;
}

.reviews__score-stars,
.reviews__item-stars { display: flex; gap: 0.2rem; }

.reviews__star svg { width: 1.7rem; height: 1.7rem; display: block; }
.reviews__star { color: rgba(var(--color-text-rgb), 0.2); }
.reviews__star.is-on { color: #ffcc00; }

.reviews__score-count { font-size: 1.3rem; opacity: 0.75; }

.reviews__bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 22rem;
  margin: 0;
}

.reviews__bar {
  display: grid;
  grid-template-columns: 1.4rem 1fr 3rem;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
}

.reviews__bar-track {
  height: 0.7rem;
  background-color: rgba(var(--color-text-rgb), 0.12);
  border-radius: 0.35rem;
  overflow: hidden;
}

.reviews__bar-fill {
  display: block;
  height: 100%;
  background-color: #ffcc00;
}

.reviews__bar-count { text-align: right; opacity: 0.7; }

.reviews__list {
  display: grid;
  gap: 1.6rem;
  margin: 0 0 3rem;
}

@media screen and (min-width: 750px) {
  .reviews__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (min-width: 990px) {
  .reviews__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.reviews__item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background-color: var(--color-background);
  border: 0.1rem solid rgba(var(--color-text-rgb), 0.12);
  border-radius: var(--card-radius);
}

.reviews__item-text { margin: 0; font-size: 1.4rem; }

.reviews__item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem;
  margin: auto 0 0;
  font-size: 1.3rem;
}

.reviews__item-date { opacity: 0.6; }

.reviews__empty { text-align: center; opacity: 0.7; }

/* ---- write a review form ---- */

.reviews__form-wrap {
  max-width: 62rem;
  margin: 0 auto 3rem;
  padding: 2.4rem;
  background-color: var(--color-background);
  border: 0.1rem solid rgba(var(--color-text-rgb), 0.15);
  border-radius: var(--card-radius);
}

.reviews__form-wrap[hidden] { display: none; }

.reviews__form { display: flex; flex-direction: column; gap: 1.2rem; }
.reviews__form h3 { margin: 0; }

.reviews__form-grid { display: grid; gap: 1.2rem; }

@media screen and (min-width: 600px) {
  .reviews__form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.reviews__rating-field { border: 0; margin: 0; padding: 0; min-width: 0; }

.reviews__rating-field legend {
  font-size: 1.4rem;
  font-weight: var(--font-body-weight-bold);
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 0.6rem;
}

/* Laid out in reverse so the CSS sibling selector can light up the stars to
   the left of the hovered one. */
.reviews__rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.3rem;
}

.reviews__rating-input input { position: absolute; opacity: 0; width: 0; height: 0; }

.reviews__rating-input label {
  cursor: pointer;
  color: rgba(var(--color-text-rgb), 0.25);
  transition: color 0.12s ease;
}

.reviews__rating-input label svg { width: 2.6rem; height: 2.6rem; display: block; }

.reviews__rating-input input:checked ~ label,
.reviews__rating-input label:hover,
.reviews__rating-input label:hover ~ label { color: #ffcc00; }

.reviews__rating-input input:focus-visible + label { outline: 0.2rem solid var(--color-accent-1); }

.reviews__form-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.reviews__form-note { margin: 0; font-size: 1.2rem; opacity: 0.7; }

/* --------------------------------------------------------------- collection */

.collection-hero { padding: 3rem 0 1rem; text-align: center; }

.collection__pagination { display: flex; justify-content: center; gap: 1rem; margin-top: 4rem; }

.pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  height: 4rem;
  text-decoration: none;
  border-radius: var(--buttons-radius);
}

.pagination__item--current { background-color: var(--color-text); color: var(--color-background); }

/* --------------------------------------------------------------- cart */

.cart__items { width: 100%; border-collapse: collapse; }

.cart-item { display: grid; grid-template-columns: 8rem 1fr auto; gap: 1.5rem; padding: 2rem 0; border-bottom: 0.1rem solid rgba(var(--color-text-rgb), 0.1); align-items: start; }

.cart-item__image { width: 100%; border-radius: var(--card-radius); }

.cart-item__name { font-weight: var(--font-body-weight-bold); text-decoration: none; }

.cart-item__options { font-size: 1.3rem; opacity: 0.7; margin: 0.4rem 0; }

.cart__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: right;
}

.totals { display: flex; gap: 1.5rem; font-size: 2rem; font-weight: var(--font-body-weight-bold); }

.cart__empty { padding: 6rem 0; text-align: center; }

/* --------------------------------------------------------------- image slider */

.image-slider {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--slider-gap, 1.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 750px) {
  .image-slider--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .image-slider--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .image-slider--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .image-slider--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .image-slider--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.image-slider__item a { text-decoration: none; color: inherit; display: block; }

.image-slider__image {
  width: 100%;
  border-radius: var(--card-radius);
}

/* Normalise to a shared shape so the row has a flat bottom edge, however the
   source images were exported. */
.image-slider--square .image-slider__image { aspect-ratio: 1 / 1; }
.image-slider--portrait .image-slider__image { aspect-ratio: 4 / 5; }
.image-slider--landscape .image-slider__image { aspect-ratio: 4 / 3; }

/* 'cover' crops the sides — fine for photography, destructive for images with
   text baked in. 'contain' letterboxes instead, so nothing is lost. */
.image-slider--fit-cover .image-slider__image { object-fit: cover; }

.image-slider--fit-contain .image-slider__image {
  object-fit: contain;
  background-color: var(--color-background-alt);
}

.image-slider__caption {
  margin: 0.8rem 0 0;
  font-size: 1.4rem;
  text-align: center;
}

/* ---- carousel: mobile only. Desktop keeps the grid above untouched. ---- */

.slider-nav { display: none; }

@media screen and (max-width: 749px) {
  .slider-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .slider-track::-webkit-scrollbar { display: none; }

  .slider-track > * { scroll-snap-align: center; }

  .slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.6rem;
  }

  .slider-nav__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    padding: 0;
    color: var(--color-background);
    background-color: var(--color-accent-2);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
  }

  .slider-nav__arrow:disabled { opacity: 0.35; cursor: default; }

  .slider-nav__arrow svg { width: 1.2rem; height: 1.2rem; }

  /* The caret points down by default — rotate it to point along the track. */
  [data-slider-prev] svg { transform: rotate(90deg); }
  [data-slider-next] svg { transform: rotate(-90deg); }

  .slider-nav__dots { display: flex; align-items: center; gap: 0.8rem; }

  .slider-nav__dot {
    width: 0.9rem;
    height: 0.9rem;
    padding: 0;
    background-color: rgba(var(--color-text-rgb), 0.25);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
  }

  .slider-nav__dot[aria-current='true'] {
    background-color: var(--color-text);
    transform: scale(1.25);
  }
}

/* --------------------------------------------------------------- divider */

.section-divider {
  padding-top: var(--divider-space, 0);
  padding-bottom: var(--divider-space, 0);
}

.section-divider__line {
  display: block;
  width: 100%;
  height: var(--divider-height, 4px);
  background-color: var(--divider-color, var(--color-cta));
}

/* --------------------------------------------------------------- cart drawer */

.cart-drawer { position: fixed; inset: 0; z-index: 100; }
.cart-drawer[hidden] { display: none; }

/* Stop the invisible layer swallowing clicks during the close animation. */
.cart-drawer:not(.is-open) { pointer-events: none; }
.cart-drawer.is-open { pointer-events: auto; }

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cart-drawer.is-open .cart-drawer__overlay { opacity: 1; }

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(92vw, 42rem);
  background-color: var(--color-background);
  box-shadow: -0.4rem 0 2.4rem rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 2rem;
  border-bottom: 0.1rem solid rgba(var(--color-text-rgb), 0.1);
}

.cart-drawer__header h2 { margin: 0; }

.cart-drawer__shipping { padding: 1.4rem 2rem; background-color: var(--color-background-alt); }
.cart-drawer__shipping p { margin: 0 0 0.8rem; font-size: 1.4rem; }

.cart-drawer__shipping-track {
  height: 0.6rem;
  border-radius: 0.3rem;
  background-color: rgba(var(--color-text-rgb), 0.15);
  overflow: hidden;
}

.cart-drawer__shipping-track span {
  display: block;
  height: 100%;
  width: 0;
  background-color: var(--color-accent-1);
  transition: width 0.3s ease;
}

.cart-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 0 2rem; }

.cart-drawer__empty { padding: 6rem 0; text-align: center; }
.cart-drawer__empty p { margin-bottom: 2rem; }

.cart-drawer__items { margin: 0; }

.cart-drawer__item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.4rem;
  padding: 1.8rem 0;
  border-bottom: 0.1rem solid rgba(var(--color-text-rgb), 0.1);
}

.cart-drawer__item-image {
  display: block;
  min-height: 1px;
  background-color: var(--color-background-alt);
  border-radius: var(--card-radius);
}

.cart-drawer__item-image img { border-radius: var(--card-radius); }

.cart-drawer__item-details { display: flex; flex-direction: column; gap: 0.4rem; }

.cart-drawer__item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
}

.quantity--small .quantity__button { width: 3.4rem; height: 3.4rem; font-size: 1.6rem; }
.quantity__value { min-width: 3rem; text-align: center; font-size: 1.5rem; }

.cart-drawer__remove {
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0;
  font-size: 1.3rem;
  color: inherit;
  opacity: 0.7;
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

.cart-drawer__remove:hover { opacity: 1; }

.cart-drawer__footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-top: 0.1rem solid rgba(var(--color-text-rgb), 0.1);
}

.cart-drawer__footer[hidden] { display: none; }

.cart-drawer__footer .totals { justify-content: space-between; }
.cart-drawer__footer small { opacity: 0.7; }
.cart-drawer__footer form { margin: 0; }

.cart-drawer__footer .totals { display: flex; width: 100%; }

/* --------------------------------------------------------------- footer */

.footer {
  position: relative;
  padding: 6rem 0 2rem;
  background-color: var(--color-accent-2);
  color: #fff;
}

/* Angled top edge, as on the reference design. Clamped so the slash doesn't
   become enormous on wide monitors. */
.footer {
  /* The angled edge is positioned above the footer, so it overlaps whatever
     sits there. Reserve matching space so it can't clip the last section. */
  --footer-angle: clamp(2rem, 3vw, 5rem);
  margin-top: var(--footer-angle);
}

.footer::before {
  content: '';
  position: absolute;
  top: calc(-1 * var(--footer-angle));
  left: 0;
  right: 0;
  height: var(--footer-angle);
  background-color: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.footer a { color: #fff; }
.footer a:hover { color: var(--color-accent-1); }

.footer__blocks {
  display: grid;
  gap: 3rem;
}

@media screen and (min-width: 750px) {
  .footer__blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4rem; }
}

.footer-block__heading {
  margin: 0 0 1.5rem;
  font-size: calc(var(--font-heading-scale) * 1.6rem);
}

@media screen and (min-width: 990px) {
  .footer-block__heading { font-size: calc(var(--font-heading-scale) * 1.8rem); }
}

.footer-block__details-content { font-size: 1.4rem; }

.footer-block__details-content li { margin-bottom: 0.8rem; }

.footer-block__details-content a { text-decoration: none; }

/* Mobile only. The text blocks are richtext the merchant wrote as bulleted
   lists, so the menu block needs bullets too or the column reads as a
   mistake. The element selector outranks .list-unstyled. */
@media screen and (max-width: 749px) {
  ul.footer-block__details-content {
    list-style: disc;
    padding-left: 1.8rem;
    margin: 0;
  }

  ul.footer-block__details-content li { display: list-item; }
}

.newsletter-form { display: flex; gap: 0.8rem; margin-top: 1.5rem; flex-wrap: wrap; }
.newsletter-form .field { flex: 1 1 18rem; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 0.1rem solid rgba(255, 255, 255, 0.15);
  font-size: 1.3rem;
  text-align: center;
}

.footer__payment { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.footer__payment svg { width: 3.8rem; height: 2.4rem; }

.footer__social { display: flex; gap: 1.2rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.footer__social svg { width: 2.2rem; height: 2.2rem; }

/* --------------------------------------------------------------- utilities */

.rte a { color: var(--color-accent-1); }
.rte img { border-radius: var(--card-radius); }
.rte > *:first-child { margin-top: 0; }
.rte > *:last-child { margin-bottom: 0; }

.background-alt { background-color: var(--color-background-alt); }

.placeholder-svg {
  width: 100%;
  height: 100%;
  background-color: rgba(var(--color-text-rgb), 0.06);
  fill: rgba(var(--color-text-rgb), 0.3);
}

/* --------------------------------------------------- sticky add to cart */

.sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background-color: var(--color-background);
  border-top: 0.1rem solid rgba(var(--color-text-rgb), 0.12);
  box-shadow: 0 -0.4rem 1.6rem rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  /* Visibility flips only after the slide-out finishes. */
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
  /* Keeps the bar clear of the iOS home indicator. */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Hidden from the tab order until it slides in. */
.sticky-atc { visibility: hidden; }
.sticky-atc.is-visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.25s ease, visibility 0s;
}

/* Mobile only — desktop keeps the buy box button and nothing else. */
@media screen and (min-width: 750px) {
  .sticky-atc { display: none; }
}

.sticky-atc__inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.sticky-atc__button { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------- tlb-mobile-fix (phones/tablets) */

/* Below the 990px two-column layout the product grid had no column rule, so
   its single implicit column grew to fit the thumbnail strip (~484px) and the
   whole page scrolled sideways on phones. Cap it at the screen width. */
@media screen and (max-width: 989px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .product > * { min-width: 0; }
}

/* Cart drawer loading state: the drawer opens as soon as Add to cart is
   tapped and shows a spinner until the server answers. */
.cart-drawer.is-loading [data-cart-body] { position: relative; min-height: 12rem; }
.cart-drawer.is-loading [data-cart-body] > * { visibility: hidden; }
.cart-drawer.is-loading [data-cart-body]::before {
  content: 'Adding to cart…';
  position: absolute;
  top: 8.4rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1.4rem;
  color: rgba(var(--color-text-rgb), 0.7);
}
.cart-drawer.is-loading [data-cart-body]::after {
  content: '';
  position: absolute;
  top: 4rem;
  left: 50%;
  width: 3.2rem;
  height: 3.2rem;
  margin-left: -1.6rem;
  border: 0.3rem solid rgba(var(--color-text-rgb), 0.15);
  border-top-color: var(--color-accent-1);
  border-radius: 50%;
  animation: tlb-spin 0.7s linear infinite;
}
.cart-drawer.is-loading [data-cart-footer] { opacity: 0.5; pointer-events: none; }
@keyframes tlb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cart-drawer.is-loading [data-cart-body]::after { animation-duration: 1.6s; }
}

/* Quantity / remove inside the drawer: dim the items, spinner on top, and
   lock the controls until the new totals arrive. */
.cart-drawer.is-updating [data-cart-body] { position: relative; }
.cart-drawer.is-updating [data-cart-body] > * { opacity: 0.4; pointer-events: none; transition: opacity 0.15s ease; }
.cart-drawer.is-updating [data-cart-body]::after {
  content: '';
  position: absolute;
  top: 4rem;
  left: 50%;
  width: 3.2rem;
  height: 3.2rem;
  margin-left: -1.6rem;
  border: 0.3rem solid rgba(var(--color-text-rgb), 0.15);
  border-top-color: var(--color-accent-1);
  border-radius: 50%;
  animation: tlb-spin 0.7s linear infinite;
}
.cart-drawer.is-updating [data-cart-footer] { opacity: 0.5; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .cart-drawer.is-updating [data-cart-body]::after { animation-duration: 1.6s; }
}

/* Footer social links: full-colour brand badges. */
.footer__social { gap: 1.4rem; align-items: center; }
.footer__social a { display: inline-flex; line-height: 0; transition: transform 0.15s ease, opacity 0.15s ease; }
.footer__social a:hover { transform: translateY(-0.2rem); opacity: 0.9; }
.footer__social .footer__social-icon { width: 3.2rem; height: 3.2rem; }

/* Bundle & Save quantity cards (product page). */
.bundle-picker { display: grid; gap: 1.6rem; min-width: 0; }
.bundle-picker__title { display: flex; align-items: center; gap: 1.2rem; font-size: 1.3rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; }
.bundle-picker__title::before, .bundle-picker__title::after { content: ''; flex: 1; min-width: 2rem; height: 0.1rem; background: rgba(var(--color-text-rgb), 0.35); }
.bundle-option { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.4rem; padding: 1.8rem 1.8rem; border: 0.15rem solid #F5BE8A; border-radius: 0.8rem; background: #FFFAF4; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease; }
.bundle-option:hover { border-color: #F79A45; }
.bundle-option.is-selected { border: 0.2rem solid #F87705; background: #FFEEDC; padding: 1.75rem; box-shadow: 0 0.2rem 1rem rgba(248, 119, 5, 0.15); }
.bundle-option__radio { appearance: none; -webkit-appearance: none; display: grid; place-content: center; width: 2.4rem; height: 2.4rem; margin: 0; border: 0.2rem solid #F5A867; border-radius: 50%; background: #FFFFFF; cursor: pointer; }
.bundle-option__radio:checked { border-color: #F87705; }
.bundle-option__radio:checked::after { content: ''; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #F87705; }
.bundle-option__radio:focus-visible { outline: 0.2rem solid var(--color-accent-1); outline-offset: 0.2rem; }
.bundle-option__title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; font-size: 1.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.bundle-option__badge { padding: 0.3rem 0.9rem; border-radius: 99rem; background: #FDDCB8; color: #00030C; font-size: 1.2rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.4; white-space: nowrap; }
.bundle-option__save { display: block; margin-top: 0.4rem; font-size: 1.4rem; color: rgba(var(--color-text-rgb), 0.75); }
.bundle-option__prices { text-align: right; line-height: 1.3; }
.bundle-option__price { display: block; color: #00030C; font-size: 1.9rem; font-weight: 800; }
.bundle-option__compare { display: block; font-size: 1.4rem; color: rgba(var(--color-text-rgb), 0.55); }
.bundle-option__ribbon { position: absolute; top: -1.3rem; right: 1.6rem; padding: 0.4rem 1.2rem; border-radius: 0.4rem 0.4rem 0 0.4rem; background: var(--color-accent-1); color: #00030C; font-size: 1.2rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3; }
.bundle-option__ribbon::after { content: ''; position: absolute; right: -0.8rem; top: 0; border-left: 0.8rem solid #B85600; border-bottom: 0.8rem solid transparent; }
@media screen and (max-width: 749px) {
  .bundle-picker__title { font-size: 1.15rem; gap: 0.8rem; }
  .bundle-option { gap: 1.1rem; padding: 1.6rem 1.3rem; }
  .bundle-option.is-selected { padding: 1.55rem 1.25rem; }
  .bundle-option__title { font-size: 1.7rem; }
  .bundle-option__price { font-size: 1.8rem; }
  .bundle-option__ribbon { right: 1.2rem; }
}

/* Bundle & Save: per-item colour selects (#1, #2), shown on the selected multi-buy. */
.bundle-option:not(.is-selected) .bundle-option__units { display: none; }
.bundle-option__units { display: grid; gap: 0.8rem; margin-top: 1.2rem; }
.bundle-unit { display: flex; align-items: center; gap: 0.8rem; }
.bundle-unit__label { min-width: 2.6rem; font-size: 1.6rem; font-weight: 800; }
.bundle-unit__select { appearance: none; -webkit-appearance: none; min-height: 3.6rem; padding: 0.5rem 3.2rem 0.5rem 1.1rem; border: 0.15rem solid #F5BE8A; border-radius: 0.6rem; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2300030C' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 1rem center; color: #00030C; font: inherit; font-size: 1.4rem; cursor: pointer; }
.bundle-unit__select:hover { border-color: #F79A45; }
.bundle-unit__select:focus-visible { outline: none; border-color: #F87705; box-shadow: 0 0 0 0.2rem rgba(248, 119, 5, 0.25); }

/* Checkout "Your order" rows: thumbnail + quantity badge, name, variant. */
.woocommerce-checkout-review-order-table .cart_item td { vertical-align: middle; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.woocommerce-checkout-review-order-table dl.variation { display: none; }
.tlb-ro-item { display: flex; align-items: center; gap: 1.4rem; }
.tlb-ro-thumb { position: relative; flex: 0 0 6.4rem; width: 6.4rem; height: 6.4rem; border: 0.1rem solid rgba(var(--color-text-rgb), 0.15); border-radius: 0.8rem; background: #FFFFFF; }
.tlb-ro-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0.7rem; margin: 0; }
.tlb-ro-qty { position: absolute; top: -0.8rem; right: -0.8rem; display: grid; place-content: center; min-width: 2.2rem; height: 2.2rem; padding: 0 0.6rem; border-radius: 1.1rem; background: #00030C; color: #FFFFFF; font-size: 1.2rem; font-weight: 700; line-height: 1; }
.tlb-ro-text { display: grid; gap: 0.3rem; min-width: 0; }
.tlb-ro-name { font-size: 1.4rem; line-height: 1.35; text-transform: none; }
.tlb-ro-variant { font-size: 1.3rem; color: rgba(var(--color-text-rgb), 0.6); }
.woocommerce-checkout-review-order-table .cart_item .product-total { text-align: right; white-space: nowrap; }
/* Multi-buy saving badge: solid orange so the dollar saving stands out. */
.bundle-option__badge--save { background: #F87705; color: #fff; font-weight: 800; font-size: 1.3rem; padding: 0.35rem 1rem; box-shadow: 0 2px 6px rgba(248, 119, 5, 0.35); }

/* Add-to-cart overlay: covers the page from the tap until checkout loads. */
.tlb-atc-overlay { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; background: rgba(0, 3, 12, 0.72); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); cursor: wait; }
.tlb-atc-overlay.is-active { display: flex; }
.tlb-atc-overlay__box { width: min(32rem, calc(100% - 4rem)); padding: 3rem 2.4rem; border-radius: 1.2rem; background: #fff; text-align: center; box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.35); }
.tlb-atc-overlay__spinner { display: block; width: 4.4rem; height: 4.4rem; margin: 0 auto 1.6rem; border: 0.4rem solid #FFEEDC; border-top-color: #F87705; border-radius: 50%; animation: tlb-atc-spin 0.8s linear infinite; }
.tlb-atc-overlay__text { margin: 0 0 0.6rem; font-size: 1.8rem; font-weight: 800; color: #00030C; }
.tlb-atc-overlay__hint { margin: 0; font-size: 1.3rem; color: #4d525c; }
html.tlb-atc-locked, html.tlb-atc-locked body { overflow: hidden !important; touch-action: none; }
html.tlb-atc-locked body > *:not(.tlb-atc-overlay) { pointer-events: none !important; user-select: none; }
@keyframes tlb-atc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tlb-atc-overlay__spinner { animation-duration: 2s; } }