/* ==========================================================================
   Iwosan Herbals - design system
   A self-contained stylesheet. Does not depend on the previous template's
   style.css / responsive.css / bootstrap. Only remixicon.css is shared.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --leaf:        #2F5D42;
  --leaf-deep:   #1E4030;
  --leaf-dark:   #14291F;
  --leaf-soft:   #E4EDE5;
  /* Clay is darkened to #AB4F28 so the eyebrow label clears 4.5:1 on the bone
     background (it was 4.36:1) and white-on-clay buttons reach 5.41:1. */
  --clay:        #AB4F28;
  --clay-deep:   #8E3F1D;

  /* Three golds, because one cannot pass contrast on both a cream card and a
     dark green panel:
       --ochre       brand gold, decorative use only
       --ochre-dark  rating stars on light cards      (3.36:1 non-text)
       --ochre-light labels and links on dark green   (5.43:1 on --leaf-deep) */
  --ochre:       #C98A2B;
  --ochre-dark:  #B8801F;
  --ochre-light: #E0A94A;

  /* Neutrals - warm, paper-like */
  --ink:         #1B2A22;
  --body:        #41504A;
  --muted:       #5A6A60;
  --bone:        #F6F1E7;
  --sand:        #EDE4D3;
  --card:        #FFFDF9;
  --line:        #E3D9C6;
  --line-soft:   #EFE7D8;

  /* Status */
  --success:     #2C7448;
  --warn:        #B9791B;
  --danger:      #B03A2E;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Space */
  --gutter: 20px;
  --section-y: 96px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --r-leaf: 140px 24px 140px 24px;

  /* Elevation - warm-tinted, never grey */
  --sh-sm: 0 1px 2px rgba(27, 42, 34, .06), 0 2px 8px rgba(27, 42, 34, .04);
  --sh-md: 0 2px 6px rgba(27, 42, 34, .06), 0 12px 28px rgba(27, 42, 34, .08);
  --sh-lg: 0 8px 20px rgba(27, 42, 34, .08), 0 28px 60px rgba(27, 42, 34, .12);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .16s var(--ease);
  --t: .28s var(--ease);
  --t-slow: .5s var(--ease);

  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--body);
  background-color: var(--bone);
  /* Faint paper grain so large flat areas are not dead */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

table { border-collapse: collapse; width: 100%; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--leaf); color: #fff; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  /* Fraunces is a variable face - 800 gives the headings real presence at
     display sizes, where 500 read thin. SOFT softens the terminals slightly
     so the extra weight does not turn brittle. */
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variation-settings: "SOFT" 28, "WONK" 0;
}

h1 { font-size: clamp(2.05rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.45rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 700; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

/* Botanical name - the small italic under a product title */
.botanical {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .9rem;
  color: var(--muted);
  letter-spacing: .01em;
}

/* Shona / Ndebele pair shown above a product name on cards */
.local-name {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--leaf);
}
.local-name .sep { opacity: .45; margin-inline: 1px; }

/* The same pair on a product page, labelled by language */
.name-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 4px;
}
.name-pair span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  font-size: .88rem;
  font-weight: 600;
}
.name-pair b {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--leaf);
  opacity: .8;
}

.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;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -200%);
  z-index: 200;
  background: var(--leaf-deep);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-size: .88rem;
  transition: transform var(--t);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section-sm { padding-block: 64px; }
