/* ==========================================================================
   Aradhnaa - storefront stylesheet
   Tokens -> base -> layout -> components -> pages -> utilities
   ========================================================================== */

/* ------------------------------------------------------------- tokens --- */
:root {
  /* brand */
  --brand:            #452916;
  --brand-rgb:        69, 41, 22;
  --brand-soft:       #6b4a30;
  --olive:            #3f4b33;
  --cream:            #fbf6ee;
  --cream-deep:       #f3ebdd;
  --sand:             #e8dcc8;
  --white:            #ffffff;

  /* semantic */
  --bg:               var(--white);
  --surface:          var(--white);
  --surface-alt:      var(--cream);
  --text:             rgba(69, 41, 22, 0.75);
  --text-muted:       #7a6552;
  --text-invert:      #efecec;
  --footer-bg:        #716a56; /* rgb(113,106,86) */
  --border:           rgba(var(--brand-rgb), 0.14);
  --border-strong:    rgba(var(--brand-rgb), 0.28);
  --ring:             #8a6b45;

  --success:          #3f6b45;
  --success-bg:       #eef5ee;
  --danger:           #9b2f26;
  --danger-bg:        #fbeeec;
  --info-bg:          #f2f0e6;
  --whatsapp:         #1f7a45;

  /* type - mirrors the reference storefront: Muli headings + Karla body,
     both at weight 300, sentence case, 0.6px tracking, 1.8 line-height. */
  --font-head: 'Mulish', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Karla', 'Segoe UI', system-ui, sans-serif;
  --w-light:  300;
  --w-body:   300;
  --w-medium: 400;
  --track:    0.6px;
  --track-wide: 1px;
  --fs-xs:   0.8125rem;  /* 13px - prices, meta */
  --fs-sm:   0.9375rem;  /* 15px - buttons, small copy */
  --fs-base: 1rem;       /* 16px - body */
  --fs-md:   1.125rem;   /* 18px - nav, card titles */
  --fs-lg:   1.5rem;     /* 24px */
  --fs-xl:   2rem;       /* 32px */
  --fs-2xl:  2.25rem;    /* 36px - section titles */
  --fs-3xl:  2.5rem;     /* 40px - hero / page titles */

  /* space - 4/8 rhythm */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;

  /* shape */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(var(--brand-rgb), .06);
  --shadow-md: 0 6px 20px rgba(var(--brand-rgb), .08);
  --shadow-lg: 0 18px 48px rgba(var(--brand-rgb), .14);

  /* motion */
  --t-fast: 140ms cubic-bezier(.2, 0, .2, 1);
  --t-base: 220ms cubic-bezier(.2, 0, .2, 1);
  --t-slow: 380ms cubic-bezier(.2, 0, .2, 1);

  /* layout */
  --wrap: 75.25rem; /* 1204px = 1140px content + 32px gutters, matching the reference */
  --header-h: 122px;

  /* one vertical rhythm for every section band on every page */
  --section-pad: 1.5rem;

  /* z-scale */
  --z-header: 40; --z-drawer: 80; --z-modal: 90; --z-flash: 100;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* `clip` stops sideways scrolling without turning html into a scroll
     container, which is what `hidden` would do (and would break sticky). */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--w-body);
  line-height: 1.8;
  letter-spacing: var(--track);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Lock the scroll container, not the body: the page keeps its position and
   there is nothing to restore, so opening a drawer never jumps to the top. */
html.is-locked, body.is-locked { overflow: hidden; }
html.is-locked { scrollbar-gutter: stable; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--w-light);
  line-height: 1.3;
  color: var(--brand);
  margin: 0 0 var(--sp-3);
  letter-spacing: var(--track);
  text-wrap: balance;
}

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-color: rgba(var(--brand-rgb), .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

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

button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--sand); color: var(--brand); }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100%;
  z-index: var(--z-flash);
  background: var(--brand); color: var(--text-invert);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-4); }

main:focus { outline: none; }

/* Guard against grid/flex blowout - the usual cause of sideways scroll. */
.wrap > *, .grid > *, .rail__track > *, .post-grid > *, .coll-grid > * { min-width: 0; }

/* ------------------------------------------------------------- layout --- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 25px; /* reference mobile gutter: (375 - 324) / 2 */
}
@media (min-width: 48rem)  { .wrap { padding-inline: 32px; } }

.section, .section--tight { padding-block: var(--section-pad); }
.section--cream { background: var(--surface-alt); }

@media (min-width: 62rem) {
  :root { --section-pad: 2.5rem; }
}

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-6); flex-wrap: wrap;
}
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__head--center .eyebrow { margin-bottom: 2px; }
.section__head--center .section__title { margin-bottom: var(--sp-4); }
.section__title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, var(--fs-3xl)); margin: 0 0 var(--sp-5); }
.section__lead { color: var(--text-muted); max-width: 46ch; margin: var(--sp-2) 0 0; }
.section__title--center { text-align: center; margin-bottom: var(--sp-6); }
.section__lead--center {
  text-align: center; margin: calc(var(--sp-5) * -1) auto var(--sp-6);
  max-width: 46ch;
}
.section__more { text-align: center; margin: var(--sp-6) 0 0; }

.eyebrow {
  font-size: var(--fs-xs); letter-spacing: var(--track);
  color: var(--text-muted); margin: 0 0 var(--sp-2); font-weight: var(--w-body);
}

.grid { display: grid; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.grid > li, .rail__item { display: flex; }
.grid > li > .card, .rail__item > .card { width: 100%; }
.grid--products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 20px; column-gap: 10px;
}
@media (min-width: 75rem) {
  .grid--products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 40px; column-gap: 20px;
  }
}

/* --------------------------------------------------------- announcement --- */
.announcement {
  background: #3f5147; color: rgba(239, 236, 236, .75);
}
.announcement__inner p {
  margin: 0; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 13px; font-weight: var(--w-light);
  letter-spacing: 1px; line-height: 1.3; color: #efecec; text-align: center;
}
.announcement__icon { flex: none; }
.announcement__inner {
  display: flex; align-items: center; justify-content: center;
  min-height: 49px; text-align: center;
}
.announcement p { margin: 0; }
.announcement__icon { opacity: .85; flex: none; }

/* ------------------------------------------------------------ live dot --- */
/* "On air" marker beside Aradhnaa Radio. */
.nav__radio { display: inline-flex; align-items: center; gap: 7px; }
/* the drawer sets `display: block` on its links, which would flatten the dot */
.offcanvas__nav a.nav__radio { display: flex; align-items: center; gap: 7px; }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: #2fbf5a; position: relative;
  box-shadow: 0 0 0 3px rgba(47, 191, 90, .22);
}
.live-dot::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid rgba(47, 191, 90, .55);
  animation: live-pulse 2s cubic-bezier(.2, .6, .3, 1) infinite;
}
@keyframes live-pulse {
  0%   { transform: scale(.7); opacity: .9; }
  80%  { transform: scale(2);  opacity: 0; }
  100% { transform: scale(2);  opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot::after { animation: none; }
}

/* -------------------------------------------------------------- header --- */
/* Header and marquee are pinned together as one unit; the announcement bar
   sits above them and scrolls away. */
.site-top {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--bg);
}
.site-top.is-stuck { box-shadow: var(--shadow-sm); }
/* pinned, the bar gives back some of its padding so it takes less of the screen */
.site-top.is-stuck .header { padding-block: 10px; }

.header {
  position: static; z-index: var(--z-header);
  background: transparent;
  padding-block: 20px; /* reference header padding */
}

/* anchored sections clear the pinned bar instead of landing under it */
[id] { scroll-margin-top: 9rem; }

.header__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: var(--sp-2);
  min-height: 64px;
}
@media (min-width: 62rem) {
  .header__inner {
    grid-template-columns: 1fr auto 1fr; min-height: 60px;
    max-width: 1200px; padding-inline: 30px;
  }
  .header__burger { display: none !important; }
  /* reference: search left (x=142), logo centre, account+cart right */
  .header__search-btn { grid-column: 1; justify-self: start; }
  .header__logo { grid-column: 2; }
  .header__actions { grid-column: 3; }
}

.header__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: none; color: var(--brand);
  border-radius: var(--r-pill); position: relative;
  transition: background var(--t-fast), color var(--t-fast);
}
.header__icon:hover { background: var(--cream); }

.header__logo {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; grid-column: 3; justify-self: center; padding-inline: var(--sp-2);
}
@media (min-width: 62rem) { .header__logo { grid-column: 2; } }

.header__logo-word {
  font-family: var(--font-head); font-size: clamp(1.05rem, .7rem + 1.1vw, 1.6rem);
  font-weight: var(--w-light); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand); white-space: nowrap; line-height: 1.15;
}
.header__logo-tag {
  font-size: 0.6875rem; letter-spacing: var(--track);
  color: var(--text-muted); white-space: nowrap;
}
@media (max-width: 30rem) { .header__logo-tag { display: none; } }

.header__actions { display: flex; align-items: center; justify-self: end; }
@media (max-width: 61.99rem) {
  .header__icon--account { display: none; }
  .header { padding-block: 10px; }
  .header__inner {
    min-height: 44px;
    padding-inline: 10px;
    grid-template-columns: 88px 1fr 44px 44px;
  }
  .header__burger  { margin-inline-start: 0; }   /* nudged in from the edge */
  .header__actions { margin-inline-end: -6px; }
  .header__burger     { grid-column: 1; grid-row: 1; justify-self: start; }
  .header__logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .header__search-btn { grid-column: 3; grid-row: 1; }
  .header__actions    { grid-column: 4; grid-row: 1; }
}

.header__cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--brand); color: var(--text-invert);
  border-radius: var(--r-pill);
  font-size: 0.625rem; font-weight: 700; line-height: 18px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.header__cart-count.is-empty { display: none; }

/* nav */
.nav { display: none; text-align: center; }
@media (min-width: 62rem) { .nav { display: block; } }

.nav__list {
  display: inline-flex; justify-content: center; gap: 0;
  list-style: none; margin: 0 auto; padding: 0; max-width: none; width: auto;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 12px; line-height: 18.2px; text-decoration: none;
  font-size: 14px; font-weight: var(--w-body); letter-spacing: var(--track);
  color: rgba(var(--brand-rgb), .75); position: relative;
  transition: color var(--t-fast);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base);
}
.nav__link:hover, .nav__link.is-active { color: var(--brand); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__chev { transition: transform var(--t-fast); }
.nav__item--has-children > .nav__link { padding-right: 27px; }
.nav__item--has-children > .nav__link .nav__chev {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
}
.nav__item--has-children:hover > .nav__link .nav__chev { transform: translateY(-50%) rotate(180deg); }
.nav__item--has-children:hover .nav__chev { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute; top: 100%; left: 50%; translate: -50% 6px;
  min-width: 15rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: var(--sp-2);
  opacity: 0; visibility: hidden; transition: opacity var(--t-base), translate var(--t-base), visibility var(--t-base);
}
.nav__item--has-children:hover .nav__dropdown,
.nav__item--has-children:focus-within .nav__dropdown {
  opacity: 1; visibility: visible; translate: -50% 0;
}
.nav__dropdown ul { list-style: none; margin: 0; padding: 0; }
.nav__dropdown a {
  display: block; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm);
  text-decoration: none; font-size: var(--fs-sm); color: var(--text);
}
.nav__dropdown a:hover { background: var(--cream); }

