/* ==========================================================================
   Sproutform — homepage styles
   Mobile-first: base rules are phone-width; media queries only scale UP.
   Breakpoints: 600px (2→3 col, roomier type) · 960px (full desktop widths)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --cream:        #F5EFE3;
  --cream-deep:   #F0E9DA;
  --surface:      #FFFDF7;
  --sage:         #40614A;
  --sage-dark:    #2E4234;
  --ink:          #26332B;
  --ink-soft:     #4A5A4E;
  --ink-mute:     #7A8A7E;
  --coral:        #E2664A;
  --yellow:       #E5A93A;
  --teal:         #2E8B86;

  --line:         rgba(64, 97, 74, .14);
  --line-strong:  rgba(64, 97, 74, .35);
  --shadow-card:  0 1px 0 rgba(26, 38, 30, .05);
  --shadow-btn:   0 2px 0 rgba(26, 38, 30, .26);

  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  --font-display: Fredoka, system-ui, sans-serif;   /* headings, buttons, nav */
  --font-body:    Karla, system-ui, sans-serif;     /* body, labels */
  --font-script:  Caveat, cursive;                  /* prices, kickers, asides */

  --wrap: 1180px;
  --gutter: 12px;
  --tap: 44px;                 /* minimum tap target — do not go below */
  --ease: cubic-bezier(.2, .9, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
}

/* accent per category / card — set with data-accent on any block */
[data-accent="coral"]  { --accent: var(--coral); }
[data-accent="yellow"] { --accent: var(--yellow); }
[data-accent="teal"]   { --accent: var(--teal); }
[data-accent="sage"]   { --accent: var(--sage); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: pretty; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
.product-card__media img,
.media-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
}
a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--teal); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--sage); color: var(--cream); padding: 12px 18px; border-radius: var(--r-pill);
}
.skip-link:focus { left: 12px; }

/* ---------- Shared bits ---------- */
.script-note { font-family: var(--font-script); font-size: 23px; line-height: 1; color: var(--ink-mute); display: block; }
.script-note--light { color: rgba(245, 239, 227, .75); }

.icon-btn {
  width: var(--tap); height: var(--tap);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid rgba(64, 97, 74, .2);
  border-radius: 15px; cursor: pointer; color: var(--sage);
  font-size: 20px; line-height: 1;
}
.icon-btn--ghost { background: transparent; border-color: rgba(245, 239, 227, .3); color: var(--cream); font-size: 22px; }

.btn {
  --btn-bg: var(--sage);
  --btn-fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px;
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  background: var(--btn-bg); color: var(--btn-fg);
  border: none; border-radius: var(--r-pill); cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background .2s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { min-height: 52px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--cream { --btn-bg: var(--cream); --btn-fg: var(--ink); min-height: 50px; padding: 0 22px; font-size: 16px; box-shadow: 0 3px 0 rgba(26, 38, 30, .28); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--sage); min-height: 48px; padding: 0 24px; border: 1.5px solid var(--line-strong); box-shadow: none; }
.btn--add { min-height: var(--tap); padding: 0 15px; font-size: 13.5px; white-space: nowrap; }
.btn--add.is-added { background: var(--teal); }

/* image placeholder — replace with the WooCommerce product thumbnail */
.media-slot,
.product-card__media {
  position: relative; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent, var(--sage)) 20%, transparent);
  background: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--accent, var(--sage)) 14%, transparent) 0 7px,
    color-mix(in srgb, var(--accent, var(--sage)) 5%, transparent) 7px 14px);
}
.media-slot--4x3 { aspect-ratio: 4 / 3; }
.media-slot__label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(38, 51, 43, .5);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 239, 227, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 6px; padding-block: 8px; }
.site-header__spacer { flex: 1; }
.site-header__link { font-size: 13px; font-weight: 700; padding: 12px 10px; border-radius: 12px; }

