/* =========================================================
   Anitha's Spices — retail theme
   Colors and fonts tuned to match the Canva design:
   deep olive green + warm cream + Cormorant display serif.
   Change the tokens below and the whole site re-themes.
   ========================================================= */
:root {
  /* Brand palette — pulled from the Canva design */
  --color-bg:        #faf6e7;   /* warm ivory background */
  --color-surface:   #ffffff;
  --color-text:      #2a2a25;   /* near-black with warm tilt */
  --color-muted:     #6b6258;   /* warm gray for body copy */
  --color-line:      #e7e0c8;   /* hairline divider, very subtle */
  --color-primary:   #2d4720;   /* deep estate green — buttons, headings on dark */
  --color-primary-2: #3d5d2b;   /* hover green */
  --color-olive:     #5a6e2f;   /* lighter olive — section h2's */
  --color-accent:    #876547;   /* warm brown — subtitles + script accents */
  --color-accent-2: #6b4f37;
  --color-cream:     #fbf8eb;   /* card background, slightly lighter than page */
  --color-danger:    #a83232;

  --font-serif:  "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-script: "Allura", "Dancing Script", cursive;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(45,71,32,.06);
  --shadow:    0 8px 28px rgba(45,71,32,.10);

  --container: 1200px;
}

/* ============== Reset / base ============== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent-2); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); color: var(--color-olive); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; color: var(--color-text); }
.small { font-size: .875rem; color: var(--color-muted); }
.script { font-family: var(--font-script); color: var(--color-accent); font-size: 1.5rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============== Header — estate-style ============== */
.site-header {
  background: var(--color-primary);
  color: #fff;
  border-bottom: 4px solid var(--color-olive);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--container); margin: 0 auto;
  gap: 24px;
}
.brand {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.brand:hover { color: #fff; opacity: .9; }
.brand small {
  font-family: var(--font-sans); font-size: .65rem; color: rgba(255,255,255,.75);
  letter-spacing: 0.28em; text-transform: uppercase; margin-top: 4px; font-weight: 400;
}
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: rgba(255,255,255,.85); font-size: .95rem; font-weight: 400; }
.nav a:hover { color: #fff; }
.nav .cart-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-cream); color: var(--color-primary);
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500;
}
.nav .cart-link:hover { background: #fff; color: var(--color-primary); }
.cart-count {
  background: var(--color-primary); color: #fff;
  font-size: .75rem; padding: 1px 8px; border-radius: 999px; font-weight: 600;
  min-width: 22px; text-align: center;
}

/* ============== Hero ============== */
.hero {
  padding: 72px 0 32px;
  text-align: center;
}
.hero p.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 680px; margin: 0 auto 1.5em; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.32em; font-size: .75rem;
  color: var(--color-accent-2); margin-bottom: 16px; font-weight: 500;
}
.hero .script { display: block; margin-bottom: 8px; }