/* ---------------------------------------------------------- offcanvas --- */
.offcanvas { position: fixed; inset: 0; z-index: var(--z-drawer); }
.offcanvas[hidden] { display: none; }
.offcanvas__scrim {
  position: absolute; inset: 0; background: rgba(var(--brand-rgb), .5);
  opacity: 0; transition: opacity var(--t-base);
}
.offcanvas.is-open .offcanvas__scrim { opacity: 1; }

.offcanvas__panel {
  position: absolute; inset-block: 0; left: 0;
  width: min(22rem, 88vw); background: var(--surface);
  display: flex; flex-direction: column;
  translate: -100% 0; transition: translate var(--t-slow);
  padding-bottom: env(safe-area-inset-bottom);
}
.offcanvas--right .offcanvas__panel { left: auto; right: 0; translate: 100% 0; width: min(27rem, 92vw); }
.offcanvas.is-open .offcanvas__panel { translate: 0 0; }

.offcanvas__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4); border-bottom: 1px solid var(--border); flex: none;
}
.offcanvas__title {
  font-family: var(--font-head); font-size: var(--fs-md);
  letter-spacing: var(--track); color: var(--brand);
}
.offcanvas__nav {
  padding: var(--sp-4); overflow-y: auto; flex: 1;
  display: flex; flex-direction: column;
}
.offcanvas__secondary { margin-top: auto; padding-top: var(--sp-6); }
.offcanvas__nav a {
  display: block; padding: 11px 0; text-decoration: none;
  font-size: var(--fs-sm); color: var(--brand);
}
/* sub-items read as secondary, but keep the main list's left edge */
.offcanvas__nav a.is-sub { font-size: 13px; color: var(--text-muted); }
.offcanvas__label {
  margin: var(--sp-5) 0 var(--sp-1); font-size: var(--fs-xs);
  letter-spacing: var(--track); color: var(--text-muted);
}
.offcanvas__label:first-child { margin-top: 0; }
.offcanvas__foot { border-top: 1px solid var(--border); padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.offcanvas__account {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) 0; text-decoration: none;
  font-size: var(--fs-sm); color: var(--brand);
}
.offcanvas__account-icon { flex: none; color: var(--brand); }
.offcanvas__account:hover span { text-decoration: underline; text-underline-offset: 3px; }

.offcanvas__socials {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) 0 0;
}
.offcanvas__socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); color: var(--brand);
  transition: background var(--t-fast);
}
.offcanvas__socials a:hover { background: var(--cream); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: none;
  border-radius: var(--r-pill); color: var(--brand);
}
.icon-btn:hover { background: var(--cream); }

/* solid header icons - the burger and search only; the bag and the account
   glyph are drawn as outlines */
.icon--solid { fill: currentColor; stroke: none; }
.nav__chev { transition: transform var(--t-fast); }

/* ------------------------------------------------------------ buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 47px; padding: var(--sp-2) 30px;
  border: 1px solid transparent; border-radius: 7px;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: var(--w-body);
  letter-spacing: var(--track-wide); text-decoration: none;
  cursor: pointer; text-align: center; line-height: 1.4;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
/* Button labels are uppercase site-wide - set here, not typed into the markup,
   so screen readers and the database still hold the sentence-case text. */
button, .btn, .card__cta, .link-btn, input[type="submit"] { text-transform: uppercase; }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--brand); color: var(--text-invert); }
.btn--primary:hover:not(:disabled) { background: var(--brand-soft); }

.btn--secondary { background: var(--white); color: var(--brand); border-color: var(--border-strong); }
.btn--secondary:hover:not(:disabled) { background: var(--cream); border-color: var(--brand); }

.btn--ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn--ghost:hover:not(:disabled) { background: var(--cream); }

.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover:not(:disabled) { background: #196237; }

.btn--lg { min-height: 54px; padding-inline: var(--sp-6); font-size: var(--fs-base); }
.btn--sm { min-height: 38px; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); }
.btn--block { display: flex; width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .7; }

.link-btn {
  background: none; border: 0; padding: var(--sp-1) 0;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-sm); color: var(--text-muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--brand); }
.link-btn--danger:hover { color: var(--danger); }

.link-more {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); letter-spacing: var(--track);
  text-decoration: none; color: var(--brand); border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
}
.link-more:hover { border-color: var(--brand); }

/* --------------------------------------------------------------- hero --- */
/* Reference: full-bleed slideshow, fixed 600px, artwork carries the headline. */
.hero { position: relative; background: var(--cream); }
.hero__track { position: relative; }

.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  /* containing block for .hero__caption */
  transition: opacity var(--t-slow); pointer-events: none;
}
.hero__slide.is-active { position: relative; opacity: 1; pointer-events: auto; }
.hero__slide:not(.is-active) { visibility: hidden; }