.burger { background: transparent; border: none; flex-direction: column; gap: 5px; padding: 0 11px; }
.burger__bar { display: block; width: 100%; height: 2.5px; border-radius: 2px; background: var(--sage); }
.burger__bar--short { width: 72%; }

.brand { display: flex; align-items: center; gap: 9px; min-height: var(--tap); }
.brand__logo-img { width: 34px; height: 34px; flex: none; border-radius: 50%; object-fit: contain; }
.brand__mark { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--sage); display: flex; align-items: center; justify-content: center; }
.brand__leaf { width: 13px; height: 13px; background: var(--cream); border-radius: 0 70% 0 70%; transform: rotate(-12deg); }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; color: var(--ink); }

.cart-btn { position: relative; }
.cart-btn__bump { display: inline-flex; transition: transform .3s var(--pop); }
.cart-btn__bump.is-bumped { transform: scale(1.16); }        /* JS toggles for 300ms on add */
.cart-icon { position: relative; width: 17px; height: 14px; margin-top: 5px; border: 2.5px solid var(--sage); border-radius: 0 0 6px 6px; }
.cart-icon__handle { position: absolute; left: 2px; right: 2px; top: -9px; height: 9px; border: 2.5px solid var(--sage); border-bottom: none; border-radius: 8px 8px 0 0; }
.cart-btn__count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--coral); color: var(--surface);
  font-family: var(--font-display); font-size: 11px; line-height: 1;
  border: 2px solid var(--cream); border-radius: var(--r-pill);
}
.cart-btn__count[hidden] { display: none; }

/* ==========================================================================
   Mobile nav (off-canvas, full screen)
   ========================================================================== */
.mobile-nav {
  position: fixed; inset: 0; z-index: 70;
  background: var(--sage); color: var(--cream);
  overflow: auto;
  animation: sf-menu .26s var(--ease);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__inner { max-width: 560px; margin-inline: auto; padding: 14px 20px 40px; display: flex; flex-direction: column; gap: 26px; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); }
.mobile-nav__menu { display: flex; flex-direction: column; }
.mobile-nav__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(245, 239, 227, .16);
  font-family: var(--font-display); font-size: 27px; font-weight: 500; color: var(--cream);
}
.mobile-nav__meta { font-family: var(--font-body); font-size: 12px; color: rgba(245, 239, 227, .6); }
.mobile-nav__secondary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.mobile-nav__secondary a { color: rgba(245, 239, 227, .85); font-size: 14px; padding: 8px 0; }

/* desktop: swap the off-canvas trigger for an inline menu if desired —
   the markup is one <nav>, so a min-width query can display it in the header. */
@media (min-width: 960px) {
  .mobile-nav__inner { padding-top: 24px; }
}

/* ==========================================================================
   Hero rotator
   ========================================================================== */
.hero-section { padding-top: 12px; }
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(430px, 78vw, 540px);
  border-radius: var(--r-xl);
  background: var(--sage);
  touch-action: pan-y;                /* vertical scroll stays native; JS reads horizontal swipe */
  user-select: none;
}
.hero__art { position: absolute; inset: -6% -4%; pointer-events: none; will-change: transform; }
.hero__shape {
  position: absolute; display: block;
  background: var(--accent, var(--coral));
  transition: background .9s ease;
}
.hero__shape--1 { left: 8%;  top: 14%; width: 86px;  height: 86px;  border-radius: 50%;            opacity: .13; animation: sf-drift-a 10s ease-in-out infinite; }
.hero__shape--2 { left: 68%; top: 8%;  width: 120px; height: 120px; border-radius: 32%;            opacity: .10; animation: sf-drift-b 11s ease-in-out .8s infinite; }
.hero__shape--3 { left: 80%; top: 48%; width: 64px;  height: 64px;  border-radius: 50% 12% 50% 12%; opacity: .16; animation: sf-drift-c 12s ease-in-out 1.4s infinite; }
.hero__shape--4 { left: 38%; top: 4%;  width: 54px;  height: 54px;  border-radius: 18px;           opacity: .12; animation: sf-drift-c 9s ease-in-out .4s infinite; }
.hero__shape--5 { left: 2%;  top: 58%; width: 100px; height: 44px;  border-radius: var(--r-pill);  opacity: .10; animation: sf-drift-b 13s ease-in-out 1.1s infinite; }
.hero__shape--6 { left: 54%; top: 62%; width: 40px;  height: 40px;  border-radius: 50%;            opacity: .14; animation: sf-drift-a 10s ease-in-out 1.9s infinite; }