/* ============== Brand hero (medallion + leaves, matches main Canva) ============== */
.brand-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 88px 24px 96px;
}
.brand-hero__seal {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, 92vw);
  opacity: .55;
  mix-blend-mode: luminosity;
  pointer-events: none;
  user-select: none;
}
.brand-hero__leaves {
  position: absolute;
  bottom: -24px;
  width: min(240px, 28vw);
  opacity: .95;
  pointer-events: none;
  user-select: none;
}
.brand-hero__leaves--left  { left:  -16px; }
.brand-hero__leaves--right { right: -16px; }
.brand-hero__content { position: relative; z-index: 2; }
.brand-hero h1 {
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.005em;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}
.brand-hero .place {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, .92);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.brand-hero .script {
  display: inline-block;
  color: rgba(255, 255, 255, .96);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-top: 8px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.brand-hero .eyebrow {
  color: rgba(255, 255, 255, .85);
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  .brand-hero { padding: 60px 16px 72px; }
  .brand-hero__leaves { display: none; } /* leaves crowd a phone screen — drop them */
}

/* ============== Product Offerings title (matches Canva) ============== */
.shop-title {
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin: 16px 0 40px;
}

/* ============== Product grid (estate-style cards) ============== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  padding: 0 0 80px;
}
.card {
  background: var(--color-cream);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media {
  aspect-ratio: 1 / 1;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.card__media .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); opacity: .3;
  font-family: var(--font-serif); font-size: 3.5rem; font-weight: 600;
}
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; background: var(--color-cream); }
.card__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
}
.card__variant { font-size: .85rem; color: var(--color-muted); }
.card__short { font-size: .92rem; color: var(--color-muted); flex: 1; margin: 4px 0 8px; line-height: 1.5; }
.card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-size: 1.2rem; font-weight: 600; color: var(--color-primary); font-family: var(--font-serif); }

/* ============== Buttons (estate-style — dark green, rounded) ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: .9rem; font-weight: 500;
  padding: 10px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary  { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-2); color: #fff; }
.btn-accent   { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-2); color: #fff; }
.btn-outline  { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-ghost    { background: transparent; color: var(--color-text); }
.btn-ghost:hover { background: var(--color-line); }
.btn-block    { width: 100%; padding: 14px 22px; font-size: 1rem; }

/* ============== Product detail ============== */
.product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding: 48px 0 80px;
}
@media (max-width: 800px) { .product { grid-template-columns: 1fr; gap: 32px; } }
.product__media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--color-primary);
  position: relative;
}
.product__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.product__media .placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); opacity: .25; font-family: var(--font-serif); font-size: 7rem; font-weight: 600;
}
.product__info h1 { margin-bottom: .25em; color: var(--color-primary); }
.product__variant { color: var(--color-muted); margin-bottom: 24px; font-size: 1.05rem; }
.product__price { font-family: var(--font-serif); font-size: 2.2rem; color: var(--color-primary); margin-bottom: 24px; font-weight: 600; }
.product__long { color: var(--color-text); line-height: 1.75; margin-bottom: 24px; }
.product__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--color-primary); border-radius: 999px; overflow: hidden;
}
.qty button {
  background: transparent; border: 0; width: 38px; height: 42px; cursor: pointer; font-size: 1.1rem; color: var(--color-primary);
}
.qty button:hover { background: var(--color-line); }
.qty input {
  width: 48px; height: 42px; border: 0; text-align: center; font-size: 1rem; background: transparent; color: var(--color-primary); font-weight: 600;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ============== Cart ============== */
.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}
@media (max-width: 800px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-list { background: var(--color-cream); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 8px 24px; }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--color-line);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item__media {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--color-primary); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); opacity: .85; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600;
}
.cart-item__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.cart-item__title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--color-primary); }
.cart-item__variant { font-size: .85rem; color: var(--color-muted); }
.cart-item__remove { background: none; border: 0; color: var(--color-muted); cursor: pointer; font-size: .85rem; padding: 2px 0; }
.cart-item__remove:hover { color: var(--color-danger); }
.cart-item__right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

.summary {
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky; top: 88px;
  align-self: start;
}
.summary h3 { color: var(--color-primary); margin-bottom: 16px; font-size: 1.4rem; }
.summary__row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--color-muted); }
.summary__row.total { font-family: var(--font-serif); font-size: 1.35rem; color: var(--color-primary); font-weight: 600; border-top: 1px solid var(--color-line); margin-top: 8px; padding-top: 16px; }

.empty {
  text-align: center; padding: 80px 24px;
  color: var(--color-muted);
}
.empty h2 { color: var(--color-primary); }

/* ============== Checkout ============== */
.checkout-layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  padding: 40px 0 80px;
}
@media (max-width: 800px) { .checkout-layout { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .85rem; color: var(--color-muted); font-weight: 500; }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--color-text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: -1px; border-color: var(--color-primary); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.section-title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--color-primary); margin: 28px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--color-line); }

.mini-cart { background: var(--color-cream); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 24px; }
.mini-cart h3 { color: var(--color-primary); margin-bottom: 12px; }
.mini-cart__item { display: flex; justify-content: space-between; padding: 8px 0; font-size: .9rem; gap: 12px; }
.mini-cart__item .name { color: var(--color-text); }
.mini-cart__item .meta { color: var(--color-muted); font-size: .8rem; }

/* ============== Footer ============== */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.85);
  padding: 56px 0 24px;
  margin-top: 64px;
}
.site-footer a { color: #fff; }
.site-footer__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-serif); margin-bottom: 12px; font-size: 1.2rem; }
.site-footer .script {
  color: rgba(255, 255, 255, .9);
  font-size: 1.1rem;
  line-height: 1.2;
  white-space: nowrap;
  margin-top: 6px;
}
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; margin-top: 32px; font-size: .85rem; color: rgba(255,255,255,.65); text-align: center; }