.hero__dots {
  position: absolute; inset-inline: 0; bottom: var(--sp-3);
  display: flex; justify-content: center; align-items: center; gap: 8px;
  z-index: 2;
}
.hero__dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .45); cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.hero__dot.is-active { background: #fff; transform: scale(1.15); }

.hero__link { display: block; }
/* Back to the original frame heights. The slides are supplied at 2.38:1, which
   is the desktop frame almost exactly, so nothing is lost there; the shorter
   phone and tablet frames trim the sides. Send a separate 375x300 crop per
   slide if you would rather the phone showed a different part of the photo. */
.hero__img {
  width: 100%; height: 600px; object-fit: cover; display: block;
  background: var(--cream);
}
@media (max-width: 62rem) { .hero__img { height: 420px; } }
@media (max-width: 40rem) { .hero__img { height: 300px; } }

/* Caption over the photograph, bottom left, on a gradient that keeps the text
   readable whatever the image behind it is doing. */
.hero__caption {
  position: absolute; inset-inline: 0; bottom: 0; pointer-events: none;
  padding-block: var(--sp-7) var(--sp-5);
  background: linear-gradient(to top, rgba(28, 16, 8, .72), rgba(28, 16, 8, 0));
}
.hero__caption-inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.hero__title {
  margin: 0; font-family: var(--font-head);
  font-size: clamp(1.375rem, 1rem + 2.2vw, var(--fs-3xl));
  font-weight: var(--w-light); letter-spacing: var(--track);
  line-height: 1.2; color: #fff; max-width: 20ch;
}
.hero__text {
  margin: 0; font-size: var(--fs-sm); line-height: 1.5;
  color: rgba(255, 255, 255, .9); max-width: 42ch;
}
.hero__cta { pointer-events: auto; margin-top: var(--sp-3); }
@media (max-width: 47.99rem) {
  .hero__caption { padding-block: var(--sp-6) var(--sp-4); }
  .hero__text { display: none; }
  .hero__cta { min-height: 40px; padding-inline: var(--sp-4); font-size: var(--fs-xs); }
}

/* -------------------------------------------------------- collections --- */
/* Compact category tiles: two per row, with the label sitting on the image. */
.coll-grid {
  display: grid; gap: 12px; list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 62rem) { .coll-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.coll-grid--all { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.coll-grid--feature { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 62rem) { .coll-grid--feature { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.coll-grid--feature > .coll-card:first-child { grid-column: 1 / -1; }
.coll-grid--feature > .coll-card:first-child .coll-card__media img { aspect-ratio: 8 / 9; }
@media (min-width: 62rem) {
  .coll-grid--feature > .coll-card:first-child .coll-card__media img { aspect-ratio: 10 / 9; }
}
.coll-grid--feature > .coll-card:first-child .coll-card__title { font-size: 14px; }

.coll-card a {
  display: block; position: relative; text-decoration: none;
  border-radius: 6px; overflow: hidden; background: var(--cream);
}
.coll-card__media { display: block; }
.coll-card__media img {
  width: 100%; aspect-ratio: 8 / 9; object-fit: cover; display: block;
  transition: transform var(--t-slow);
}
/* Half as tall again on phone and tablet, as asked. A wide screen is a
   different problem: 3/4 of a 562px column is a 750px tile, taller than the
   feature card above it and most of a laptop screen, so desktop takes a
   gentler step up and the feature card stays the tallest thing here. */
@media (min-width: 62rem) { .coll-card__media img { aspect-ratio: 4 / 3; } }
.coll-card a:hover .coll-card__media img { transform: scale(1.04); }

.coll-card__bar {
  position: absolute; inset-inline: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(var(--brand-rgb), .88), rgba(var(--brand-rgb), .35));
  color: var(--text-invert);
}
.coll-card__title {
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase; color: #fff; line-height: 1.3;
}
.coll-card__chev { flex: none; color: #fff; }
.coll-card a:hover .coll-card__chev { transform: translateX(3px); }
.coll-card__sub, .coll-card__cta, .coll-card__arrow { display: none; }

/* ------------------------------------------------------- product card --- */
/* Measured from the reference: 285x285 media, 0.8px hairline, 6px radius. */
.card { display: flex; flex-direction: column; height: 100%; }

.card__media {
  position: relative; display: block; overflow: hidden;
  border: 0.8px solid rgba(var(--brand-rgb), 0.1); border-radius: 6px;
  background: var(--white);
}
.card__media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 5px;
  transition: opacity var(--t-slow);
}
.card__media-alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__media-alt { opacity: 1; }

/* Reference badge: olive ground, cream text, 12px, sentence case. */
.badge {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  background: #3f5147; color: #efecec;
  border: 0.8px solid rgba(239, 236, 236, .1); border-radius: 6px;
  padding: 5px 13px 6px; font-family: var(--font-body); font-size: 12px;
  font-weight: var(--w-body); letter-spacing: 1px; line-height: 12px;
}
.badge--soldout { background: rgba(var(--brand-rgb), .55); }

.card__body {
  padding-top: 17px; display: flex; flex-direction: column;
  gap: 0; flex: 1;
}
.card__title {
  margin: 0 0 10px; font-family: var(--font-head); font-size: 13px;
  font-weight: var(--w-light); line-height: 16.9px; letter-spacing: var(--track);
  color: var(--brand);
}
.card__title a { display: block; text-decoration: none; color: inherit; }
.card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.card__price {
  display: block; margin-top: auto; margin-bottom: 17px; line-height: 24px;
}
.card__was {
  display: inline-block;
  font-size: var(--fs-xs); font-weight: var(--w-body); letter-spacing: var(--track-wide);
  color: rgba(var(--brand-rgb), .75); text-decoration: line-through;
  line-height: 19.5px; margin-right: 10px;
  font-variant-numeric: tabular-nums;
}
.card__now {
  display: inline-block;
  font-size: var(--fs-base); font-weight: var(--w-body); letter-spacing: 1px;
  line-height: 24px; color: var(--brand); font-variant-numeric: tabular-nums;
}

/* Full-width white CTA, no border - matches "Choose options" on the reference. */
.card__body form { margin-top: 0; }
.card__cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 47px; margin-top: 0; padding: 8px;
  border: 0; border-radius: 7px;
  background: var(--white); color: var(--brand);
  font-family: var(--font-body); font-size: 15px; font-weight: var(--w-body);
  letter-spacing: 1px; line-height: 18px; text-decoration: none; text-align: center;
  margin-bottom: 10px; white-space: nowrap;
  cursor: pointer; transition: background var(--t-fast);
  position: relative; isolation: isolate;
}
/* The reference draws the button outline with a pseudo-element ring rather
   than a border: inset 1px, 6px radius, 1.3px brown over a 1px white ring. */
.card__cta::after {
  content: ''; position: absolute; inset: 1px;
  border-radius: 6px; pointer-events: none; z-index: 1;
  box-shadow: 0 0 0 1.3px var(--brand), 0 0 0 1px #fff;
}
.card__body form .card__cta { margin-top: 0; }
@media (max-width: 61.99rem) {
  .card__price { margin-bottom: 13px; }
}

/* Narrow cards: keep both prices on one row. At the desktop sizes (13px + 10px
   + 16px) the pair needs ~166px, which does not fit a ~148px card, so the type
   steps down and the gap tightens rather than wrapping to a second line. */
@media (max-width: 47.99rem) {
  .card__price { white-space: nowrap; }
  .card__was { font-size: 13px; line-height: 19.5px; letter-spacing: 0; margin-right: 5px; }
  .card__now { font-size: 16px; line-height: 24px; letter-spacing: 0; }
}
/* Stepper sits in the button's footprint, so the card does not change height
   when a line goes into the cart. */
.card__buy { margin-top: 0; }
.card__buy form[hidden], .card__qty[hidden] { display: none; }
.card__qty {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 47px; margin-bottom: 10px; padding: 0 4px;
  border-radius: 7px; background: var(--white);
  position: relative; isolation: isolate;
}
.card__qty::after {
  content: ''; position: absolute; inset: 1px;
  border-radius: 6px; pointer-events: none; z-index: 1;
  box-shadow: 0 0 0 1.3px var(--brand), 0 0 0 1px #fff;
}
.card__qty-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 0; border-radius: 6px;
  background: none; color: var(--brand); cursor: pointer;
}
.card__qty-btn:hover { background: var(--cream); }
.card__qty-value {
  font-family: var(--font-body); font-size: 15px; letter-spacing: 1px;
  color: var(--brand); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: center;
}
@media (max-width: 61.99rem) {
  .card__qty-value { font-size: 13px; letter-spacing: .5px; }
  .card__qty-btn { width: 32px; height: 32px; }
}

.card__cta:hover:not(:disabled) { background: var(--cream); }
.card__cta:disabled { opacity: .5; cursor: not-allowed; }



@media (max-width: 61.99rem) {
  .card__title { font-size: 12px; line-height: 15.6px; margin-bottom: 5px; }
  .card__body { padding-top: 13px; }
  /* Uppercase labels are wider: step the type down so "Choose options" stays on
     one line and every CTA in the row keeps the same height. */
  .card__cta { font-size: 13px; letter-spacing: .5px; }
}

/* ---------------------------------------------------------- custom kit --- */
/* Same card as any product - identical width, border, type and button - with
   the three steps set beside it. The column width is derived from the same
   variables the product rail uses, so the two always measure the same. */
/* The block sits on the same warm ground as the impact strip, so everything
   inside it is restated for a dark background. */
.ckit-band { background: var(--footer-bg); color: var(--text-invert); }
.ckit-band .ckit__heading { color: #fff; }
.ckit-band .ckit__eyebrow { color: rgba(239, 236, 236, .7); }
.ckit-band .ckit__card .card__media {
  background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2);
}
.ckit-band .ckit__media { background: rgba(255, 255, 255, .07); }
.ckit-band .ckit__icon { color: #fff; opacity: .8; }
.ckit-band .card__title { color: #fff; }
.ckit-band .ckit__note { color: rgba(239, 236, 236, .78); }
.ckit-band .ckit__tag { color: rgba(239, 236, 236, .6); }
.ckit-band .ckit__num {
  background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .32); color: #fff;
}
.ckit-band .ckit__step-title { color: #fff; }
.ckit-band .ckit__step-text { color: rgba(239, 236, 236, .78); }
.ckit-band .ckit__cta { background: transparent; color: #fff; }
.ckit-band .ckit__cta::after {
  box-shadow: 0 0 0 1.3px rgba(255, 255, 255, .75), 0 0 0 1px transparent;
}
.ckit-band .ckit__cta:hover { background: rgba(255, 255, 255, .12); }

.ckit__head {
  display: flex; align-items: baseline; gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.ckit__heading {
  margin: 0; font-family: var(--font-head);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, var(--fs-3xl));
  font-weight: var(--w-light); letter-spacing: var(--track); color: var(--brand);
}
.ckit__eyebrow {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-xs);
  letter-spacing: var(--track); color: var(--text-muted);
}

.ckit {
  --cards-per-view: 2.05;
  --card-gap: 20px;
  display: grid; align-items: start; gap: var(--card-gap);
  grid-template-columns:
    calc((100% - (var(--cards-per-view) - 1) * var(--card-gap)) / var(--cards-per-view))
    minmax(0, 1fr);
  /* the rail pads and bleeds its track; match both or the card comes out a few
     pixels narrower than the product cards above it */
  padding-inline: var(--sp-1);
}
@media (min-width: 75rem) { .ckit { --cards-per-view: 4; margin-inline: -30px; } }

.ckit__media {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; background: var(--cream);
}
.ckit__icon { color: var(--brand); opacity: .55; }
.ckit__note {
  margin: 0 0 var(--sp-2); font-size: var(--fs-xs); line-height: 1.6;
  color: var(--text-muted);
}
.ckit__tag {
  margin: 0; font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted);
}
/* One wide action under both columns, so the block reads as a single unit
   rather than a narrow button hanging off the card. */
.ckit__cta { grid-column: 1 / -1; width: 100%; margin-top: var(--sp-2); margin-bottom: 0; }

.ckit__steps { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
/* Beside a 283px card the column is wide enough that a stacked list strands a
   lot of white space, so the steps run across it instead. */
@media (min-width: 62rem) {
  .ckit__steps { grid-template-columns: repeat(3, 1fr); column-gap: var(--sp-6); }
  .ckit__step { padding-bottom: 0; }
}
.ckit__step { display: flex; align-items: flex-start; gap: var(--sp-3); padding: 0 0 var(--sp-4); }
.ckit__step:last-child { padding-bottom: 0; }
.ckit__num {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--r-pill);
  border: 0.8px solid rgba(var(--brand-rgb), .3);
  background: var(--cream); color: var(--brand);
  font-family: var(--font-body); font-size: var(--fs-xs); line-height: 1;
}
.ckit__step-body { min-width: 0; }
.ckit__step-title {
  margin: 0 0 2px; font-family: var(--font-head); font-size: 13px;
  font-weight: var(--w-light); line-height: 16.9px; letter-spacing: var(--track);
  color: var(--brand);
}
.ckit__step-text { margin: 0; font-size: var(--fs-xs); line-height: 1.6; color: var(--text-muted); }

/* ------------------------------------------------------------- dialog --- */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); }
.modal[hidden] { display: none; }
.modal__scrim {
  position: absolute; inset: 0; background: rgba(var(--brand-rgb), .5);
  opacity: 0; transition: opacity var(--t-base);
}
.modal.is-open .modal__scrim { opacity: 1; }
.modal__panel {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: min(30rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  overflow-y: auto; padding: var(--sp-5);
  background: var(--white); border-radius: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; scale: .97; transition: opacity var(--t-base), scale var(--t-base);
}
.modal.is-open .modal__panel { opacity: 1; scale: 1; }
.modal__close {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 0; border-radius: var(--r-pill);
  background: none; color: var(--brand); cursor: pointer;
}
.modal__close:hover { background: var(--cream); }
.modal__title {
  margin: 0 0 var(--sp-4); padding-right: var(--sp-6);
  font-family: var(--font-head); font-size: var(--fs-lg);
  font-weight: var(--w-light); letter-spacing: var(--track); color: var(--brand);
}
.modal__lead { margin: 0 0 var(--sp-5); font-size: var(--fs-sm); color: var(--text-muted); }
.ckit__form .field:last-of-type { margin-bottom: var(--sp-5); }

/* --------------------------------------------------------------- rail --- */
.rail {
  position: relative; min-width: 0;
  --cards-per-view: 2.05;  /* fractional so the next card peeks, as the reference does */
  --card-gap: 20px;
}
@media (min-width: 75rem) { .rail { --cards-per-view: 4; } }
@media (min-width: 75rem) {
  .rail { margin-inline: -30px; }
}
/* heading sits tighter to the slider on the reference */
#bestsellers-heading { margin-bottom: 10px; }
.rail__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc(
    (100% - (var(--cards-per-view) - 1) * var(--card-gap)) / var(--cards-per-view)
  );
  gap: var(--card-gap); list-style: none; margin: 0; padding: 0 var(--sp-1) var(--sp-2);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; overscroll-behavior-x: contain;
  min-width: 0; max-width: 100%;
}
.rail__track > * { scroll-snap-align: start; }


.rail__nav {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-4); margin-top: var(--sp-5);
}
.rail__arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 0.8px solid rgba(var(--brand-rgb), .25); background: var(--white); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), opacity var(--t-fast);
}
.rail__arrow:hover:not([disabled]) { background: var(--cream); }
.rail__arrow[disabled] { opacity: 0; pointer-events: none; }

/* Injected by the rail script, so every rail gets them. Sitting just outside
   the track keeps them clear of the cards. */
.rail__arrow--prev, .rail__arrow--next {
  position: absolute; top: 38%; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-pill);
  border: 0.8px solid rgba(var(--brand-rgb), .25);
  background: var(--white); color: var(--brand); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--t-fast), opacity var(--t-fast);
}
.rail__arrow--prev { left: -6px; }
.rail__arrow--next { right: -6px; }
.rail__arrow--prev svg { transform: rotate(180deg); }
@media (min-width: 75rem) {
  .rail__arrow--prev { left: 16px; }
  .rail__arrow--next { right: 16px; }
}
.rail__counter {
  margin: 0; font-size: 12px; color: rgba(var(--brand-rgb), .75);
  letter-spacing: var(--track); font-variant-numeric: tabular-nums; min-width: 5rem;
  text-align: center;
}

/* ------------------------------------------------------------ marquee --- */

.marquee {
  background: #465245; color: #f8f6f2;
  overflow: hidden; padding-block: 13px;
  display: flex; align-items: center;
}
.marquee__track {
  display: flex; gap: var(--sp-7); width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px; font-weight: 400; letter-spacing: 2px;
  text-transform: uppercase; white-space: nowrap;
  padding-inline: 30px;
}
.marquee__star { opacity: .7; }
/* separates one offer from the next as the strip scrolls */
.marquee__dot { margin-inline-start: 30px; opacity: .6; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }

/* reference mobile marquee: 42px band, 11px/1.2px text, 18px gutters */
@media (max-width: 61.99rem) {
  .marquee { padding-block: 10px; }
  .marquee__item { font-size: 11px; letter-spacing: 1.2px; padding-inline: 18px; }
  .announcement__inner { min-height: 45px; }
  .announcement__inner p { font-size: 12px; }
}