.section-tight { padding-block: 48px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.section-head .title-block { max-width: 620px; }
.section-head h2 + p { margin-top: 14px; }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.stack-8  { display: grid; gap: 8px; }
.stack-16 { display: grid; gap: 16px; }
.stack-24 { display: grid; gap: 24px; }

.surface-leaf {
  background: var(--leaf-deep);
  color: rgba(255, 255, 255, .78);
}
.surface-leaf h1, .surface-leaf h2, .surface-leaf h3,
.surface-leaf h4, .surface-leaf strong { color: #fff; }
.surface-leaf .eyebrow { color: var(--ochre-light); }

.surface-sand { background: var(--sand); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn i { font-size: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 4px 14px rgba(180, 85, 45, .25);
}
.btn-primary:hover { background: var(--clay-deep); box-shadow: 0 8px 22px rgba(180, 85, 45, .32); }

.btn-leaf { background: var(--leaf); color: #fff; }
.btn-leaf:hover { background: var(--leaf-deep); }

.btn-outline {
  border-color: var(--leaf);
  color: var(--leaf-deep);
  background: transparent;
}
.btn-outline:hover { background: var(--leaf); color: #fff; }

.btn-ghost {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--leaf); color: var(--leaf-deep); }

.btn-light { background: #fff; color: var(--leaf-deep); }
.btn-light:hover { background: var(--sand); }

.btn-sm { padding: 10px 18px; font-size: .84rem; }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
}

/* Text link with a moving underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--leaf-deep);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.link-arrow i { transition: transform var(--t-fast); }
.link-arrow:hover { color: var(--clay); border-color: var(--clay); }
.link-arrow:hover i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Forms
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 7px; }

.field label,
.form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}
.field .hint { font-size: .78rem; color: var(--muted); }

.input, .select, .textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: .95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: #9AA79F; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(47, 93, 66, .12);
}
.textarea { min-height: 120px; resize: vertical; }

.select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235A6A60' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.input.is-invalid, .select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(176, 58, 46, .1);
}
.field-error {
  font-size: .78rem;
  color: var(--danger);
  display: none;
}
.field.has-error .field-error { display: block; }

/* Checkbox / radio */
.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .9rem;
  cursor: pointer;
}
.check input {
  appearance: none;
  flex: none;
  width: 19px; height: 19px;
  margin-top: 2px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: var(--card);
  display: grid;
  place-content: center;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.check input[type="radio"] { border-radius: 50%; }
.check input::after {
  content: "";
  width: 9px; height: 9px;
  transform: scale(0);
  transition: transform var(--t-fast);
  background: #fff;
  clip-path: polygon(14% 44%, 0 60%, 39% 100%, 100% 22%, 84% 6%, 39% 68%);
}
.check input[type="radio"]::after { clip-path: none; border-radius: 50%; width: 7px; height: 7px; }
.check input:checked { background: var(--leaf); border-color: var(--leaf); }
.check input:checked::after { transform: scale(1); }

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.announce {
  background: var(--leaf-dark);
  color: rgba(255, 255, 255, .85);
  font-size: .8rem;
  letter-spacing: .02em;
  text-align: center;
  padding: 9px var(--gutter);
}
.announce strong { color: var(--ochre-light); font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 241, 231, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(27, 42, 34, .05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand-mark {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50% 12px 50% 12px;
  background: var(--leaf);
  display: grid;
  place-content: center;
  color: #fff;
  font-size: 1.15rem;
}
.brand-text {
  display: grid;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--leaf-deep);
  letter-spacing: -.01em;
}
.brand-sub {
  font-size: .58rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-size: .92rem;
  font-weight: 600;
  color: var(--body);
  transition: color var(--t-fast), background var(--t-fast);
}
.main-nav a:hover { color: var(--leaf-deep); background: rgba(47, 93, 66, .07); }
.main-nav a.is-active { color: var(--leaf-deep); font-weight: 600; background: rgba(47, 93, 66, .09); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 1.22rem;
  color: var(--ink);
  transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: rgba(47, 93, 66, .09); color: var(--leaf-deep); }

.count-badge {
  position: absolute;
  top: 3px; right: 2px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--clay);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  border: 2px solid var(--bone);
  transform: scale(0);
  transition: transform var(--t);
}
.count-badge.is-visible { transform: scale(1); }
.count-badge.is-bumped { animation: bump .4s var(--ease); }
@keyframes bump {
  0%, 100% { transform: scale(1); }
  40%      { transform: scale(1.35); }
}

.nav-toggle { display: none; }

/* Header search */
.header-search {
  position: relative;
  flex: 1;
  max-width: 300px;
}
.header-search .input { padding-left: 40px; border-radius: var(--r-pill); background: rgba(255, 253, 249, .8); }
.header-search i {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 6px;
  max-height: 340px;
  overflow-y: auto;
  display: none;
  z-index: 70;
}
.search-results.is-open { display: block; }
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.search-result:hover { background: var(--leaf-soft); }
.search-result img {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex: none;
}
.search-result .nm { font-size: .9rem; font-weight: 600; color: var(--ink); }
.search-result .pr { font-size: .82rem; color: var(--clay); font-weight: 600; }
.search-empty { padding: 20px; text-align: center; font-size: .88rem; color: var(--muted); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(330px, 86vw);
  background: var(--card);
  z-index: 110;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: none; }
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.mobile-nav nav ul { display: grid; gap: 2px; }
.mobile-nav nav a {
  display: block;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}
.mobile-nav nav a:hover,
.mobile-nav nav a.is-active { background: var(--leaf-soft); color: var(--leaf-deep); }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 86px) clamp(56px, 8vw, 100px);
  overflow: hidden;
}
.hero::before {
  /* soft organic wash behind the copy */
  content: "";
  position: absolute;
  top: -20%; left: -12%;
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, rgba(47, 93, 66, .09), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  position: relative;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: italic;
  color: var(--leaf);
  font-variation-settings: "SOFT" 60, "WONK" 1;
}
.hero .lead { max-width: 50ch; margin-bottom: 30px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-proof .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--leaf-deep);
  line-height: 1;
}
.hero-proof .lbl {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 5px;
}

/* --- Hero best-seller scroll ------------------------------------------- */
.hero-feature {
  position: relative;
  /* Caps the column on wide screens so it stays level with the copy */
  max-width: 470px;
  margin-inline-start: auto;
}

.hero-slides {
  position: relative;
  /* Slides stack, so the tallest sets the height and nothing jumps on change */
  display: grid;
}
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: scale(.985);
  transition: opacity .55s var(--ease), transform .55s var(--ease), visibility .55s;
  position: relative;
  padding-bottom: 52px;
}
.hero-slide.is-on { opacity: 1; visibility: visible; transform: none; }