/* ============== Toast ============== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--color-primary); color: #fff;
  padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow);
  font-size: .9rem; z-index: 100;
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* === The append got truncated — re-applying clean === */

/* Storytelling sections */
.section { padding: 80px 0; }
.section--cream  { background: var(--color-bg); }
.section--white  { background: #fbf8eb; }
.section--green  { background: var(--color-primary); color: #fff; }
.section--green h2, .section--green h3 { color: #fff; }
.section--green p { color: rgba(255,255,255,.9); }
.section h2.h2-olive  { color: var(--color-olive); }
.section h2.h2-center { text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split--reverse .split__text  { order: 1; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media, .split--reverse .split__text { order: initial; }
}
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4 / 3; }
.split__text p { font-size: 1.05rem; line-height: 1.75; }
.split__text .pull { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--color-accent-2); border-left: 3px solid var(--color-accent); padding: 4px 0 4px 18px; margin: 24px 0 0; }
.caption { text-align: center; font-family: var(--font-serif); font-style: italic; color: var(--color-accent-2); margin: 16px 0 0; font-size: 1.05rem; }

.pouches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 32px auto 16px; max-width: 900px; }
@media (max-width: 700px) { .pouches { grid-template-columns: repeat(2, 1fr); } }
.pouches img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.pouches .label { text-align: center; font-family: var(--font-serif); color: var(--color-primary); font-weight: 600; margin-top: 8px; font-size: 1.05rem; }

.promise-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 32px; }
.promise { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 24px; }
.promise h3 { font-size: 1.15rem; color: #fff; margin-bottom: 8px; }
.promise p  { font-size: .95rem; color: rgba(255,255,255,.85); margin: 0; }

.contact-hero { position: relative; overflow: hidden; background: var(--color-primary); color: #fff; padding: 88px 24px; text-align: center; }
.contact-hero__seal { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(640px, 90vw); opacity: .35; mix-blend-mode: luminosity; pointer-events: none; }
.contact-hero__leaves { position: absolute; bottom: -24px; width: min(220px, 26vw); opacity: .9; pointer-events: none; }
.contact-hero__leaves--left  { left:  -16px; }
.contact-hero__leaves--right { right: -16px; }
.contact-hero__content { position: relative; z-index: 2; }
.contact-hero h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.contact-hero a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.contact-hero a:hover { color: var(--color-cream); }

section[id] { scroll-margin-top: 84px; }

.hero-cta-row { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta-row .btn-primary { background: var(--color-cream); color: var(--color-primary); }
.hero-cta-row .btn-primary:hover { background: #fff; color: var(--color-primary); }
.hero-cta-row .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.hero-cta-row .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ============== Delivery method picker ============== */
.delivery-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.delivery-opt {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid var(--color-line); border-radius: var(--radius);
  background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.delivery-opt.is-selected {
  border-color: var(--color-primary);
  background: var(--color-cream);
  border-left: 4px solid var(--color-primary);
}
.delivery-opt input { margin-top: 4px; cursor: pointer; }
.delivery-opt__body { flex: 1; }
.delivery-opt__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.delivery-opt__head strong { color: var(--color-primary); font-size: .98rem; }
.delivery-opt__fee { font-weight: 600; color: var(--color-primary); white-space: nowrap; }
.delivery-opt__desc { font-size: .85rem; color: var(--color-muted); margin-top: 4px; line-height: 1.4; }

/* ============== Card with direct add-to-cart ============== */
.card { display: flex; flex-direction: column; }
.card__link {
  display: flex; flex-direction: column; flex: 1;
  color: inherit; text-decoration: none;
}
.card__link:hover .card__title { color: var(--color-primary-2); }
.card__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 22px 18px;
  border-top: 1px solid rgba(45,71,32,.08);
  background: var(--color-cream);
}
.card__add {
  padding: 8px 16px;
  font-size: .9rem;
  border-radius: 999px;
}

/* ============== Row-per-grade product layout ============== */
.grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 80px;
}
.row-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 16px 20px;
}
@media (max-width: 700px) {
  .row-card { grid-template-columns: 100px 1fr; padding: 12px 14px; gap: 14px; }
}
.row-card__media {
  width: 140px; height: 140px;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
}
@media (max-width: 700px) { .row-card__media { width: 100px; height: 100px; } }
.row-card__img {
  width: 100%; height: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.row-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.row-card__img .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); font-family: var(--font-serif);
  font-size: 2.5rem; opacity: .3;
}
.row-card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
}
.row-card__short { color: var(--color-muted); font-size: .92rem; line-height: 1.4; margin: 0; }