.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(245, 239, 227, .10), transparent 60%),
    linear-gradient(180deg, rgba(26, 38, 30, 0) 35%, rgba(26, 38, 30, .34) 100%);
}

.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translate3d(26px, 0, 0); pointer-events: none;
  transition: opacity .62s ease, transform .62s var(--ease);
}
.hero__slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero__slide.is-prev { transform: translate3d(-26px, 0, 0); }
.hero.is-dragging .hero__slide { transition: opacity .3s ease; }
.hero__slide-bg {
  position: absolute; inset: 0;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  background-color: var(--sage);
  border-radius: inherit;
}

.hero__body {
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  padding: clamp(20px, 6vw, 44px);
}
.hero__title {
  font-size: clamp(31px, 8.6vw, 54px); line-height: 1.02; letter-spacing: -.02em;
  color: #F9F5EC; max-width: 15ch;
}
.hero__sub { font-size: clamp(14px, 3.7vw, 17px); line-height: 1.5; color: rgba(249, 245, 236, .82); max-width: 34ch; }
.hero__body .btn { align-self: flex-start; margin-top: 6px; }

/* Image banners: the picture already carries the headline, so the hero takes
   the image's own 16:9 shape and shows it whole (no crop, no text overlay). */
.hero.hero--banners {
  min-height: 0; aspect-ratio: 16 / 9;
  background: var(--cream-deep);
  box-shadow: var(--shadow-card);
}
.hero__banner { display: block; width: 100%; height: 100%; -webkit-user-drag: none; }
.hero__banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__banner:focus-visible { outline: 3px solid var(--sage); outline-offset: -3px; border-radius: inherit; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.hero-dots { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0 2px; }
.hero-dot {
  min-width: var(--tap); min-height: var(--tap);
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; padding: 0; cursor: pointer;
}
.hero-dot > span {
  display: block; width: 10px; height: 8px; border-radius: var(--r-pill);
  background: rgba(64, 97, 74, .28);
  transition: width .35s var(--ease), background .3s ease;
}
.hero-dot.is-active > span { width: 30px; background: var(--sage); }

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  margin-top: 2px; padding: 12px 14px;
  background: rgba(64, 97, 74, .07); border: 1px solid rgba(64, 97, 74, .12);
  border-radius: var(--r-md);
  font-size: 12.5px; line-height: 1.35; color: #3A4A3F;
}
.trust li { display: flex; align-items: center; gap: 9px; }
.trust li::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--sage); }
@media (min-width: 600px) {
  .trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 32px;
  }
  .trust li { flex: none; }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section { padding-top: 34px; }
.section__head { display: flex; flex-direction: column; gap: 4px; padding: 0 4px 14px; }
.section__head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; padding-inline: var(--gutter); }
.section__title { font-size: clamp(24px, 6.4vw, 34px); letter-spacing: -.015em; }
.section__hint { font-size: 20px; white-space: nowrap; }
.row-nav { display: flex; align-items: center; gap: 8px; }
.row-nav__btn {
  width: 36px; height: 36px; border-radius: 12px; font-size: 15px;
  display: none;
}
@media (min-width: 640px) {
  .row-nav .section__hint { display: none; }
  .row-nav__btn { display: flex; }
}
.section__more { display: flex; justify-content: center; padding-top: 18px; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; margin: 0 3px; padding: 0 10px;
  border-radius: 999px; font-family: var(--font-display); font-size: 14px;
  color: var(--sage); background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--sage) 20%, transparent);
}
.page-numbers.current { background: var(--sage); color: var(--cream); }
a.page-numbers:hover { background: color-mix(in srgb, var(--sage) 12%, var(--surface)); }