.hero-shot {
  display: block;
  border-radius: var(--r-leaf);
  overflow: hidden;
  /* Square: it matches the product artwork's own 500x500 viewBox so the
     bottles are never cropped, and it keeps this column roughly level with
     the copy on the left. */
  aspect-ratio: 1 / 1;
  background: var(--sand);
  box-shadow: var(--sh-lg);
}
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }

.hero-card {
  position: absolute;
  left: 0; right: 16%;
  bottom: 0;
  background: var(--card);
  border-radius: var(--r-md);
  padding: 18px 20px 20px;
  box-shadow: var(--sh-lg);
  display: grid;
  gap: 5px;
}
.hero-rank {
  display: inline-block;
  justify-self: start;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--leaf);
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-name {
  font-size: 1.32rem;
  line-height: 1.15;
  margin: 3px 0 0;
}
.hero-name a:hover { color: var(--clay); }
.hero-local {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--leaf);
}
.hero-local .sep { opacity: .45; }
.hero-buy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.hero-buy .price { font-size: 1.32rem; }
.hero-buy .btn { margin-left: auto; }

.hero-dots {
  position: absolute;
  left: 0;
  bottom: -24px;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 30px;
  padding: 8px 0;
  display: grid;
  align-items: center;
}
.hero-dots span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background var(--t), transform var(--t);
}
.hero-dots button[aria-selected="true"] span {
  background: var(--leaf);
  transform: scaleY(1.7);
}
.hero-dots button:hover span { background: var(--muted); }

/* Layered image composition */
.hero-media { position: relative; }
.hero-media .shot-main {
  border-radius: var(--r-leaf);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--sh-lg);
}
.hero-media .shot-main img { width: 100%; height: 100%; object-fit: cover; }

.hero-media .shot-inset {
  position: absolute;
  left: -34px; bottom: 46px;
  width: 44%;
  max-width: 200px;
  border-radius: 20px;
  overflow: hidden;
  border: 6px solid var(--bone);
  box-shadow: var(--sh-md);
  aspect-ratio: 1;
}
.hero-media .shot-inset img { width: 100%; height: 100%; object-fit: cover; }