.row-card__sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.size-btn {
  background: #fff; border: 1px solid var(--color-line); color: var(--color-text);
  padding: 6px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 500; cursor: pointer;
  font-family: inherit; transition: background .15s, color .15s, border-color .15s;
}
.size-btn:hover { border-color: var(--color-primary); }
.size-btn.is-selected {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}

.row-card__actions {
  display: flex; align-items: center; gap: 14px;
  margin-top: 8px; flex-wrap: wrap;
}
.row-card__price {
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.3rem;
  min-width: 80px;
}
.row-card__qty {
  display: inline-flex; align-items: center; gap: 6px;
}
.row-card__qty .small { color: var(--color-muted); }
.row-card__qty input {
  width: 56px; padding: 6px 8px; text-align: center;
  border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem;
}
.row-card__qty input:focus { outline: 2px solid var(--color-primary); outline-offset: -1px; }
.row-card__add { padding: 8px 18px; border-radius: 999px; font-size: .9rem; }

/* ============== Mobile polish (<=600px) ============== */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }

  /* Header: tighter, brand stays readable, nav becomes a horizontal scroll if it overflows */
  .site-header__inner { padding: 10px 14px; gap: 8px; flex-wrap: nowrap; }
  .brand { font-size: 1.05rem; }
  .brand small { font-size: .55rem; letter-spacing: 0.2em; margin-top: 2px; }
  .nav { gap: 10px; flex-shrink: 0; }
  .nav a { font-size: .85rem; }
  .nav .cart-link { padding: 6px 11px; font-size: .8rem; gap: 4px; }
  .cart-count { font-size: .7rem; padding: 0 6px; min-width: 18px; }

  /* Section spacing */
  .section { padding: 48px 0; }
  .hero { padding: 32px 0 16px; }

  /* Row cards: image on top, body below, actions stack vertically */
  .row-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .row-card__media {
    width: 100%; height: 200px;
    margin: 0 auto;
  }
  .row-card__title { font-size: 1.2rem; }
  .row-card__short { font-size: .88rem; }
  .row-card__sizes { gap: 8px; }
  .size-btn { padding: 10px 14px; font-size: .9rem; min-height: 40px; }
  .row-card__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
  }
  .row-card__price { font-size: 1.4rem; text-align: center; }
  .row-card__qty { justify-content: center; padding: 8px 0; }
  .row-card__qty input { width: 76px; height: 44px; font-size: 1rem; }
  .row-card__add { width: 100%; padding: 12px 24px; font-size: 1rem; min-height: 44px; }

  /* Product detail */
  .product { padding: 24px 0 56px; }
  .product__media { aspect-ratio: 1 / 1; }
  .product__main { padding: 12px; }
  .product__thumbs { justify-content: center; }
  .product__sizes { gap: 8px; }
  .product__sizes .size-btn { padding: 10px 16px; }

  /* Story split layouts collapse to single column */
  .split { gap: 24px; }
  .split__media img { aspect-ratio: 4/3; }

  /* Cart and checkout */
  .cart-layout, .checkout-layout { gap: 24px; padding: 24px 0 56px; }
  .cart-list { padding: 4px 14px; }
  .cart-item { grid-template-columns: 56px 1fr; gap: 12px; padding: 14px 0; }
  .cart-item__media { width: 56px; height: 56px; }
  .cart-item__right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 4px; }
  .cart-item__title { font-size: 1rem; }
  .summary { padding: 18px; position: static; }
  .summary h3 { font-size: 1.2rem; }

  .mini-cart { padding: 16px; }
  .field input, .field select, .field textarea { font-size: 16px; /* prevents iOS zoom on focus */ }
  .section-title { font-size: 1.2rem; margin-top: 20px; }
  .btn-block { padding: 12px 16px; font-size: 1rem; min-height: 44px; }

  /* Delivery picker compact */
  .delivery-opt { padding: 10px 12px; }
  .delivery-opt__head strong { font-size: .92rem; }
  .delivery-opt__fee { font-size: .9rem; }
  .delivery-opt__desc { font-size: .8rem; }

  /* Promise pills */
  .promise { padding: 16px; }

  /* Pouches stay 2-col; smaller padding */
  .pouches { gap: 12px; max-width: 100%; }
  .pouches img { padding: 6px; max-width: 140px; }
  .pouches .label { font-size: .95rem; }

  /* Footer */
  .site-footer { padding: 36px 0 20px; margin-top: 40px; }
  .site-footer__inner { gap: 24px; }

  /* Contact hero a bit tighter */
  .contact-hero { padding: 56px 16px; }
  .contact-hero h2 { font-size: 1.8rem; }
}