/* --- Paint-splatter burst on add-to-cart --- */
.sf-splat-wrap {
  position: fixed; width: 0; height: 0; z-index: 9999; pointer-events: none;
}
.sf-splat-dot {
  position: absolute; top: 0; left: 0;
  width: var(--size, 6px); height: var(--size, 6px);
  margin: calc(var(--size, 6px) / -2) 0 0 calc(var(--size, 6px) / -2);
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  opacity: 0;
  animation: sf-splat 560ms cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes sf-splat {
  0%   { opacity: 1; transform: translate(0, 0) scale(0.3) rotate(0deg); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--rot)); }
}

/* ==========================================================================
   Single product page - reskinning WooCommerce's own markup/hooks to match
   the rest of the site instead of rebuilding gallery/cart/reviews logic
   from scratch.
   ========================================================================== */

.woocommerce div.product {
  display: grid; gap: 28px; padding: 20px 0 12px;
}
@media (min-width: 760px) {
  .woocommerce div.product { grid-template-columns: 1fr 1fr; align-items: start; gap: 44px; }
}

/* --- Breadcrumb --- */
.woocommerce-breadcrumb {
  font-family: var(--font-body); font-size: 13px; color: var(--ink-mute);
  margin-bottom: 4px;
}
.woocommerce-breadcrumb a { color: var(--sage); }

/* --- Gallery --- */
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__wrapper {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--cream-deep); min-height: 220px;
}
.woocommerce-product-gallery__wrapper img {
  width: 100%; height: auto; display: block;
}
.flex-control-thumbs { display: flex; gap: 8px; margin: 10px 0 0; flex-wrap: wrap; }
.flex-control-thumbs li { list-style: none; }
.flex-control-thumbs img {
  width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm);
  border: 2px solid transparent; cursor: pointer;
}
.flex-control-thumbs img.flex-active { border-color: var(--sage); }

/* --- Summary column --- */
.summary.entry-summary { font-family: var(--font-body); }
.product_title {
  font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 34px);
  color: var(--ink); margin-bottom: 6px;
}
.woocommerce-product-details__short-description { color: var(--ink-soft); margin: 12px 0; line-height: 1.6; }

.woocommerce-product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.star-rating { color: var(--yellow); }

p.price, span.price {
  font-family: var(--font-script); font-weight: 700; font-size: 28px;
  color: var(--sage-dark);
}
p.price ins { text-decoration: none; }
p.price del { opacity: .5; font-size: .7em; }

/* --- Add to cart form --- */
.woocommerce div.product form.cart {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 18px 0;
}
.quantity { display: inline-flex; }
.quantity .qty {
  width: 64px; height: var(--tap); text-align: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-family: var(--font-display); font-size: 16px; color: var(--ink);
  background: var(--surface);
}
.single_add_to_cart_button {
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
  background: var(--sage) !important; color: var(--cream) !important;
  border: none; border-radius: var(--r-pill);
  padding: 0 28px; height: var(--tap); line-height: var(--tap);
  cursor: pointer; box-shadow: var(--shadow-btn);
}
.single_add_to_cart_button:hover { background: var(--coral) !important; color: #fff !important; }

.product_meta { margin-top: 18px; font-size: 13px; color: var(--ink-mute); }
.product_meta a { color: var(--sage); }

/* --- Variations (e.g. colour picker) on variable products --- */
table.variations { width: 100%; margin: 4px 0 6px; border-collapse: collapse; }
table.variations tr { display: block; margin-bottom: 12px; }
table.variations th.label {
  display: block; text-align: left; font-family: var(--font-display);
  font-size: 13px; color: var(--ink); margin-bottom: 6px; font-weight: 500;
}
table.variations td.value select {
  width: 100%; max-width: 260px; height: var(--tap);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); padding: 0 14px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
}
.woocommerce-variation-price .price { font-size: 24px; }
.woocommerce-variation-availability { margin: 6px 0; font-size: 13px; }
.reset_variations { font-size: 13px; color: var(--sage); margin-left: 10px; }