/* ------------------------------------------------------- image + text --- */
/* Reference: contained (1140px inner), landscape image beside the copy. */
.iwt { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 62rem) {
  .iwt { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .iwt--reverse .iwt__media { order: 2; }
}
.iwt__media img {
  width: 100%; aspect-ratio: 7 / 5; object-fit: cover; border-radius: 0 6px 6px 0;
}
.iwt__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.iwt__body .btn { margin-top: var(--sp-3); }

/* -------------------------------------------------------------- steps --- */
.steps {
  display: grid; gap: var(--sp-5); list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  max-width: 1385px; margin-inline: auto; padding-inline: 25px;
  counter-reset: step;
}
.step { text-align: center; }
.step__media {
  border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--sp-4);
  border: 1px solid var(--border);
}
.step__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.step__n {
  margin: 0 0 var(--sp-1); font-size: var(--fs-xs); letter-spacing: var(--track); color: var(--text-muted);
}
.step__title { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.step__text { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

/* ------------------------------------------------------------- badges --- */
/* Measured from the reference: dark strip, white glyphs and labels,
   2-up on mobile / 4-up on desktop, 56px padding, 21px gap. */
.badges { background: #716a56; padding-block: var(--section-pad); }
.badges__grid {
  display: grid; column-gap: var(--sp-5); row-gap: var(--sp-6);
  grid-template-columns: repeat(2, 1fr); justify-items: center;
  max-width: 22rem; margin-inline: auto;
}
@media (min-width: 62rem) {
  .badges__grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: var(--sp-7); row-gap: 0; max-width: none;
  }
}
.badge-item {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-4); text-align: center;
}
.badge-item img { width: 40px; height: 40px; }
@media (min-width: 62rem) { .badge-item img { width: 50px; height: 50px; } }
.badge-item__label {
  margin: 0; font-family: var(--font-body); font-size: 12.6px;
  font-weight: 400; line-height: 16.38px; letter-spacing: var(--track);
  color: #ffffff;
  /* two lines held open so every icon and label lands on the same baseline */
  min-height: calc(2 * 16.38px);
}

/* ------------------------------------------------------- stay blessed --- */
/* Closes the home page: signup on the same warm ground as the badge strip,
   with the social icons directly beneath it. */
/* Sits on the same white ground as the journal above it, so the page closes
   without a second colour band before the footer. */
.signup {
  background: var(--bg); color: var(--brand);
  padding-block: var(--section-pad); border-top: 1px solid var(--border);
}
.signup__inner { max-width: 34rem; margin-inline: auto; text-align: center; }
.signup__title {
  margin: 0 0 var(--sp-5); font-family: var(--font-head);
  font-size: var(--fs-lg); font-weight: var(--w-light);
  letter-spacing: var(--track); color: var(--brand);
}
.signup__form { margin: 0 0 var(--sp-5); }
.signup__row {
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--border-strong);
}
.signup__input {
  flex: 1; min-width: 0; min-height: 46px; padding: var(--sp-2) 0;
  border: 0; background: none; color: var(--brand);
  font-family: var(--font-body); font-size: var(--fs-sm); letter-spacing: var(--track);
}
.signup__input::placeholder { color: var(--text-muted); }
.signup__input:focus { outline: none; }
.signup__row:focus-within { border-bottom-color: var(--brand); }
.signup__submit {
  border: 0; background: none; color: var(--brand);
  padding: 0 var(--sp-2); min-width: 44px; cursor: pointer;
}
.signup__hint {
  margin: var(--sp-3) 0 0; font-size: var(--fs-xs); color: var(--text-muted);
}
.signup__note { margin: var(--sp-2) 0 0; font-size: var(--fs-xs); color: var(--text-muted); }
.signup__note.is-error { color: var(--danger); }

.signup__social { display: flex; justify-content: center; gap: var(--sp-3); }
.signup__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); color: var(--brand);
  transition: background var(--t-fast);
}
.signup__social a:hover { background: var(--cream); }

/* ------------------------------------------------------------- footer --- */
.footer { background: var(--footer-bg); color: rgba(239, 236, 236, .75); padding-block: var(--sp-8) var(--sp-5); }
.footer__grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .footer__grid { grid-template-columns: 1.8fr 1fr 1fr; gap: var(--sp-7); } }

.footer__logo {
  font-family: var(--font-head); font-size: var(--fs-lg); letter-spacing: var(--track); color: var(--text-invert); text-decoration: none;
  display: inline-block; margin-bottom: var(--sp-3);
}
.footer__tagline { color: var(--text-invert); margin-bottom: var(--sp-2); }
.footer__blurb { font-size: var(--fs-sm); max-width: 34ch; }
.footer__social { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .25); color: var(--text-invert);
  transition: background var(--t-fast);
}
.footer__social a:hover { background: rgba(255, 255, 255, .12); }

.footer__heading {
  font-family: var(--font-head); font-size: var(--fs-md); font-weight: var(--w-light);
  letter-spacing: var(--track); color: #efecec; margin-bottom: var(--sp-3);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.footer__col a {
  color: rgba(239, 236, 236, .75); text-decoration: none; font-size: 14px;
  display: inline-block; padding-block: 4px;
}
.footer__col a:hover { color: var(--text-invert); text-decoration: underline; }

.footer__bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  align-items: center; justify-content: space-between;
  font-size: var(--fs-xs);
}
.footer__bottom p { margin: 0; }

/* ------------------------------------------------------ footer signup --- */
.footer__form { margin: 0 0 var(--sp-3); }
.footer__form-row {
  display: flex; align-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.footer__input {
  flex: 1; min-width: 0; min-height: 42px; padding: var(--sp-2) 0;
  border: 0; background: none; color: var(--text-invert);
  font-family: var(--font-body); font-size: var(--fs-sm); letter-spacing: var(--track);
}
.footer__input::placeholder { color: rgba(255, 255, 255, .6); }
.footer__input:focus { outline: none; }
.footer__form-row:focus-within { border-bottom-color: #fff; }
.footer__submit {
  border: 0; background: none; color: var(--text-invert);
  padding: 0 var(--sp-2); min-width: 44px; cursor: pointer;
}
.footer__note { margin: var(--sp-2) 0 0; font-size: var(--fs-xs); color: rgba(255,255,255,.75); }
.footer__note.is-error { color: #f0b8b2; }
.footer__insta {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: rgba(255, 255, 255, .78); text-decoration: none; font-size: var(--fs-sm);
}
.footer__insta:hover { color: var(--text-invert); }

/* --------------------------------------------------------------- forms --- */
.input, .select {
  width: 100%; min-height: 46px; padding: var(--sp-3);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--white); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-base);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
textarea.input { min-height: 7rem; resize: vertical; }
.input:focus, .select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .12);
}
.input.is-invalid, .select.is-invalid { border-color: var(--danger); }
.input:disabled { background: var(--cream); color: var(--text-muted); cursor: not-allowed; }
.input--sm { min-height: 38px; padding: var(--sp-2); font-size: var(--fs-sm); }

.select {
  appearance: none; padding-right: var(--sp-6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23452916' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--sp-3) center;
}

.field { margin-bottom: var(--sp-4); }
.field label {
  display: block; margin-bottom: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 600; color: var(--brand);
}
.field__opt { font-weight: 400; color: var(--text-muted); }
.field__help { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
.field__error {
  margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--danger); font-weight: 500;
}
.req { color: var(--danger); }

.field-row { display: grid; gap: var(--sp-4); }
@media (min-width: 40rem) {
  .field-row { grid-template-columns: repeat(2, 1fr); }
  .field-row--3 { grid-template-columns: repeat(3, 1fr); }
}

.field__pw { position: relative; }
.field__pw .input { padding-right: 4.5rem; }
.field__pw-toggle {
  position: absolute; right: var(--sp-2); top: 50%; translate: 0 -50%;
  border: 0; background: none; font-size: var(--fs-sm); color: var(--text-muted);
  min-height: 38px; padding-inline: var(--sp-2); text-decoration: underline;
}

.fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-6); }
.fieldset__legend {
  font-family: var(--font-head); font-size: var(--fs-md); color: var(--brand);
  margin-bottom: var(--sp-4); padding: 0;
}

.check { display: flex; align-items: center; gap: var(--sp-2); padding-block: var(--sp-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.check--block { margin-bottom: var(--sp-4); }

.form-errors {
  background: var(--danger-bg); border: 1px solid var(--danger);
  border-radius: var(--r-sm); padding: var(--sp-4); margin-bottom: var(--sp-5);
  color: var(--danger);
}
.form-errors__title { font-weight: 700; margin: 0 0 var(--sp-2); }
.form-errors ul { margin: 0; padding-left: var(--sp-5); }
.form-errors a { color: var(--danger); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------- flash --- */
.flash-stack {
  position: fixed; top: calc(var(--sp-4) + 60px); right: var(--sp-4);
  z-index: var(--z-flash); display: grid; gap: var(--sp-2);
  width: min(24rem, calc(100vw - var(--sp-6)));
}
.flash {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm);
  background: var(--success-bg); color: var(--success);
  border: 1px solid currentColor; box-shadow: var(--shadow-md);
  font-size: var(--fs-sm);
  animation: flash-in var(--t-base) ease-out;
}
.flash--error { background: var(--danger-bg); color: var(--danger); }
.flash--info  { background: var(--info-bg); color: var(--brand); }
.flash__icon { flex: none; }
.flash__close { margin-left: auto; border: 0; background: none; color: inherit; padding: 4px; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- breadcrumbs --- */
.breadcrumbs { padding-block: var(--sp-4) 0; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  list-style: none; margin: 0; padding: 0;
  font-size: var(--fs-sm); color: var(--text-muted);
}
.breadcrumbs li + li::before { content: '/'; margin-right: var(--sp-2); opacity: .5; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ------------------------------------------------------------ page head --- */
.page-head { padding-block: var(--sp-7) var(--sp-5); text-align: center; }
.page-head__title { font-size: clamp(1.75rem, 1.2rem + 2.4vw, var(--fs-2xl)); margin-bottom: var(--sp-2); }
.page-head__sub { color: var(--text-muted); max-width: 56ch; margin-inline: auto; }

.page-hero { position: relative; }
.page-hero img { width: 100%; height: clamp(16rem, 40vh, 26rem); object-fit: cover; }
.page-hero--short img { height: clamp(13rem, 30vh, 20rem); }
.page-hero__overlay {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(to right, rgba(var(--brand-rgb), .62), rgba(var(--brand-rgb), .2));
  color: var(--text-invert);
}
.page-hero__title { color: var(--text-invert); font-size: clamp(1.75rem, 1.2rem + 2.6vw, var(--fs-2xl)); }
.page-hero__sub { color: rgba(255, 255, 255, .88); max-width: 48ch; margin: 0; }

/* ---------------------------------------------------------------- prose --- */
.prose { max-width: 46rem; margin-inline: auto; padding-block: var(--sp-7); }
.prose--narrow { max-width: 40rem; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-md); margin-top: var(--sp-5); }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: var(--sp-5); margin-bottom: var(--sp-4); }
.prose li { margin-bottom: var(--sp-2); }
.prose em { color: var(--text-muted); }

.rte h3 { font-size: var(--fs-md); margin-top: var(--sp-5); }
.rte ul, .rte ol { padding-left: var(--sp-5); }
.rte li { margin-bottom: var(--sp-2); }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-5);
}

.muted-lead { color: var(--text-muted); font-size: var(--fs-md); }

/* ---------------------------------------------------------- collection --- */
/* Split hero: heading and description left, collection image right. Measured
   from the reference at 1440 - 1140 of content, 540 + 30 + 570. */
.coll-hero { padding-block: 40px; background: var(--bg); }
/* The reference collection template runs tighter gutters than the rest of the
   site on a phone - 10px, which is what puts two 173px cards on the row. */