/* Even tighter at very small viewports */
@media (max-width: 400px) {
  .nav a:not(.cart-link) { display: none; } /* hide all text nav, keep only the cart pill */
  .nav .cart-link { padding: 8px 14px; }
  .brand { font-size: 1rem; }
  .brand small { display: none; }
  .row-card__media { height: 180px; }
}

/* ============== Header full-width fix ============== */
/* Prevent any element (e.g. decorative leaves, oversized images, long words)
   from forcing horizontal scroll and revealing the body cream behind the sticky
   header. `overflow-x: clip` keeps sticky positioning working — unlike
   `overflow-x: hidden`, which would break it. */
html { overflow-x: clip; }
body { overflow-x: clip; }
.site-header {
  width: 100%;
  left: 0;
  right: 0;
}
.site-header__inner {
  box-sizing: border-box;
  max-width: var(--container);
  width: 100%;
}

/* ============== Header: fixed positioning (override sticky) ==============
   Fixed positioning sidesteps the sticky-+-overflow interaction entirely.
   The header always paints across the full viewport width.
   We add padding-top to body so the page content doesn't hide under it. */
.site-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  width: 100%;
}
body { padding-top: 72px; /* header height on desktop */ }
@media (max-width: 600px) {
  body { padding-top: 64px; /* tighter header on mobile */ }
}
/* The brand-hero / contact-hero already calculate against 72px / 64px header,
   so they continue to fill the viewport correctly under the fixed header. */

/* ============== Cart pill: subtle olive variant, not cream ==============
   The earlier cream pill was reading as a colour break in the olive bar.
   Now it's a semi-transparent white outline that blends with the olive header. */
.nav .cart-link {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.nav .cart-link:hover {
  background: rgba(255, 255, 255, 0.20) !important;
  color: #fff !important;
}
/* Cart count badge inside the pill: cream pill on olive parent for contrast */
.cart-count {
  background: var(--color-cream) !important;
  color: var(--color-primary) !important;
}

/* ============================================================
   FINAL OVERFLOW & HEADER OVERRIDE - WINS ALL EARLIER RULES
   ============================================================ */
html {
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100vw;
}
body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding-top: 72px;
  position: relative;
}
@media (max-width: 600px) {
  body { padding-top: 64px; }
}
/* Make sure nothing creates a child wider than the viewport. */
body * { max-width: 100vw; }
/* Re-allow seal/leaves images which legitimately need precise widths. */
.brand-hero__seal, .brand-hero__leaves, .contact-hero__seal, .contact-hero__leaves { max-width: none; }

.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  background: var(--color-primary) !important;
  z-index: 100;
  box-sizing: border-box;
}
.site-header__inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============== Hamburger menu (mobile only) ============== */
/* High specificity selector so cached/old rules can't beat this. */
.site-header .nav .hamburger {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.40);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  font-family: inherit;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.site-header .nav .hamburger:hover {
  background: rgba(255, 255, 255, 0.22);
}
.hamburger__bar { display: none; } /* legacy span cleanup */

/* Separate dropdown panel injected by JS — sibling of .site-header__inner. */
.site-header .mobile-menu {
  display: none;
}
.site-header .mobile-menu[hidden] { display: none !important; }

/* Mobile/tablet: show hamburger, hide regular nav links, enable dropdown panel */
@media (max-width: 768px) {
  .site-header .nav .hamburger {
    display: inline-flex !important;
  }
  .site-header .nav a:not(.cart-link) {
    display: none !important;
  }
  .hide-on-mobile { display: none !important; }

  /* The dropdown panel itself */
  .site-header .mobile-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 100;
  }
  .site-header .mobile-menu[hidden] {
    display: none !important;
  }
  .site-header .mobile-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    font-size: 1rem;
    font-family: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
  }
  .site-header .mobile-menu a:last-child {
    border-bottom: 0;
  }
  .site-header .mobile-menu a:hover,
  .site-header .mobile-menu a:active {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Desktop: hamburger and panel never show */
@media (min-width: 769px) {
  .site-header .nav .hamburger { display: none !important; }
  .site-header .mobile-menu { display: none !important; }
}