/* --- Tabs (Description / Reviews) --- */
.woocommerce-tabs { grid-column: 1 / -1; margin-top: 12px; }
.woocommerce-tabs ul.tabs {
  display: flex; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0;
  border-bottom: 1px solid var(--line);
}
.woocommerce-tabs ul.tabs li { list-style: none; }
.woocommerce-tabs ul.tabs li a {
  display: inline-block; padding: 10px 18px;
  font-family: var(--font-display); font-size: 14px; color: var(--ink-mute);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--sage); background: var(--surface); }
.woocommerce-Tabs-panel h2 { font-size: 20px; margin-bottom: 12px; }

/* --- Reviews --- */
#reviews .commentlist { list-style: none; margin: 0 0 20px; padding: 0; }
#review_form input[type="text"],
#review_form input[type="email"],
#review_form textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 10px 14px; font-family: var(--font-body); font-size: 15px;
  background: var(--surface); margin: 6px 0 14px;
}
#review_form .form-submit input#submit {
  font-family: var(--font-display); font-weight: 500;
  background: var(--sage); color: var(--cream); border: none;
  border-radius: var(--r-pill); padding: 0 24px; height: 40px; cursor: pointer;
}
#review_form .form-submit input#submit:hover { background: var(--coral); }
p.stars a { color: var(--yellow); }

/* --- Related products (reuse the same card grid feel) --- */
.related.products {
  grid-column: 1 / -1; margin-top: 20px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.related.products > h2 {
  font-family: var(--font-display); font-size: 22px; margin-bottom: 16px;
}
.related.products ul.products {
  display: grid !important; gap: 16px; list-style: none; padding: 0; margin: 0;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}
/* WooCommerce's own default stylesheet floats these into narrow fixed-%
   columns (its float-based grid); reset that so our grid above wins. */
.related.products ul.products li.product {
  float: none !important; width: auto !important; margin: 0 !important;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 10px; list-style: none;
}
.related.products ul.products li.product img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-sm); aspect-ratio: 1/1; object-fit: cover;
  background: var(--cream-deep);
}
.related.products ul.products li.product .button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 10px; min-height: 40px; padding: 0 12px;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 500;
  white-space: normal; text-align: center;
  background: var(--sage); color: var(--cream);
  border: none; border-radius: var(--r-pill); box-shadow: var(--shadow-btn);
}
.related.products ul.products li.product .button:hover { background: var(--coral); color: #fff; }
.related.products ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display); font-size: 14px; color: var(--ink);
  margin: 8px 0 4px;
}
.related.products ul.products li.product .price {
  font-size: 16px;
}
@media (min-width: 960px) { .section__hint { display: none; } }

/* ==========================================================================
   Category grid  (WP: product_cat loop)
   1 col at ~320px → 2 col on phones → 3 → 5 on desktop, via auto-fit.
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)); gap: 10px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.cat-card__trigger {
  width: 100%; display: flex; flex-direction: column; gap: 10px;
  padding: 10px; background: none; border: none; text-align: left; cursor: pointer;
}
.cat-card__text { display: flex; flex-direction: column; gap: 3px; padding-inline: 4px; }
.cat-card__name { font-family: var(--font-display); font-weight: 500; font-size: 16.5px; line-height: 1.15; }
.cat-card__count { font-size: 12px; color: var(--ink-mute); }
/* description sits statically below the (now directly clickable) card */
.cat-card__reveal--static {
  display: grid; gap: 6px; padding: 0 14px 14px;
}
.cat-card__reveal--static p { font-size: 12px; line-height: 1.45; color: var(--ink-soft); }
.cat-card__custom-link {
  display: inline-block; font-family: var(--font-display); font-size: 12px;
  color: var(--coral); margin-top: 2px;
}
.cat-card__custom-link:hover { text-decoration: underline; }