@media (max-width: 61.99rem) {
  .coll-hero { padding-block: 24px; }
  .coll-hero .wrap, .coll-body > .wrap { padding-inline: 10px; }
}
.coll-hero__inner { display: flex; flex-direction: column; gap: var(--sp-5); align-items: center; }
@media (min-width: 62rem) {
  .coll-hero__inner { flex-direction: row; gap: 30px; }
  .coll-hero__text { flex: 0 0 540px; max-width: 540px; }
  .coll-hero__media { flex: 0 0 570px; }
}
.coll-hero__text { width: 100%; min-width: 0; }
.coll-hero__title {
  margin: 0 0 10px; font-family: var(--font-head);
  font-size: 30px; font-weight: var(--w-light); line-height: 39px;
  letter-spacing: var(--track); color: var(--brand);
}
@media (min-width: 62rem) {
  .coll-hero__title { font-size: 40px; line-height: 52px; }
}
.coll-hero__desc {
  margin: 20px 0; font-family: var(--font-body);
  font-size: var(--fs-base); font-weight: var(--w-light); line-height: 1.5;
  letter-spacing: var(--track); color: var(--text);
}
@media (min-width: 62rem) {
  .coll-hero__desc { font-size: 18px; line-height: 27px; }
}
.coll-hero__media {
  width: 100%; border-radius: 6px; overflow: hidden; background: var(--white);
}
.coll-hero__media img {
  display: block; width: 100%; aspect-ratio: 355 / 200; object-fit: cover;
}
@media (min-width: 62rem) {
  .coll-hero__media img { aspect-ratio: 570 / 425; }
}

.coll-body { padding-bottom: var(--sp-8); }

/* ---- facets row: Filter: [..] [..]        Sort by: [..]      N products --- */
.facets {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); padding-block: 10px var(--sp-5); position: relative;
}
.facets__label, .facets__count {
  margin: 0; font-family: var(--font-body); font-size: 14px;
  font-weight: var(--w-light); letter-spacing: var(--track); color: var(--brand);
}
.facets__label { color: rgba(var(--brand-rgb), .85); letter-spacing: .4px; }
.facets__count { white-space: nowrap; }

.facets__wrap { display: flex; align-items: center; gap: var(--sp-5); flex: 1; min-width: 0; }
.facets__open { display: none; }

.facet { position: relative; }
.facet > summary {
  display: inline-flex; align-items: center; gap: 6px;
  padding-right: 4px; cursor: pointer; list-style: none;
  font-family: var(--font-body); font-size: 14px; font-weight: var(--w-light);
  letter-spacing: var(--track); color: rgba(var(--brand-rgb), .75);
}
.facet > summary::-webkit-details-marker { display: none; }
.facet.is-active > summary { color: var(--brand); }
.facet__chev { transition: transform var(--t-fast); flex: none; }
.facet[open] .facet__chev { transform: rotate(180deg); }

.facet__panel {
  position: absolute; top: calc(100% + 12px); left: -12px; z-index: 20;
  width: min(350px, calc(100vw - var(--sp-6)));
  background: var(--white); border: 0.8px solid rgba(var(--brand-rgb), .5);
  border-radius: 6px; padding: var(--sp-4);
}
.facet__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--sp-3);
}
.facet__head a { color: var(--brand); }
.facet__list { list-style: none; margin: 0 0 var(--sp-3); padding: 0; display: grid; gap: var(--sp-2); }
.facet__price { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.facet__price-field { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.facet__price-field .input { min-width: 0; }
.facet__currency { color: var(--text-muted); flex: none; }
.facet__actions { display: flex; justify-content: flex-end; }

.facets__sort { display: flex; align-items: center; gap: var(--sp-2); margin-inline-start: auto; }
.facets__sort label {
  font-family: var(--font-body); font-size: 14px; font-weight: var(--w-light);
  letter-spacing: var(--track); color: rgba(var(--brand-rgb), .75); white-space: nowrap;
}
.facets__select {
  border: 0; background: none; padding: 0 17.5px 0 0; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: var(--w-light);
  letter-spacing: var(--track); color: var(--brand);
}

/* Phone: the reference collapses the whole row into one opener with the
   product count beside it. */
@media (max-width: 61.99rem) {
  .facets { align-items: flex-start; }
  .facets__open {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    min-height: 40px; padding: 0; border: 0; background: none;
    font-family: var(--font-body); font-size: 14px; letter-spacing: var(--track);
    color: var(--brand); cursor: pointer; text-transform: none;
  }
  .facets__wrap {
    position: absolute; top: calc(100% - var(--sp-4)); left: 0; right: 0; z-index: 20;
    flex-direction: column; align-items: stretch; gap: var(--sp-4);
    background: var(--white); border: 0.8px solid rgba(var(--brand-rgb), .5);
    border-radius: 6px; padding: var(--sp-4);
  }
  .facets__wrap { display: none; }
  .facets__wrap.is-open { display: flex; }
  .facet__panel { position: static; width: auto; border: 0; padding: var(--sp-3) 0 0; }
  .facets__sort { margin-inline-start: 0; }
}

/* --------------------------------------------------------------- pager --- */
.pager {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-4);
  margin-top: var(--sp-7); flex-wrap: wrap;
}
.pager__link {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-size: var(--fs-sm); text-decoration: none; min-height: 44px;
}
.pager__pages { display: flex; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.pager__page {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; border-radius: var(--r-sm);
  text-decoration: none; font-size: var(--fs-sm); font-variant-numeric: tabular-nums;
}
.pager__page:hover { background: var(--cream); }
.pager__page.is-current { background: var(--brand); color: var(--text-invert); font-weight: 600; }

/* ----------------------------------------------------------------- pdp --- */
.pdp {
  display: grid; gap: var(--sp-5); padding-block: var(--sp-4) var(--sp-6);
}
/* compact buy panel: the whole block reads in one screen on a phone */
.pdp__info > * + * { margin-top: var(--sp-3); }
.pdp__title { margin: 0; font-size: clamp(1.375rem, 1.1rem + 1.4vw, var(--fs-xl)); }
.pdp__lead { margin: 0; font-size: var(--fs-sm); line-height: 1.6; }
.pdp__price { margin-block: var(--sp-3); }
.pdp__tax { margin: 0; font-size: var(--fs-xs); }
.pdp__stock { margin: 0; font-size: var(--fs-xs); }
.pdp__usps { margin-top: var(--sp-4); gap: 6px; }
.pdp__usps li { font-size: var(--fs-xs); }
@media (min-width: 62rem) {
  .pdp { grid-template-columns: 1.1fr 1fr; gap: var(--sp-8); align-items: start; }
  .pdp__gallery { position: sticky; top: calc(var(--sp-5) + 76px); }
}

/* ------------------------------------------------------ what is inside --- */
/* The pick list for a kit, above the description because it is the first
   thing anyone opening a kit page wants to see. */
.inside { margin-bottom: var(--sp-5); }
.inside__title {
  margin: 0 0 var(--sp-3); font-family: var(--font-head);
  font-size: var(--fs-md); font-weight: var(--w-light);
  letter-spacing: var(--track); color: var(--brand);
}
.inside__table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  font-size: var(--fs-sm);
}
.inside__table th, .inside__table td {
  padding: 10px var(--sp-4); text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.inside__table th {
  background: var(--cream); font-weight: var(--w-medium);
  font-size: var(--fs-xs); letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted);
}
.inside__table td { color: var(--text); }
.inside__table td:last-child, .inside__table th:last-child {
  width: 8rem; white-space: nowrap; color: var(--brand);
}
.inside__table tbody tr:last-child td { border-bottom: 0; }

/* Tier comparison. The table can outgrow a phone, so it scrolls inside its
   own box rather than pushing the page sideways. */
.inside__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.inside__table--compare { min-width: 30rem; }
.inside__table--compare th[scope="row"] {
  background: none; text-transform: none; letter-spacing: var(--track);
  font-size: var(--fs-sm); font-weight: var(--w-body); color: var(--text);
  text-align: left;
}
.inside__table--compare thead th {
  font-size: 11px; line-height: 1.35; vertical-align: bottom; width: auto;
  white-space: normal;
}
.inside__table--compare thead th a { color: var(--text-muted); text-decoration: none; }
.inside__table--compare thead th a:hover { text-decoration: underline; }
.inside__table--compare td { width: auto; white-space: nowrap; color: var(--text); }

/* the column for the product being viewed */
.inside__table--compare .is-this { background: rgba(var(--brand-rgb), .06); }
.inside__table--compare thead th.is-this { color: var(--brand); font-weight: 700; }
.inside__table--compare td.is-this { color: var(--brand); font-weight: 700; }
.inside__you {
  display: block; margin-top: 3px; font-size: 10px; font-weight: var(--w-body);
  letter-spacing: 1px; text-transform: uppercase; color: var(--whatsapp);
}
.inside__none { color: var(--text-muted); }

/* inside the accordion the table needs no heading of its own */
.accordion__body > .inside__scroll, .accordion__body > .inside__table { margin-top: 4px; }

.pdp__stage {
  position: relative; border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; background: var(--cream);
}
.pdp__stage img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.pdp__thumbs {
  display: flex; gap: var(--sp-2); margin: var(--sp-3) 0 0; padding: 0;
  list-style: none; overflow-x: auto; scrollbar-width: thin;
}
.pdp__thumb {
  width: 76px; height: 76px; padding: 0; flex: none;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  overflow: hidden; background: var(--cream);
  transition: border-color var(--t-fast);
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb.is-active { border-color: var(--brand); border-width: 2px; }

.pdp__title { font-size: clamp(1.5rem, 1.1rem + 1.8vw, var(--fs-2xl)); margin-bottom: var(--sp-3); }
.pdp__lead { color: var(--text-muted); font-size: var(--fs-md); }
.pdp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-2); margin-block: var(--sp-4); }
.pdp__now { font-size: var(--fs-xl); font-weight: 600; font-variant-numeric: tabular-nums; }
.pdp__was { color: var(--text-muted); font-size: var(--fs-md); }
.pdp__tax { flex-basis: 100%; font-size: var(--fs-sm); color: var(--text-muted); }

.pdp__option { margin-bottom: var(--sp-4); }
.pdp__option-label {
  display: block; margin-bottom: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 600; color: var(--brand);
}

.pdp__buy { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-block: var(--sp-5); }
.pdp__add { flex: 1 1 12rem; }

.pdp__stock {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); color: var(--success); margin: 0;
}
.pdp__stock.is-out { color: var(--danger); }

.pdp__usps {
  list-style: none; margin: var(--sp-5) 0; padding: var(--sp-4) 0;
  border-block: 1px solid var(--border);
  display: grid; gap: var(--sp-3);
}
.pdp__usps li { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); }
.pdp__usps svg { color: var(--brand); flex: none; }

/* ----------------------------------------------------------- accordion --- */
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-4) 0; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: var(--fs-md); color: var(--brand);
  min-height: 44px;
}
.accordion__head::-webkit-details-marker { display: none; }
.accordion__chev { transition: transform var(--t-base); flex: none; }
details[open] > .accordion__head .accordion__chev { transform: rotate(180deg); }
.accordion__body { padding-bottom: var(--sp-5); }

.spec { display: grid; gap: var(--sp-2); margin: 0; }
.spec > div { display: grid; grid-template-columns: 12rem 1fr; gap: var(--sp-3); }
@media (max-width: 30rem) { .spec > div { grid-template-columns: 1fr; gap: 0; } }
.spec dt { color: var(--text-muted); font-size: var(--fs-sm); }
.spec dd { margin: 0; font-size: var(--fs-sm); }