.hero-chip {
  position: absolute;
  right: -10px; top: 40px;
  background: var(--card);
  border-radius: var(--r-pill);
  padding: 11px 18px 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--sh-md);
}
.hero-chip .ic {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  display: grid;
  place-content: center;
  font-size: 1.05rem;
}
.hero-chip .tx { font-size: .8rem; line-height: 1.3; }
.hero-chip .tx b { display: block; color: var(--ink); font-size: .86rem; }

/* --------------------------------------------------------------------------
   9. Trust strip
   -------------------------------------------------------------------------- */
.trust {
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 249, .6);
}
.trust ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 26px 24px;
  border-left: 1px solid var(--line-soft);
}
.trust li:first-child { border-left: 0; }
.trust i { font-size: 1.5rem; color: var(--leaf); flex: none; }
.trust b { display: block; font-size: .92rem; color: var(--ink); font-weight: 600; }
.trust span { font-size: .8rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   10. Category tiles
   -------------------------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.cat-tile {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--leaf-deep);
  box-shadow: var(--sh-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.cat-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: transform var(--t-slow), opacity var(--t);
}
.cat-tile:hover img { transform: scale(1.06); opacity: .7; }
.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 41, 31, .88) 0%, rgba(20, 41, 31, .35) 45%, rgba(20, 41, 31, .05) 100%);
}
.cat-tile-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  z-index: 2;
  color: #fff;
}
.cat-tile-body h3 { color: #fff; font-size: 1.3rem; }
.cat-tile-body p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .78);
  margin: 5px 0 0;
}
.cat-tile-body .go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ochre-light);
}
.cat-tile-body .go i { transition: transform var(--t-fast); }
.cat-tile:hover .go i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   11. Product card
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: var(--line);
}

.product-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sand);
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.product-card:hover .product-media img { transform: scale(1.07); }

.badge-stack {
  position: absolute;
  top: 12px; left: 12px;
  display: grid;
  gap: 6px;
  z-index: 2;
  justify-items: start;
  /* Never run underneath the wishlist button in the opposite corner */
  max-width: calc(100% - 60px);
}
.badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--card);
  color: var(--leaf-deep);
  box-shadow: var(--sh-sm);
}
.badge-sale { background: var(--clay); color: #fff; }
.badge-best { background: var(--leaf); color: #fff; }
.badge-out  { background: var(--ink); color: #fff; }

.wish-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 253, 249, .92);
  color: var(--ink);
  display: grid;
  place-content: center;
  font-size: 1.05rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--t), transform var(--t), color var(--t-fast), background var(--t-fast);
}
.product-card:hover .wish-btn { opacity: 1; transform: none; }
.wish-btn:hover { background: #fff; color: var(--clay); }
.wish-btn.is-on { opacity: 1; transform: none; color: var(--clay); }

/* Slide-up add-to-cart */
.quick-add {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 2;
  transform: translateY(calc(100% + 14px));
  opacity: 0;
  transition: transform var(--t), opacity var(--t);
}
.product-card:hover .quick-add,
.product-card:focus-within .quick-add { transform: none; opacity: 1; }

.product-body {
  padding: 17px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.product-body .local-name { font-size: .7rem; }
.product-body h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -.005em;
}
.product-body h3 a:hover { color: var(--clay); }
.product-unit { font-size: .78rem; color: var(--muted); }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--muted);
}
.rating .stars { color: var(--ochre-dark); letter-spacing: -1px; font-size: .85rem; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: auto;
  padding-top: 9px;
}
.price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--leaf-deep);
}
.price-was {
  font-size: .88rem;
  color: var(--muted);
  text-decoration: line-through;
}

/* --------------------------------------------------------------------------
   12. Split / story sections
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--sh-md);
}
.split-media.leaf { border-radius: var(--r-leaf); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.marks { display: grid; gap: 18px; margin-top: 28px; }
.mark { display: flex; gap: 15px; }
.mark .ic {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50% 12px 50% 12px;
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  display: grid;
  place-content: center;
  font-size: 1.2rem;
}
.surface-leaf .mark .ic { background: rgba(255, 255, 255, .1); color: var(--ochre-light); }
.mark h3 { margin-bottom: 3px; font-family: var(--font-body); font-size: .98rem; font-weight: 600; }
.mark p { font-size: .9rem; margin: 0; }

/* Steps - how to use */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--sand);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 7px; font-size: 1.12rem; }
.step p { font-size: .9rem; margin: 0; }