/* ==========================================================================
   Product cards (shared by the swipe row and the grid — one Woo card template)
   ========================================================================== */
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
}
.product-card__media { aspect-ratio: 1 / 1; }
.product-card__tag {
  position: absolute; top: 8px; left: 8px;
  padding: 5px 9px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--surface);
  font-family: var(--font-display); font-size: 11px; line-height: 1;
  transition: opacity .2s ease;
}
.product-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 11px 12px 12px; }
.product-card__cat { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.product-card__name { font-weight: 500; font-size: 15.5px; line-height: 1.2; }
.product-card__name a { color: inherit; }
/* Price sits above the button, both full-width — a price range (e.g.
   "R63,00 - R103,00") is noticeably longer than a single price, and on a
   single space-between row that length forces that one card's price or
   button to wrap while its neighbours don't, throwing the whole row out
   of alignment. Stacking them the same way on every card, regardless of
   price length, keeps every card's button at the same spot. */
.product-card__foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.product-card__price { font-family: var(--font-script); font-size: 25px; font-weight: 600; line-height: 1; color: var(--sage); }

.add-pop { display: flex; transition: transform .28s var(--pop); }
.add-pop .btn--add { width: 100%; }
.add-pop.is-popped { transform: scale(1.14); }     /* JS toggles on tap/click */

/* tap-to-reveal specs overlay */
.product-card__specs {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 14px; background: rgba(46, 66, 52, .95);
  opacity: 0; pointer-events: none; transition: opacity .26s ease;
}
.product-card__specs-title { font-family: var(--font-display); font-size: 13px; color: var(--cream); }
.product-card__specs li { font-size: 12px; line-height: 1.4; color: rgba(245, 239, 227, .85); }
.product-card.is-specs-open .product-card__specs { opacity: 1; pointer-events: auto; }
.product-card.is-specs-open .product-card__tag { opacity: 0; }

.specs-toggle {
  position: absolute; bottom: 2px; right: 2px; z-index: 2;
  width: var(--tap); height: var(--tap); padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
}
.specs-toggle > span {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 253, 247, .92); border: 1px solid rgba(64, 97, 74, .25);
  font-family: var(--font-display); font-size: 13px; line-height: 1; color: var(--sage);
}
.product-card.is-specs-open .specs-toggle > span {
  background: rgba(245, 239, 227, .16); border-color: rgba(245, 239, 227, .5);
  color: var(--cream); font-size: 17px;
}

/* swipeable row — native scroll-snap, no JS carousel needed */
.product-row {
  display: flex; gap: 10px;
  max-width: var(--wrap); margin-inline: auto;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px var(--gutter) 18px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.product-row::-webkit-scrollbar { display: none; }
.product-row > .product-card { flex: 0 0 clamp(196px, 60vw, 236px); scroll-snap-align: start; }

/* standard product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; } }

/* ==========================================================================
   Brand panel
   ========================================================================== */
.brand-panel { background: var(--sage); color: var(--cream); border-radius: var(--r-xl); padding: clamp(22px, 6vw, 40px); }
.brand-panel__title { font-size: clamp(24px, 6.4vw, 34px); letter-spacing: -.015em; margin-top: 6px; max-width: 22ch; }
.brand-panel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 24px; }
.brand-panel__grid li {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  background: rgba(245, 239, 227, .09); border: 1px solid rgba(245, 239, 227, .16); border-radius: var(--r-md);
}
.brand-panel__grid h3 { font-weight: 500; font-size: 17px; }
.brand-panel__grid p { font-size: 13.5px; line-height: 1.55; color: rgba(245, 239, 227, .8); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: 38px; background: var(--cream-deep); border-top: 1px solid rgba(64, 97, 74, .16); }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; padding-top: 30px; padding-bottom: 22px; }
.site-footer h4 { font-weight: 500; font-size: 14px; letter-spacing: .02em; color: var(--sage); margin-bottom: 10px; }
.site-footer ul { display: flex; flex-direction: column; gap: 6px; }
.site-footer li, .site-footer a { font-size: 13.5px; color: var(--ink-soft); }
.site-footer__base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding-top: 16px; padding-bottom: 34px; border-top: 1px solid var(--line);
}
.site-footer__base > span:first-child { font-size: 12px; color: var(--ink-mute); }
.site-footer__base .script-note { font-size: 20px; color: var(--sage); }