/* ----------------------------------------------------------------- qty --- */
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--white); overflow: hidden;
}
.qty__btn {
  width: 40px; height: 40px; border: 0; background: none; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.qty__btn:hover { background: var(--cream); }
.qty__value {
  min-width: 2.5rem; text-align: center; font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.qty__input {
  width: 3.25rem; height: 40px; border: 0; text-align: center;
  font-family: var(--font-body); font-size: var(--fs-base);
  font-variant-numeric: tabular-nums; background: none;
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.qty__input:focus { outline: 2px solid var(--ring); outline-offset: -2px; }
.qty--lg .qty__btn { width: 48px; height: 52px; }
.qty--lg .qty__input { height: 52px; }

/* ------------------------------------------------------------ mini cart --- */
.drawer-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.mini-cart {
  list-style: none; margin: 0; padding: var(--sp-4);
  display: grid; gap: var(--sp-4); overflow-y: auto; flex: 1;
}
.mini-cart--static { overflow: visible; padding: 0; }
.mini-cart__row { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--sp-3); }
.mini-cart__media { position: relative; display: block; }
.mini-cart__media img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--cream);
}
.mini-cart__qty {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--brand); color: var(--text-invert);
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700;
  line-height: 20px; text-align: center;
}
.mini-cart__info { min-width: 0; }
.mini-cart__title {
  display: block; font-size: var(--fs-sm); font-weight: 600;
  color: var(--brand); text-decoration: none; margin: 0 0 2px;
  overflow-wrap: anywhere;
}
.mini-cart__variant, .mini-cart__price {
  margin: 0; font-size: var(--fs-xs); color: var(--text-muted);
}
.mini-cart__info .qty { margin-top: var(--sp-2); }
.mini-cart__end { text-align: right; display: flex; flex-direction: column; gap: var(--sp-1); align-items: flex-end; }
.mini-cart__total { margin: 0; font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }

.ship-hint {
  display: flex; align-items: center; gap: var(--sp-2);
  margin: 0; padding: var(--sp-3) var(--sp-4);
  background: var(--cream); font-size: var(--fs-sm); color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.ship-hint--done { color: var(--success); }
.ship-hint svg { flex: none; }

.drawer-foot {
  flex: none; padding: var(--sp-4);
  border-top: 1px solid var(--border); background: var(--white);
  display: grid; gap: var(--sp-3);
}
.drawer-foot__note { margin: 0; font-size: var(--fs-xs); color: var(--text-muted); text-align: center; }

.drawer-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-3); padding: var(--sp-7) var(--sp-4); text-align: center;
}
.drawer-empty__icon { color: var(--border-strong); }
.drawer-empty__title { font-family: var(--font-head); font-size: var(--fs-md); margin: 0; color: var(--brand); }
.drawer-empty__text { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }

/* --------------------------------------------------------------- cart --- */
.cart-layout { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 62rem) { .cart-layout { grid-template-columns: 1.6fr 1fr; gap: var(--sp-8); } }

.cart-lines__head {
  display: none; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs); letter-spacing: var(--track); color: var(--text-muted);
}
@media (min-width: 48rem) {
  .cart-lines__head { display: grid; grid-template-columns: 1fr auto 6rem; gap: var(--sp-4); }
  .cart-lines__head span:last-child { text-align: right; }
}
.cart-lines__list { list-style: none; margin: 0; padding: 0; }

/* On a phone the image sat in row 1 only, so quantity and total pushed two
   empty rows under it and every line ran twice as tall as it needed to. */
.cart-line {
  display: grid; gap: var(--sp-2) var(--sp-3);
  grid-template-columns: 72px 1fr auto;
  padding-block: var(--sp-3); border-bottom: 1px solid var(--border);
}
.cart-line__media { grid-row: 1 / -1; grid-column: 1; }
.cart-line__info  { grid-column: 2 / -1; }
@media (min-width: 48rem) {
  .cart-line { grid-template-columns: 110px 1fr auto 6rem; align-items: center; gap: var(--sp-4); }
}
.cart-line__media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--cream);
}
.cart-line__title { font-weight: 600; text-decoration: none; display: block; margin-bottom: 2px; }
.cart-line__variant, .cart-line__price { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.cart-line__stock { margin: var(--sp-1) 0 0; font-size: var(--fs-xs); color: var(--danger); }
.cart-line__qty {
  display: flex; align-items: center; gap: var(--sp-4);
  grid-column: 2; grid-row: 2;
}
@media (min-width: 48rem) { .cart-line__qty { grid-column: auto; flex-direction: column; align-items: flex-start; gap: var(--sp-2); } }
/* the line total gets its own column so it cannot land on top of Remove */
.cart-line__total {
  margin: 0; font-weight: 600; font-variant-numeric: tabular-nums;
  grid-column: 3; justify-self: end; white-space: nowrap;
}
@media (max-width: 47.99rem) {
  /* the total rides beside the title: the stepper and Remove together are
     already as wide as the row can take */
  .cart-line__total { grid-row: 1; align-self: start; }
  .cart-line__info { grid-column: 2; }
  .cart-line__qty { gap: var(--sp-3); min-width: 0; }
  .cart-line__qty .link-btn { font-size: var(--fs-xs); }
}
@media (min-width: 48rem) { .cart-line__total { grid-row: 2; align-self: center; } }
@media (min-width: 48rem) { .cart-line__total { grid-column: auto; text-align: right; } }

.cart-summary {
  background: var(--cream); border-radius: var(--r-md);
  padding: var(--sp-5); display: grid; gap: var(--sp-4);
  position: sticky; top: calc(76px + var(--sp-4));
}
.cart-summary__title { font-size: var(--fs-md); margin: 0; }
.cart-summary__note {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  margin: 0; font-size: var(--fs-xs); color: var(--text-muted);
}
.cart-summary__note svg { flex: none; margin-top: 2px; }

.coupon label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-2); }
.coupon__row { display: flex; gap: var(--sp-2); }
.coupon__row .input { flex: 1; }
.coupon__note { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); }
.coupon__note.is-good { color: var(--success); }
.coupon__note.is-bad { color: var(--danger); }

.totals { margin: 0; display: grid; gap: var(--sp-2); }
.totals > div { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-sm); }
.totals dt { color: var(--text-muted); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals__save dd, .totals__save dt { color: var(--success); }
.totals__grand {
  padding-top: var(--sp-3); border-top: 1px solid var(--border-strong);
  font-size: var(--fs-md) !important; font-weight: 600;
}
.totals__grand dt { color: var(--brand); }

/* ----------------------------------------------------------- checkout --- */
.checkout { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-8); align-items: start; }
@media (min-width: 62rem) { .checkout { grid-template-columns: 1.4fr 1fr; gap: var(--sp-8); } }
.checkout__summary {
  background: var(--cream); border-radius: var(--r-md); padding: var(--sp-5);
  display: grid; gap: var(--sp-4);
}
@media (min-width: 62rem) { .checkout__summary { position: sticky; top: calc(76px + var(--sp-4)); order: 2; } }
.checkout__login-hint {
  background: var(--info-bg); border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm);
}
.checkout__submit { display: grid; gap: var(--sp-3); }
.checkout__note { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); text-align: center; }

/* ------------------------------------------------------- confirmation --- */
.confirm { padding-block: var(--sp-7) var(--sp-8); }
.confirm__head { text-align: center; max-width: 44rem; margin: 0 auto var(--sp-7); }
.confirm__tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--success-bg); color: var(--success); margin-bottom: var(--sp-4);
}
.confirm__title { font-size: clamp(1.6rem, 1.1rem + 2vw, var(--fs-2xl)); }
.confirm__sub { color: var(--text-muted); margin-bottom: var(--sp-5); }
.confirm__hint { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--text-muted); }

.confirm__grid { display: grid; gap: var(--sp-5); }
@media (min-width: 62rem) { .confirm__grid { grid-template-columns: 1.2fr 1fr; gap: var(--sp-6); } }
.confirm__panel {
  background: var(--cream); border-radius: var(--r-md); padding: var(--sp-5);
  display: grid; gap: var(--sp-4); align-content: start;
}
.confirm__panel-title { font-size: var(--fs-md); margin: 0; }
.confirm__address { font-style: normal; font-size: var(--fs-sm); line-height: 1.8; }
.confirm__meta { display: flex; align-items: center; gap: var(--sp-2); margin: 0; font-size: var(--fs-sm); }
.confirm__note { margin: 0; font-size: var(--fs-sm); }
.confirm__steps { margin: 0; padding-left: var(--sp-5); font-size: var(--fs-sm); display: grid; gap: var(--sp-2); }

/* -------------------------------------------------------------- auth --- */
.auth { display: flex; justify-content: center; padding-block: var(--sp-8); }
.auth__card { width: min(30rem, 100%); }
.auth__title { font-size: var(--fs-xl); margin-bottom: var(--sp-5); }
.auth__alt { margin: var(--sp-4) 0 0; font-size: var(--fs-sm); text-align: center; }
.auth__alt--muted { color: var(--text-muted); }

/* ------------------------------------------------------------ account --- */
.account { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-8); align-items: start; }
@media (min-width: 62rem) { .account { grid-template-columns: 15rem 1fr; gap: var(--sp-7); } }

.account__nav { display: grid; gap: var(--sp-1); align-content: start; }
.account__nav a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm);
  text-decoration: none; font-size: var(--fs-sm); color: var(--text);
  min-height: 44px;
}
.account__nav a:hover { background: var(--cream); }
.account__nav a.is-active { background: var(--brand); color: var(--text-invert); }
.account__nav-out { color: var(--text-muted) !important; margin-top: var(--sp-3); border-top: 1px solid var(--border); }

.account__body { min-width: 0; }
.account__heading { font-size: var(--fs-md); margin: var(--sp-6) 0 var(--sp-4); }
.account__form { max-width: 34rem; }