/* --------------------------------------------------------------------------
   13. Testimonials
   -------------------------------------------------------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote .stars { color: var(--ochre-dark); font-size: .95rem; letter-spacing: -1px; }
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding-top: 6px;
}
.quote .av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  display: grid;
  place-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  flex: none;
}
.quote .who { font-size: .88rem; font-weight: 600; color: var(--ink); }
.quote .where { font-size: .78rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   14. Newsletter
   -------------------------------------------------------------------------- */
.newsletter {
  border-radius: var(--r-lg);
  padding: clamp(34px, 5vw, 60px);
  background: var(--leaf-deep);
  position: relative;
  overflow: hidden;
}
.newsletter::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 138, 43, .25), transparent 68%);
}
/* Dark panel, so the inherited ink headings have to be inverted here */
.newsletter h2, .newsletter h3 { color: #fff; }
.newsletter p { color: rgba(255, 255, 255, .72); }
.newsletter .eyebrow { color: var(--ochre-light); }

.newsletter-inner { position: relative; z-index: 2; max-width: 560px; }
.newsletter form {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.newsletter .input {
  flex: 1;
  min-width: 220px;
  border-radius: var(--r-pill);
  border-color: transparent;
}
.form-note { font-size: .78rem; margin-top: 12px; color: rgba(255, 255, 255, .7); }
.form-success {
  display: none;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: .9rem;
  color: var(--ochre-light);
}
.form-success.is-on { display: flex; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--leaf-dark);
  color: rgba(255, 255, 255, .66);
  padding-top: 72px;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: rgba(255, 255, 255, .62); }
.site-footer .brand-mark { background: rgba(255, 255, 255, .12); }
.footer-about { max-width: 34ch; margin-top: 18px; font-size: .88rem; }

.footer-col h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { transition: color var(--t-fast); }
.footer-col a:hover { color: var(--ochre); }

.socials { display: flex; gap: 9px; margin-top: 22px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  display: grid;
  place-content: center;
  font-size: 1.05rem;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.socials a:hover { background: var(--ochre-light); border-color: var(--ochre-light); color: var(--leaf-dark); }

.disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0;
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .66);
  display: flex;
  gap: 13px;
}
/* The global `strong` rule paints ink on this dark panel - 1.03:1. Override. */
.disclaimer strong { color: #fff; }
.disclaimer i { color: var(--ochre-light); font-size: 1.1rem; flex: none; margin-top: 1px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .62);
}
.pay-row { display: flex; gap: 8px; align-items: center; }
.pay-row span {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  font-size: .72rem;
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   16. Cart drawer
   -------------------------------------------------------------------------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 41, 31, .45);
  backdrop-filter: blur(2px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(430px, 92vw);
  background: var(--bone);
  z-index: 110;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  box-shadow: var(--sh-lg);
}
.drawer.is-open { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.drawer-head h3 { font-size: 1.2rem; }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

.drawer-foot {
  flex: none;
  padding: 20px 22px 24px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.drawer-foot .total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.drawer-foot .total-row .price { font-size: 1.35rem; }
.drawer-foot .ship-note { font-size: .78rem; color: var(--muted); margin-bottom: 16px; }
.drawer-foot .btn + .btn { margin-top: 9px; }

/* Line item - shared by drawer and cart page */
.line-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.line-item:first-child { padding-top: 0; }
.line-item:last-child { border-bottom: 0; }
.line-item .thumb {
  width: 76px; height: 76px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--sand);
  flex: none;
}
.line-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-item .nm { font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.line-item .nm a:hover { color: var(--clay); }
.line-item .vr { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.line-item .li-price { font-weight: 600; color: var(--leaf-deep); font-size: .95rem; white-space: nowrap; }
.line-item .li-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
}

.remove-btn {
  font-size: .8rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  /* WCAG 2.2 target size - the text alone was only 21px tall */
  min-height: 24px;
  padding: 2px 4px;
  margin-right: -4px;
  transition: color var(--t-fast);
}
.remove-btn:hover { color: var(--danger); }

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
  overflow: hidden;
}
.qty button {
  width: 32px; height: 32px;
  display: grid;
  place-content: center;
  font-size: 1rem;
  color: var(--ink);
  transition: background var(--t-fast), color var(--t-fast);
}
.qty button:hover { background: var(--leaf-soft); color: var(--leaf-deep); }
.qty input {
  width: 34px;
  text-align: center;
  border: 0;
  background: transparent;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-lg button { width: 42px; height: 46px; font-size: 1.15rem; }
.qty-lg input { width: 46px; font-size: 1rem; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.empty-state .ic {
  width: 66px; height: 66px;
  border-radius: 50% 14px 50% 14px;
  background: var(--leaf-soft);
  color: var(--leaf);
  display: grid;
  place-content: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.empty-state h3 { font-family: var(--font-display); font-size: 1.24rem; }
.empty-state p { font-size: .9rem; color: var(--muted); max-width: 34ch; }
.empty-state .btn { margin-top: 12px; }

/* --------------------------------------------------------------------------
   17. Toast
   -------------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: 9px;
  width: min(380px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 17px;
  border-radius: var(--r-pill);
  background: var(--leaf-dark);
  color: #fff;
  font-size: .88rem;
  box-shadow: var(--sh-lg);
  animation: toast-in .32s var(--ease);
}
.toast.is-out { animation: toast-out .28s var(--ease) forwards; }
.toast i { color: var(--ochre-light); font-size: 1.15rem; flex: none; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(16px); } }
@keyframes toast-out { to   { opacity: 0; transform: translateY(10px); } }

/* --------------------------------------------------------------------------
   18. Page head / breadcrumb
   -------------------------------------------------------------------------- */
.page-head {
  padding-block: 44px 34px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
.page-head p { margin-top: 12px; max-width: 58ch; color: var(--muted); }

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.crumbs a:hover { color: var(--leaf-deep); }
.crumbs i { font-size: .95rem; opacity: .6; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* --------------------------------------------------------------------------
   19. Shop
   -------------------------------------------------------------------------- */
.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 26px;
}
.filter-group { display: grid; gap: 11px; }
.filter-group h3 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.filter-group .check { font-size: .88rem; color: var(--body); }
.filter-group .check:hover { color: var(--ink); }
.filter-count { color: var(--muted); font-size: .8rem; margin-left: auto; }

.price-filter output {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--leaf-deep);
  margin-bottom: 4px;
}
.price-filter input[type="range"] {
  width: 100%;
  accent-color: var(--leaf);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.result-count { font-size: .88rem; color: var(--muted); }
.result-count b { color: var(--ink); }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.toolbar-right .select { width: auto; padding-block: 9px; font-size: .88rem; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px 6px 14px;
  border-radius: var(--r-pill);
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  font-size: .8rem;
  font-weight: 600;
}
.chip button {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: rgba(47, 93, 66, .15);
  color: var(--leaf-deep);
  font-size: .75rem;
  transition: background var(--t-fast);
}
.chip button:hover { background: var(--clay); color: #fff; }

.filter-toggle { display: none; }

/* Only shown once the filter panel becomes a slide-in drawer */
.filters-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
}
.filters-head .brand-name { font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   20. Product detail
   -------------------------------------------------------------------------- */
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

.pdp-gallery { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 24px); }
.pdp-main {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--sand);
  box-shadow: var(--sh-sm);
}
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pdp-thumbs button {
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid transparent;
  background: var(--sand);
  transition: border-color var(--t-fast);
}
.pdp-thumbs button.is-active { border-color: var(--leaf); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info { display: grid; gap: 18px; }
.pdp-title-row { display: grid; gap: 6px; }
.pdp-info h1 { font-size: clamp(1.65rem, 2.6vw, 2.15rem); }

.pdp-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp-price-row .price { font-size: 2rem; }

.stock-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  color: var(--success);
  font-weight: 600;
}
.stock-line .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.stock-line.is-out { color: var(--danger); }

.size-options { display: flex; flex-wrap: wrap; gap: 9px; }
.size-option {
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.size-option:hover { border-color: var(--leaf); }
.size-option.is-active { border-color: var(--leaf); background: var(--leaf); color: #fff; }
.size-option .sp { display: block; font-size: .76rem; opacity: .75; margin-top: 2px; }

.pdp-actions { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.pdp-actions .btn { flex: 1; min-width: 190px; }
/* The save-to-list button is an icon only - it should not stretch */
.pdp-actions .btn-ghost { flex: 0 0 auto; min-width: 0; width: 58px; padding-inline: 0; }

.pdp-assurances {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}
.pdp-assurances li { display: flex; gap: 11px; font-size: .87rem; align-items: flex-start; }
.pdp-assurances i { color: var(--leaf); font-size: 1.1rem; flex: none; }

/* Accordion */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  text-align: left;
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink);
}
.acc-trigger i { color: var(--leaf); transition: transform var(--t); font-size: 1.2rem; flex: none; }
.acc-trigger[aria-expanded="true"] i { transform: rotate(45deg); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t);
}
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { font-size: .93rem; padding-bottom: 20px; margin: 0; }

/* Dosage panel - prepared medicines only */
.dosage-box {
  padding: 18px 20px;
  border: 1px solid var(--leaf);
  border-left-width: 4px;
  border-radius: var(--r-md);
  background: var(--leaf-soft);
}
.dosage-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  margin-bottom: 8px;
}
.dosage-head i { font-size: 1.1rem; }
.dosage-box p { font-size: .93rem; color: var(--ink); margin: 0; }
.dosage-box .reg {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(47, 93, 66, .2);
  font-size: .76rem;
  color: var(--muted);
}

.media-credit {
  font-size: .74rem;
  color: var(--muted);
  margin: 0;
}
.media-credit a { text-decoration: underline; }

.safety-note {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(185, 121, 27, .09);
  border: 1px solid rgba(185, 121, 27, .22);
  font-size: .86rem;
  line-height: 1.55;
}
.safety-note i { color: var(--warn); font-size: 1.15rem; flex: none; margin-top: 1px; }
.safety-note b { color: var(--ink); }

/* --------------------------------------------------------------------------
   21. Cart page
   -------------------------------------------------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.cart-items {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 8px 24px;
}

.summary {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 26px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.summary h2 { font-size: 1.2rem; margin-bottom: 20px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .92rem;
  padding: 9px 0;
}
.summary-row .lbl { color: var(--muted); }
.summary-row .val { font-weight: 600; color: var(--ink); }
.summary-row.is-free .val { color: var(--success); }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.summary-total .lbl { font-size: 1rem; font-weight: 600; color: var(--ink); }
.summary-total .price { font-size: 1.5rem; }
.summary .btn { margin-top: 20px; }

.promo-row { display: flex; gap: 8px; margin: 18px 0 4px; }
.promo-row .input { border-radius: var(--r-pill); font-size: .88rem; }
.promo-msg { font-size: .8rem; margin-top: 8px; display: none; }
.promo-msg.is-on { display: block; }
.promo-msg.ok { color: var(--success); }
.promo-msg.err { color: var(--danger); }

.ship-progress { margin-bottom: 18px; }
.ship-progress .bar {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--sand);
  overflow: hidden;
  margin-top: 8px;
}
.ship-progress .fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--leaf);
  transition: width var(--t-slow);
}
.ship-progress p { font-size: .82rem; margin: 0; color: var(--muted); }
.ship-progress b { color: var(--ink); }

/* --------------------------------------------------------------------------
   22. Checkout
   -------------------------------------------------------------------------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 44px;
  align-items: start;
}
.checkout-form { display: grid; gap: 36px; }

.co-block {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 28px;
}
.co-block > h2 {
  font-size: 1.12rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.co-block > h2 .n {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--leaf);
  color: #fff;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  display: grid;
  place-content: center;
  flex: none;
}

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }

.pay-options { display: grid; gap: 11px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.pay-option:hover { border-color: var(--leaf); }
.pay-option:has(input:checked) { border-color: var(--leaf); background: var(--leaf-soft); }
.pay-option .ic { font-size: 1.35rem; color: var(--leaf-deep); flex: none; }
.pay-option .tx b { display: block; font-size: .92rem; color: var(--ink); }
.pay-option .tx span { font-size: .8rem; color: var(--muted); }

.co-summary-items {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  max-height: 320px;
  overflow-y: auto;
}
.co-line { display: flex; gap: 12px; align-items: center; }
.co-line .thumb {
  position: relative;
  width: 54px; height: 54px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--sand);
  flex: none;
}
.co-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-line .thumb .q {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--leaf-deep);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: grid;
  place-content: center;
  border: 2px solid var(--card);
}
.co-line .nm { font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.co-line .vr { font-size: .76rem; color: var(--muted); }
.co-line .pr { margin-left: auto; font-size: .88rem; font-weight: 600; color: var(--leaf-deep); white-space: nowrap; }

/* Order confirmation */
.confirm {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  padding-block: 40px;
}
.confirm .tick {
  width: 82px; height: 82px;
  border-radius: 50% 16px 50% 16px;
  background: var(--leaf);
  color: #fff;
  font-size: 2.4rem;
  display: grid;
  place-content: center;
  margin: 0 auto 26px;
  animation: pop .45s var(--ease);
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.confirm h1 { margin-bottom: 14px; }
.order-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 30px;
  text-align: left;
}
.order-meta div { background: var(--card); padding: 17px 18px; }
.order-meta .lbl {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.order-meta .val { font-size: .95rem; font-weight: 600; color: var(--ink); }

/* --------------------------------------------------------------------------
   23. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.hide { display: none !important; }

/* Scroll reveals are opt-in via the `js` class set by an inline script in the
   <head>. Without JS the content simply renders - it is never left at
   opacity:0 for crawlers, print, or a failed script load. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   24. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --section-y: 76px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .cart-layout,
  .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 992px) {
  .main-nav,
  .header-search { display: none; }
  .nav-toggle { display: grid; }
  .header-inner { justify-content: space-between; gap: 12px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .hero .lead { margin-inline: auto; }
  .hero-media .shot-inset { left: -14px; width: 38%; }

  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }

  .shop-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(310px, 88vw);
    background: var(--card);
    z-index: 110;
    padding: 22px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--t-slow);
    align-content: start;
  }
  .filters.is-open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .filters-head { display: flex; }

  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }

  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }

  .cat-grid,
  .steps,
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --section-y: 60px; --gutter: 18px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .product-grid,
  .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .cat-grid { gap: 16px; }
  .steps,
  .quote-grid { grid-template-columns: 1fr; }

  .form-grid { grid-template-columns: 1fr; }
  .order-meta { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Touch screens have no hover, so the quick-add is always visible. It stays
     absolutely positioned - going static would put it inside the fixed-ratio,
     overflow-hidden media box and clip it out of sight. */
  .quick-add { transform: none; opacity: 1; }
  .wish-btn { opacity: 1; transform: none; }

  .line-item { grid-template-columns: 64px 1fr; }
  .line-item .thumb { width: 64px; height: 64px; }
  .line-item .li-price { grid-column: 2; }

  .cart-items { padding-inline: 18px; }
  .co-block { padding: 22px 18px; }
}

@media (max-width: 480px) {
  /* Product cards stay two-up on phones - one giant card per row makes a
     16-item catalogue an endless scroll. Category tiles are image-led and
     read better full width. */
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid,
  .product-grid.cols-3 { gap: 12px; }
  .product-body { padding: 14px 13px 16px; }
  .product-body h3 { font-size: .98rem; }
  .price { font-size: 1.08rem; }
  .badge { font-size: .6rem; padding: 4px 9px; letter-spacing: .04em; }
  .badge-stack { top: 9px; left: 9px; gap: 5px; }
  .quick-add { left: 9px; right: 9px; bottom: 9px; }
  .hero-proof { gap: 20px; }
  .hero-media .shot-inset { display: none; }
  .hero-chip { right: 0; padding: 9px 14px 9px 9px; }
  .pdp-actions .btn { min-width: 100%; }
  .pdp-actions .btn-ghost { min-width: 0; }
}

/* Very narrow phones - two columns finally becomes too tight */
@media (max-width: 360px) {
  .product-grid,
  .product-grid.cols-3 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   25. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .drawer, .scrim, .announce, .toast-stack { display: none !important; }
  body { background: #fff; }
}