/* ==========================================================================
   Cart sheet (bottom sheet on mobile, centred card from 600px up)
   ========================================================================== */
.cart-sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.cart-sheet[hidden] { display: none; }
.cart-sheet__scrim { position: absolute; inset: 0; background: rgba(26, 38, 30, .45); animation: sf-fade .22s ease; border: none; }
.cart-sheet__panel {
  position: relative; width: 100%; max-width: 520px; max-height: 84vh; overflow: auto;
  padding: 12px 16px 20px; background: var(--cream);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -8px 40px rgba(26, 38, 30, .25);
  animation: sf-sheet .3s var(--ease);
}
.cart-sheet__handle { display: block; width: 44px; height: 4px; margin: 2px auto 12px; border-radius: 4px; background: rgba(64, 97, 74, .28); }
.cart-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.cart-sheet__head h3 { font-size: 21px; }
.cart-lines { display: flex; flex-direction: column; gap: 10px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.cart-line__thumb { width: 52px; height: 52px; flex: none; }
.cart-line__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cart-line__name { font-family: var(--font-display); font-size: 14.5px; line-height: 1.2; }
.cart-line__total { font-family: var(--font-script); font-size: 20px; line-height: 1.1; color: var(--sage); }
.qty { display: flex; align-items: center; gap: 2px; background: var(--cream); border: 1px solid rgba(64, 97, 74, .2); border-radius: var(--r-pill); }
.qty button { width: 40px; height: 40px; background: none; border: none; border-radius: var(--r-pill); font-size: 18px; color: var(--sage); cursor: pointer; }
.qty span { min-width: 18px; text-align: center; font-size: 14px; font-weight: 700; }
.cart-sheet__empty { display: flex; flex-direction: column; gap: 8px; text-align: center; padding: 26px 10px 30px; font-size: 13.5px; color: var(--ink-mute); }
.cart-sheet__empty .script-note { font-size: 26px; color: var(--sage); }
.cart-sheet__empty[hidden] { display: none; }
.cart-sheet__foot { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(64, 97, 74, .16); }
.cart-sheet__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.cart-sheet__row strong { font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.cart-sheet__row--muted { color: var(--ink-mute); }
.cart-sheet__note { font-size: 19px; color: var(--teal); }
.cart-sheet__keep { min-height: var(--tap); background: none; border: none; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
@media (min-width: 600px) {
  .cart-sheet { align-items: center; }
  .cart-sheet__panel { border-radius: var(--r-xl); animation: sf-fade .22s ease; }
  .cart-sheet__handle { display: none; }
}

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes sf-drift-a { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(10px, -16px, 0) rotate(8deg); } }
@keyframes sf-drift-b { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(-14px, 12px, 0) rotate(-10deg); } }
@keyframes sf-drift-c { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(6px, 14px, 0) scale(1.07); } }
@keyframes sf-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes sf-sheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sf-menu  { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Desktop refinements (scale up only — never a shrunk desktop layout)
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 20px; }
  .cat-grid, .product-grid { gap: 14px; }
}
@media (min-width: 960px) {
  :root { --gutter: 28px; }
  .section { padding-top: 56px; }
  .hero { min-height: 520px; }
  .site-header__inner { padding-block: 12px; }
}