.account__tiles { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.account__tile {
  display: grid; gap: var(--sp-1); justify-items: start;
  padding: var(--sp-5); background: var(--cream);
  border-radius: var(--r-md); text-decoration: none;
  transition: transform var(--t-fast);
}
.account__tile:hover { transform: translateY(-2px); }
.account__tile-icon { color: var(--brand); margin-bottom: var(--sp-2); }
.account__tile-title { font-family: var(--font-head); font-size: var(--fs-md); color: var(--brand); }
.account__tile-meta { font-size: var(--fs-sm); color: var(--text-muted); }

.addr-grid {
  list-style: none; margin: 0 0 var(--sp-5); padding: 0;
  display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.addr-card {
  position: relative; padding: var(--sp-5);
  border: 1px solid var(--border); border-radius: var(--r-md);
}
.addr-card.is-default { border-color: var(--brand); }
.addr-card__flag {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  background: var(--brand); color: var(--text-invert);
  font-size: var(--fs-xs); padding: 2px var(--sp-2); border-radius: var(--r-sm);
}
.addr-card__label { margin: 0 0 var(--sp-2); font-weight: 600; font-size: var(--fs-sm); }
.addr-card address { font-style: normal; font-size: var(--fs-sm); line-height: 1.7; color: var(--text-muted); }
.addr-card__actions { display: flex; gap: var(--sp-4); margin-top: var(--sp-3); }

/* -------------------------------------------------------------- table --- */
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td {
  padding: var(--sp-3); text-align: left; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table thead th {
  font-size: var(--fs-xs); letter-spacing: var(--track);
  color: var(--text-muted); font-weight: 600;
}
.table tbody tr:hover { background: var(--cream); }
.ta-right { text-align: right !important; }
.num { font-variant-numeric: tabular-nums; }

.pill {
  display: inline-block; padding: 2px var(--sp-2); border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; background: var(--cream); color: var(--text-muted);
  white-space: nowrap;
}
.pill--new { background: #fdf2df; color: #8a5a12; }
.pill--confirmed { background: #e8f0e9; color: var(--success); }
.pill--packed { background: #eae6f5; color: #4b3f7a; }
.pill--shipped { background: #e2eef5; color: #23566e; }
.pill--delivered { background: var(--success-bg); color: var(--success); }
.pill--cancelled { background: var(--danger-bg); color: var(--danger); }

/* -------------------------------------------------------- empty state --- */
.empty-state {
  text-align: center; padding: var(--sp-8) var(--sp-4);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
}
.empty-state--inline { padding: var(--sp-6) var(--sp-4); background: var(--cream); border-radius: var(--r-md); }
.empty-state--page { min-height: 50vh; justify-content: center; }
.empty-state__icon { color: var(--border-strong); }
.empty-state__code { font-family: var(--font-head); font-size: var(--fs-3xl); color: var(--border-strong); margin: 0; }
.empty-state__title { margin: 0; font-size: var(--fs-lg); }
.empty-state__text { margin: 0; color: var(--text-muted); max-width: 44ch; }
.empty-state__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-2); }

/* ------------------------------------------------------------- search --- */
.search-modal { position: fixed; inset: 0; z-index: var(--z-modal); }
.search-modal[hidden] { display: none; }
.search-modal__scrim {
  position: absolute; inset: 0; background: rgba(var(--brand-rgb), .5);
  opacity: 0; transition: opacity var(--t-base);
}
.search-modal.is-open .search-modal__scrim { opacity: 1; }
.search-modal__panel {
  position: relative; background: var(--white);
  padding: var(--sp-4); border-bottom: 1px solid var(--border);
  translate: 0 -100%; transition: translate var(--t-base);
}
.search-modal.is-open .search-modal__panel { translate: 0 0; }
.search-modal__form {
  display: flex; align-items: center; gap: var(--sp-2);
  max-width: var(--wrap); margin-inline: auto; position: relative;
}
.search-modal__icon { color: var(--text-muted); flex: none; }
.search-modal__input {
  flex: 1; min-height: 48px; border: 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-body); font-size: var(--fs-md); background: none; padding: var(--sp-2);
}
.search-modal__input:focus { outline: none; border-color: var(--brand); }
.search-modal__hints {
  max-width: var(--wrap); margin: var(--sp-3) auto 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  font-size: var(--fs-sm); color: var(--text-muted);
}
.search-modal__results { max-width: var(--wrap); margin-inline: auto; }
.search-modal__results ul { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
.search-modal__results a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2); border-radius: var(--r-sm); text-decoration: none;
}
.search-modal__results a:hover { background: var(--cream); }
.search-modal__results img {
  width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-sm); background: var(--cream);
}

.search-page__form {
  display: flex; gap: var(--sp-2); align-items: center;
  max-width: 34rem; margin: var(--sp-4) auto 0; position: relative;
}
.search-page__icon { position: absolute; left: var(--sp-3); color: var(--text-muted); }
.search-page__form .input { padding-left: var(--sp-7); }

/* ------------------------------------------------------------ contact --- */
.contact { display: grid; gap: var(--sp-6); padding-block: var(--sp-7); align-items: start; }
@media (min-width: 62rem) { .contact { grid-template-columns: 1fr 1.3fr; gap: var(--sp-8); } }
.contact__info { display: grid; gap: var(--sp-4); }
.contact__card { padding: var(--sp-5); background: var(--cream); border-radius: var(--r-md); }
.contact__card h2 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.contact__card p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.9; }
.contact__icon { color: var(--brand); margin-bottom: var(--sp-2); }
.contact__form-title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.contact__form-sub { color: var(--text-muted); margin-bottom: var(--sp-5); }

/* ---------------------------------------------------------------- stars --- */
.stars {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  position: relative; line-height: 1;
}
.stars__track, .stars__fill { display: inline-flex; }
.stars__track { color: var(--sand); }
.stars__fill {
  position: absolute; inset-inline-start: 0; top: 0;
  overflow: hidden; white-space: nowrap; color: #c8912f;
}
.stars svg { flex: none; }
.stars--sm svg { width: 14px; height: 14px; }
.stars--md svg { width: 18px; height: 18px; }
.stars--lg svg { width: 24px; height: 24px; }
.stars__count {
  margin-inline-start: calc(5 * 1.15em);
  font-size: var(--fs-xs); color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.stars--md .stars__count { font-size: var(--fs-sm); }

/* -------------------------------------------------------------- reviews --- */
/* Reference review widget: heading, score line, one wide action button with
   the filter and sort discs beside it, then a plain divided list. */
.reviews {
  padding-block: var(--sp-6) var(--sp-5); border-top: 1px solid var(--border);
  --review-accent: #0f7a70;
}
.reviews__inner { max-width: 46rem; }
.reviews__heading {
  margin: 0 0 var(--sp-3); font-family: var(--font-head);
  font-size: var(--fs-lg); font-weight: var(--w-light);
  letter-spacing: var(--track); color: var(--brand);
}
.reviews__summary {
  display: flex; align-items: baseline; gap: var(--sp-2);
  margin: 0 0 var(--sp-5);
}
.reviews__score {
  font-family: var(--font-body); font-size: var(--fs-base);
  font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums;
}
.reviews__count { font-size: var(--fs-xs); color: var(--text-muted); }

.reviews__actions { display: flex; align-items: stretch; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.reviews__write {
  flex: 1; min-height: 44px; padding: var(--sp-2) var(--sp-4);
  border: 0; border-radius: 6px; cursor: pointer;
  background: var(--review-accent); color: #fff;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: var(--w-medium);
  letter-spacing: var(--track); text-transform: none;
}
.reviews__write:hover { background: #0b6157; }

.reviews__tool { position: relative; flex: none; }
.reviews__tool > summary {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; cursor: pointer; list-style: none;
  border: 1px solid var(--border-strong); border-radius: 6px;
  background: var(--white); color: var(--brand);
}
.reviews__tool > summary::-webkit-details-marker { display: none; }
.reviews__tool[open] > summary { border-color: var(--review-accent); color: var(--review-accent); }
.reviews__tool-panel {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
  width: max-content; min-width: 11rem;
  background: var(--white); border: 0.8px solid rgba(var(--brand-rgb), .5);
  border-radius: 6px; padding: var(--sp-3);
}
.reviews__tool-title {
  margin: 0 0 var(--sp-2); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted);
}
.reviews__tool-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.reviews__tool-panel button {
  display: block; width: 100%; text-align: left; cursor: pointer;
  border: 0; background: none; border-radius: 4px; padding: 6px var(--sp-2);
  font-family: var(--font-body); font-size: var(--fs-sm); color: var(--brand);
  text-transform: none; letter-spacing: var(--track);
}
.reviews__tool-panel button:hover:not(:disabled) { background: var(--cream); }
.reviews__tool-panel button.is-active { color: var(--review-accent); font-weight: var(--w-medium); }
.reviews__tool-panel button:disabled { opacity: .4; cursor: not-allowed; }

.review-list { list-style: none; margin: 0; padding: 0; display: block; }

/* Reviews scroll sideways, the way the home page testimonials do. */
.review-scroller { position: relative; }
.review-track {
  --rev-per-view: 1.08;
  --rev-gap: 14px;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--rev-gap) * (var(--rev-per-view) - 1)) / var(--rev-per-view));
  gap: var(--rev-gap); padding-bottom: var(--sp-2);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.review-track::-webkit-scrollbar { display: none; }
@media (min-width: 48rem) { .review-track { --rev-per-view: 2; --rev-gap: 18px; } }
@media (min-width: 75rem) { .review-track { --rev-per-view: 3; } }

.review {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: var(--sp-4); border: 1px solid var(--border); border-radius: 6px;
}
.review[hidden] { display: none; }
.review .review__body { flex: 1; }

/* the widget draws its stars solid in the accent colour, larger than ours */
.review .stars__fill { color: var(--review-accent); }
.review .stars__track { color: rgba(15, 122, 112, .18); }
.review .stars svg { width: 22px; height: 22px; }

.review__who { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-3); }
.review__avatar {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-pill);
  background: rgba(15, 122, 112, .1); color: var(--text-muted);
  font-family: var(--font-body); font-size: var(--fs-sm);
}
.review__who-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.review__author {
  display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
  margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--brand);
}
.review__verified {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: var(--w-body); color: var(--review-accent);
}
.review__date { font-size: var(--fs-xs); color: var(--text-muted); }
.review__title { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); }
.review__body { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); line-height: 1.6; }
.review__reply {
  margin-top: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  background: var(--cream); border-radius: 6px;
}
.review__reply-who {
  margin: 0 0 4px; display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); color: var(--text-muted);
}
.review__reply p { margin: 0; font-size: var(--fs-sm); }
.review__helpful { margin: var(--sp-3) 0 0; }
.review__helpful button[disabled] { opacity: .5; cursor: default; }

.reviews__empty, .reviews__none, .reviews__more {
  margin: 0; font-size: var(--fs-sm); color: var(--text-muted);
}
.reviews__more { margin-top: var(--sp-4); }
.reviews__none[hidden] { display: none; }

.review-form[hidden] { display: none; }
.review-form {
  margin-top: var(--sp-8); padding: var(--sp-6);
  background: var(--cream); border-radius: var(--r-md);
  max-width: 44rem; margin-inline: auto;
  scroll-margin-top: 6rem;
}
.review-form__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.review-form__sub { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }

.rating-input { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
.rating-input legend {
  font-size: var(--fs-sm); font-weight: 600; color: var(--brand);
  margin-bottom: var(--sp-2); padding: 0;
}
/* Reverse row order so CSS sibling selectors can light up preceding stars. */
.rating-input__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating-input__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input__stars label {
  color: var(--sand); cursor: pointer; padding: 2px;
  transition: color var(--t-fast), transform var(--t-fast);
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.rating-input__stars label:hover,
.rating-input__stars label:hover ~ label,
.rating-input__stars input:checked ~ label { color: #c8912f; }
.rating-input__stars input:focus-visible + label {
  outline: 3px solid var(--ring); outline-offset: 2px; border-radius: var(--r-sm);
}
.rating-input__stars label:active { transform: scale(.92); }

.pdp__rating {
  display: inline-flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  margin-bottom: var(--sp-3); text-decoration: none;
}
.pdp__rating-link {
  font-size: var(--fs-sm); color: var(--text-muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.pdp__rating:hover .pdp__rating-link { color: var(--brand); }
.pdp__rating--empty { font-size: var(--fs-sm); color: var(--text-muted); }

/* ----------------------------------------------------------------- blog --- */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 40px; padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  text-decoration: none; font-size: var(--fs-sm); color: var(--text);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { background: var(--cream); border-color: var(--brand); }
.chip.is-active { background: var(--brand); color: var(--text-invert); border-color: var(--brand); }
.chip__n { font-size: var(--fs-xs); opacity: .7; font-variant-numeric: tabular-nums; }

.post-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--sp-5); grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); } }

.post-card {
  display: flex; flex-direction: column; height: 100%;
  border: 0.8px solid rgba(var(--brand-rgb), .14); border-radius: 6px;
  overflow: hidden; background: var(--white);
}
.post-card__body { padding: var(--sp-3) var(--sp-4); text-align: left; }
.post-grid--home { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .post-grid--home { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 75rem) { .post-grid--home { grid-template-columns: repeat(2, 1fr); } }
.post-card__media {
  display: block; overflow: hidden; border-radius: 0;
  border: 0; background: var(--cream);
}
.post-card__media img {
  width: 100%; aspect-ratio: 3 / 1; object-fit: cover;
  transition: transform var(--t-slow);
}
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; gap: 2px; align-items: stretch; }
/* the small meta lines sit right, the excerpt is justified */
.post-card__cat {
  margin: 0 0 4px; font-size: 11px; font-weight: 500; letter-spacing: 1.2px;
  text-transform: uppercase; color: #8a5a12; text-align: right;
}
.post-card .post-meta { text-align: right; }
.post-card__excerpt { text-align: justify; text-justify: inter-word; hyphens: auto; }
.post-card__title { margin: 0; font-size: var(--fs-sm); line-height: 1.35; font-weight: 600; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card__excerpt { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.post-meta { margin: var(--sp-1) 0 0; font-size: var(--fs-xs); color: var(--text-muted); }

.post-feature {
  display: grid; gap: var(--sp-5); margin-bottom: var(--sp-7);
  padding-bottom: var(--sp-7); border-bottom: 1px solid var(--border);
}
@media (min-width: 62rem) {
  .post-feature { grid-template-columns: 1.3fr 1fr; gap: var(--sp-7); align-items: center; }
}
.post-feature__media {
  display: block; overflow: hidden; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--cream);
}
.post-feature__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-feature__title { font-size: clamp(1.4rem, 1rem + 1.8vw, var(--fs-xl)); margin: var(--sp-2) 0; }
.post-feature__title a { text-decoration: none; }
.post-feature__title a:hover { text-decoration: underline; }
.post-feature__excerpt { color: var(--text-muted); }
.post-feature__body .btn { margin-top: var(--sp-4); }

.post__head { max-width: 46rem; margin-inline: auto; text-align: center; padding-block: var(--sp-6) var(--sp-5); }
.post__title { font-size: clamp(1.75rem, 1.2rem + 2.6vw, var(--fs-2xl)); }
.post__standfirst { font-size: var(--fs-md); color: var(--text-muted); max-width: 42ch; margin-inline: auto; }
.post__cover {
  margin: 0 0 var(--sp-6); max-width: 62rem; margin-inline: auto;
  padding-inline: var(--sp-4);
}
.post__cover img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-md); border: 1px solid var(--border);
}
.post .prose { padding-top: 0; }
.post__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-4); max-width: 40rem; margin-inline: auto;
  padding-block: var(--sp-5) var(--sp-8); border-top: 1px solid var(--border);
}
.post__share { display: flex; align-items: center; gap: var(--sp-2); }
.post__share-label { font-size: var(--fs-sm); color: var(--text-muted); margin-inline-end: var(--sp-1); }
.post__share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); color: var(--brand);
  transition: background var(--t-fast);
}
.post__share-btn:hover { background: var(--cream); }

/* ----------------------------------------------------------- instagram --- */
.insta { padding-block: var(--sp-8) 0; }
.insta .section__title { font-size: var(--fs-lg); }
.insta__handle { text-align: center; margin: calc(var(--sp-5) * -1) 0 var(--sp-6); }
.insta__handle a {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  text-decoration: none; color: var(--text-muted); font-size: var(--fs-sm);
}
.insta__handle a:hover { color: var(--brand); }

.insta__grid {
  display: grid; list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 48rem) { .insta__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 75rem) { .insta__grid { grid-template-columns: repeat(6, 1fr); } }
.insta__grid a { position: relative; display: block; overflow: hidden; }
.insta__grid img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  transition: transform var(--t-slow), filter var(--t-base);
}
.insta__grid a:hover img { transform: scale(1.05); filter: brightness(.82); }
.insta__icon {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; opacity: 0; transition: opacity var(--t-base);
}
.insta__grid a:hover .insta__icon, .insta__grid a:focus-visible .insta__icon { opacity: 1; }

/* -------------------------------------------------------- testimonials --- */
/* Bordered quotes on a snap track: rating and age on the top row, name and
   town on the bottom, with generated dots underneath. */
.testi-scroller { position: relative; }
.testi-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--testi-gap) * (var(--testi-per-view) - 1)) / var(--testi-per-view));
  --testi-per-view: 1.12;
  --testi-gap: 14px;
  gap: var(--testi-gap);
  list-style: none; margin: 0; padding: 0 0 var(--sp-2);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.testi-track::-webkit-scrollbar { display: none; }
@media (min-width: 40rem) { .testi-track { --testi-per-view: 2; } }
@media (min-width: 62rem) { .testi-track { --testi-per-view: 3; --testi-gap: 18px; } }
@media (min-width: 75rem) { .testi-track { --testi-per-view: 4; } }

.testi {
  display: flex; flex-direction: column; gap: var(--sp-3);
  scroll-snap-align: start;
  border: 1px solid rgba(155, 47, 38, .35); border-radius: 4px;
  padding: var(--sp-4) var(--sp-4) var(--sp-3); background: var(--white);
}
.testi__top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
}
.testi__top .stars__fill { color: #9b2f26; }
.testi__top .stars__track { color: rgba(155, 47, 38, .22); }
.testi__date { font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; }
.testi__body { margin: 0; font-size: var(--fs-sm); color: #9b2f26; flex: 1; }
.testi__foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-2); margin: 0; padding-top: var(--sp-2);
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
}
.testi__who { color: var(--brand); }
.testi__loc { color: var(--text-muted); text-align: right; }
.testi__cta { text-align: center; margin: var(--sp-5) 0 0; }
/* compact forms inside a dialog: the default field rhythm leaves too much
   air once four of them are stacked in a panel */
.modal .rating-input { margin-bottom: var(--sp-3); }
.modal .field { margin-bottom: var(--sp-2); }
.modal .input { min-height: 42px; }
.modal .field-row { display: grid; gap: var(--sp-2); }
@media (min-width: 30rem) { .modal .field-row { grid-template-columns: 1fr 1fr; } }
.modal .field label { margin-bottom: 4px; }
.modal .field__help { margin-top: 3px; font-size: 11px; line-height: 1.4; }
.modal .rating-input legend { margin-bottom: 4px; }
.modal .rating-input__stars svg { width: 26px; height: 26px; }
.modal .field-row { gap: var(--sp-3); }
.modal form > .btn { margin-top: var(--sp-2); }

.scroller__dots {
  display: flex; justify-content: center; align-items: center; gap: 7px;
  margin-top: var(--sp-4);
}
.scroller__dots[hidden] { display: none; }
.scroller__dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: rgba(155, 47, 38, .28); cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.scroller__dot.is-active { background: #9b2f26; transform: scale(1.1); }

/* ---------------------------------------------------------- music fab --- */
/* Stacked directly above the WhatsApp button, same size and shape. */
.music {
  position: fixed; right: var(--sp-4); bottom: calc(var(--sp-4) + 52px + 10px);
  z-index: var(--z-header);
}
.music__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--r-pill);
  border: 0; cursor: pointer;
  background: var(--brand); color: #fff; box-shadow: var(--shadow-md);
  transition: background var(--t-fast), transform var(--t-fast);
}
.music__toggle:hover { background: var(--brand-soft); transform: translateY(-2px); }
.music.is-playing .music__toggle { background: var(--whatsapp); }
.music.is-playing .music__icon--play { display: none; }

/* three little bars that move only while something is playing */
.music__bars { display: none; align-items: flex-end; gap: 3px; height: 18px; }
.music.is-playing .music__bars { display: inline-flex; }
.music__bars i {
  display: block; width: 3px; height: 6px; border-radius: 2px; background: #fff;
  animation: music-bar .9s ease-in-out infinite;
}
.music__bars i:nth-child(2) { animation-delay: .15s; }
.music__bars i:nth-child(3) { animation-delay: .3s; }
@keyframes music-bar {
  0%, 100% { height: 5px; }
  50%      { height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .music__bars i { animation: none; height: 12px; }
}

/* The frame has to stay in the layout for the audio to keep running, so it is
   collapsed to one transparent pixel rather than hidden with display:none. */
.music__frame {
  position: absolute; width: 1px; height: 1px; right: 0; bottom: 0;
  opacity: 0; pointer-events: none; overflow: hidden;
}
.music__frame iframe { width: 1px; height: 1px; border: 0; }

/* ------------------------------------------------------- whatsapp fab --- */
/* Checkout happens on WhatsApp, so the shortcut stays on screen. Bottom left,
   clear of the cart drawer handle on the right. */
.wa-fab {
  /* above page content, below the drawers and dialogs it would otherwise
     cover when one is open */
  position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: var(--z-header);
  display: inline-flex; align-items: center; gap: var(--sp-2);
  height: 52px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--whatsapp); color: #fff; text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: background var(--t-fast), transform var(--t-fast);
}
.wa-fab:hover { background: #196237; transform: translateY(-2px); }
.wa-fab__label {
  font-size: var(--fs-sm); letter-spacing: var(--track); white-space: nowrap;
}
@media (max-width: 47.99rem) {
  /* on a phone the label would sit over the content, so it collapses to a disc */
  .wa-fab { width: 52px; padding: 0; justify-content: center; }
  .wa-fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ------------------------------------------------------ verify banner --- */
.verify-banner {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  margin: var(--sp-4) 0 0; padding: var(--sp-3) var(--sp-4);
  background: var(--cream); border: 0.8px solid rgba(var(--brand-rgb), .18);
  border-radius: 6px;
}
.verify-banner__dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none; background: #c8912f;
}
.verify-banner__text {
  margin: 0; flex: 1; min-width: 12rem;
  font-size: var(--fs-sm); color: var(--text);
}

/* one-time code: wide tracking so six digits are easy to check */
.input--code-otp {
  font-family: var(--font-body); font-size: 22px; letter-spacing: 10px;
  text-align: center; font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------- auth extras --- */
.auth__lead { margin: 0 0 var(--sp-5); font-size: var(--fs-sm); color: var(--text-muted); }
.field__forgot { margin: var(--sp-2) 0 0; font-size: var(--fs-xs); text-align: right; }
.field__forgot a { color: var(--text-muted); }
.field__forgot a:hover { color: var(--brand); }

.note {
  margin: 0 0 var(--sp-5); padding: var(--sp-4);
  border-radius: 6px; font-size: var(--fs-sm); line-height: 1.6;
}
.note p { margin: 0; }
.note--good { background: var(--success-bg); color: var(--success); }
.note--bad { background: var(--danger-bg); color: var(--danger); }

/* ------------------------------------------------- checkout payment --- */
.checkout__save {
  margin: var(--sp-2) 0 var(--sp-4); text-align: center;
  font-size: var(--fs-xs); color: var(--success);
}
.checkout__cod { margin-bottom: var(--sp-3); }

/* ---------------------------------------------------------- utilities --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------ reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track { animation: none; }
  .hero__slide { transition: none; }
}

/* -------------------------------------------------------------- print --- */
@media print {
  .header, .nav, .footer, .offcanvas,
  .search-modal, .flash-stack, .announcement { display: none !important; }
  body { color: #000; }
  a { text-decoration: underline; }
}
