/* Shadleens theme
   Design read: trust-first food store for Bangladeshi families. Light sage-white ground,
   deep leaf green for actions, brand lime only for small highlights.
   Radius rule: interactive controls are full pill, media and panels are 14px, inputs 10px.
   Type: Anek Bangla (display), Hind Siliguri (text). Both cover Bangla + Latin. */

/* Light only: the store keeps its light look even when a phone or computer uses dark mode. */
:root {
  color-scheme: light;
  --bg: #F6F8F3;
  --surface: #FFFFFF;
  --surface-2: #EBF1E5;
  --hero-bg: #E6F0DC;
  --ink: #16231A;
  --muted: #4E5D52;
  --line: #D8E0D2;
  --brand: #1F5130;
  --brand-hover: #173F25;
  --on-brand: #F7FAF4;
  --leaf: #8CC63E;
  --on-leaf: #16231A;
  --danger: #B42318;
  --footer-bg: #15301E;
  --footer-ink: #E9F0E6;
  --footer-muted: #B9C8BC;
  --shadow: 0 12px 32px rgba(22, 35, 26, 0.10);
  --shadow-sm: 0 2px 8px rgba(22, 35, 26, 0.08);

  /* Phosphor caret-down (MIT), filled with --ink. */
  --select-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%2316231A'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");

  /* Inter, as on the current shadleens.com. layout/theme.liquid replaces these with the theme editor's
     font pickers. Bangla letters fall back to Anek Bangla (headings) and Hind Siliguri (text). */
  --font-display: 'Inter', 'Anek Bangla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-text: 'Inter', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading-weight: 700;

  --r-pill: 999px;
  --r-card: 14px;
  --r-input: 10px;

  --container: 1320px;
  --gutter: 20px;
  --header-h: 68px;
  --section-y: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-header: 30;
  --z-drawer: 50;
  --z-float: 40;
}
@media (min-width: 990px) {
  :root { --gutter: 32px; --section-y: 88px; --header-h: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p a, .rte a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--font-heading-weight, 700); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.icon { flex: none; }
.visually-hidden { position: absolute !important; 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: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: var(--r-pill); }
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface-2); }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 64ch; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
.section-head p { color: var(--muted); }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.section-head__text { display: grid; gap: 10px; max-width: 64ch; }
.section-head__text p { color: var(--muted); }
/* Age dropdown beside the "Baby food by age" heading; full width on phones. */
.stage-filter { display: grid; gap: 6px; width: 100%; }
.stage-filter label { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.stage-filter .select { --select-pad: 20px; min-height: 52px; border-radius: var(--r-pill); font-weight: 600; border-color: var(--line); box-shadow: var(--shadow-sm); }
@media (min-width: 750px) { .stage-filter { width: auto; min-width: 300px; } }
.text-muted { color: var(--muted); }
.rte > * + * { margin-top: 0.9em; }
.rte ul, .rte ol { padding-left: 1.25em; }
.rte h2, .rte h3 { margin-top: 1.4em; }
.rte img { border-radius: var(--r-card); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--bg); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--on-brand); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn--ghost.is-loading::after, .btn--secondary.is-loading::after { border-color: var(--ink); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); background: transparent; border: 0; color: var(--ink); position: relative; }
.icon-btn:hover { background: var(--surface-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 500; background: var(--surface-2); color: var(--ink); }
.pill--leaf { background: var(--leaf); color: var(--on-leaf); }
.section--tint .pill { background: var(--surface); }
.pill--line { background: transparent; border: 1px solid var(--line); }

/* ---------- Announcement + header ---------- */
.announcement { background: var(--brand); color: var(--on-brand); font-size: 0.875rem; }
.announcement__inner { display: flex; align-items: center; justify-content: center; gap: 8px 20px; flex-wrap: wrap; min-height: 38px; padding-block: 6px; text-align: center; }
.announcement__item { display: inline-flex; align-items: center; gap: 6px; }
.announcement a { text-decoration: underline; text-underline-offset: 3px; }

/* Shopify wraps each section in a div; the wrapper carries the schema class, so it is the sticky element. */
.section-header { position: sticky; top: 0; z-index: var(--z-header); }
.site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; height: var(--header-h); }
.site-header__logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--brand); }
.site-header__logo img { width: var(--logo-w, 132px); height: auto; }
.site-header__actions { display: flex; align-items: center; gap: 2px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--leaf); color: var(--on-leaf); font-size: 0.6875rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.menu-toggle { display: inline-grid; }
.nav { display: none; }
@media (max-width: 989px) {
  .site-header__inner { grid-template-columns: 44px 1fr auto; }
  .site-header__logo { justify-self: center; }
  .header-account { display: none; }
}
@media (min-width: 990px) {
  .menu-toggle { display: none; }
  .nav { display: block; }
  /* Equal side columns keep the menu centred on the page, whatever the logo and icon widths. */
  .site-header__inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; }
  .site-header__logo { justify-self: start; }
  .site-header__actions { justify-self: end; }
  /* The logo's wordmark sits low in its image, so centring the box leaves the words below the menu.
     --logo-nudge (theme setting, % of logo height) lifts it until the wordmark lines up with the menu text. */
  .site-header .site-header__logo img { transform: translateY(var(--logo-nudge, 0%)); }
}
.nav__list { list-style: none; display: flex; align-items: center; justify-content: center; gap: 4px; }
/* Trim the font's tall Bangla ascent/descent so the Latin capitals sit on the optical centre line. */
.nav__label { text-box: trim-both cap alphabetic; }
.nav__item { position: static; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; height: var(--header-h); padding: 0 12px; font-weight: 500; font-size: 0.9875rem; background: none; border: 0; }
.nav__link .icon { transition: transform .2s var(--ease); }
.nav__link:hover, .nav__item.is-open > .nav__link, .nav__link[aria-current="page"] { color: var(--brand); }
.nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.nav__item.is-open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__inner { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)) minmax(0, 1.1fr); gap: 32px; padding-block: 32px 36px; }
.mega__inner--simple { grid-template-columns: repeat(var(--cols, 3), minmax(0, 220px)) 1fr; }
.mega__group { display: grid; align-content: start; gap: 10px; }
.mega__heading { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.mega__heading a:hover { color: var(--brand); }
.mega__links { list-style: none; display: grid; gap: 6px; }
.mega__links a { color: var(--muted); font-size: 0.9375rem; display: inline-flex; gap: 6px; align-items: baseline; }
.mega__links a:hover { color: var(--brand); }
.mega__count { font-size: 0.75rem; color: var(--muted); opacity: .8; font-variant-numeric: tabular-nums; }
.mega__feature { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 220px; background: var(--surface-2); display: flex; align-items: end; }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega__feature span { position: relative; margin: 14px; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: var(--r-pill); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Drawers (menu, cart, filters) ---------- */
dialog.drawer {
  position: fixed; inset: 0 auto 0 0; margin: 0; height: 100%; max-height: 100%;
  width: min(420px, 92vw); max-width: 92vw; padding: 0; border: 0;
  background: var(--surface); color: var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .3s var(--ease), overlay .3s allow-discrete, display .3s allow-discrete;
}
dialog.drawer:not([open]) { display: none; }
dialog.drawer[open] { transform: none; }
@starting-style { dialog.drawer[open] { transform: translateX(-100%); } }
dialog.drawer--right { inset: 0 0 0 auto; transform: translateX(100%); }
dialog.drawer--right[open] { transform: none; }
@starting-style { dialog.drawer--right[open] { transform: translateX(100%); } }
dialog.drawer::backdrop { background: rgba(10, 18, 12, 0.45); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); padding-top: max(14px, env(safe-area-inset-top, 0px)); }
.drawer__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px 20px max(16px, env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; background: var(--surface); }

.mobile-nav__search { margin-bottom: 16px; }
.mobile-nav__list { list-style: none; display: grid; }
.mobile-nav__list > li { border-bottom: 1px solid var(--line); }
.mobile-nav__list summary, .mobile-nav__list > li > a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; list-style: none; cursor: pointer; }
.mobile-nav__list summary::-webkit-details-marker { display: none; }
.mobile-nav__list details[open] > summary .icon { transform: rotate(180deg); }
.mobile-nav__sub { list-style: none; display: grid; gap: 2px; padding: 0 0 14px; }
.mobile-nav__sub-heading { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 10px 0 4px; }
.mobile-nav__link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 0; }
.mobile-nav__thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: none; }
.mobile-nav__count { margin-left: auto; color: var(--muted); font-size: 0.8125rem; }
.mobile-nav__contact { display: grid; gap: 10px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.field small { color: var(--muted); font-size: 0.8125rem; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border-radius: var(--r-input); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.textarea { min-height: 120px; resize: vertical; }
/* Dropdowns: the browser arrow is replaced by the theme's caret, set --select-pad in from the right edge,
   the same distance as the text from the left edge, so both sides read as equal. */
.select {
  --select-pad: 14px;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-left: var(--select-pad);
  padding-right: calc(var(--select-pad) + 16px + 10px);
  background-image: var(--select-caret);
  background-repeat: no-repeat;
  background-position: right var(--select-pad) center;
  background-size: 16px 16px;
}
/* Styled dropdown menu (theme.js enhanceSelect): the button keeps the .select look; the list matches
   the theme's panels (rounded, soft shadow) with the selected row in brand green and a check. */
.dd { position: relative; min-width: 0; }
.dd__native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.dd__button { display: block; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd__list {
  position: absolute; z-index: 25; top: calc(100% + 6px); left: 0;
  min-width: 100%; width: max-content; max-width: min(380px, calc(100vw - 32px)); max-height: 320px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
/* Right-aligned dropdowns (collection sort) open towards the left; others flip when they would overflow. */
.dd--end .dd__list, .toolbar .dd__list { left: auto; right: 0; }
.dd__list:focus { outline: none; }
.dd__list:focus-visible { box-shadow: var(--shadow), 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.dd__list [role="option"] {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 44px; padding: 8px 14px; border-radius: 12px; cursor: pointer; font-weight: 500;
}
.dd__list [role="option"].is-active { background: var(--surface-2); }
.dd__list [role="option"][aria-selected="true"] { color: var(--brand); font-weight: 600; }
.dd__list [role="option"] .icon { flex: none; visibility: hidden; color: var(--brand); }
.dd__list [role="option"][aria-selected="true"] .icon { visibility: visible; }
.dd__list [role="option"][aria-disabled="true"] { opacity: .45; cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  .dd.is-open .dd__list { animation: dd-in .16s var(--ease); }
}
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field-error { color: var(--danger); font-size: 0.875rem; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 750px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid--2 .field--full { grid-column: 1 / -1; } }
.notice { padding: 12px 16px; border-radius: var(--r-input); background: var(--surface-2); }
.notice--error { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.search-field { position: relative; }
.search-field .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field .input { padding-left: 44px; border-radius: var(--r-pill); }

/* ---------- Hero slider ----------
   One slide per category. Each slide is a tinted panel with a soft lime glow; copy left, leaf-shaped photo right
   (two big opposite corners, echoing the logo leaf). Slides sit in a scroll-snap row, so touch swiping works
   without JavaScript; theme.js adds the dots, arrows, pause button and autoplay.
   Desktop height: the whole section is at most 840px, and shorter on short screens so the top of the next
   section always shows below it (111px is the announcement bar plus header). */
.hero { padding-block: 16px 32px; }
/* The section after the hero starts closer, so its heading peeks into view below the hero. */
.hero + .section, .section-hero + .shopify-section > .section:first-child { padding-top: 24px; }
.hero__track {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: 28px;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.hero__panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 28px; padding: 28px 20px 20px;
  border-radius: 28px;
  background:
    radial-gradient(70% 60% at 0% 0%, color-mix(in srgb, var(--leaf) 28%, transparent), transparent 70%),
    var(--hero-bg);
}
.hero__copy { display: grid; gap: 18px; justify-items: start; align-content: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: var(--r-pill); background: var(--surface); color: var(--brand); font-size: 0.875rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.hero__title { font-size: clamp(2.2rem, calc(4.4vw + 0.4rem), 4.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; max-width: 14ch; }
.hero__mark {
  color: var(--brand);
  background-image: linear-gradient(transparent 72%, color-mix(in srgb, var(--leaf) 55%, transparent) 72%, color-mix(in srgb, var(--leaf) 55%, transparent) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__sub { font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 40ch; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 6px; }
.btn--lg { min-height: 56px; padding: 0 26px 0 30px; font-size: 1.0625rem; }
.btn--lg .icon { transition: transform .2s var(--ease); }
.btn--lg:hover .icon { transform: translateX(3px); }
.hero__link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.hero__link:hover { color: var(--brand); }
.hero__visual { position: relative; }
.hero__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3.4; border-radius: 96px 18px 96px 18px; background: var(--surface-2); }
.hero__media > img, .hero__media > svg { width: 100%; height: 100%; object-fit: cover; }

/* Dots: the current one stretches into a bar that fills while autoplay shows the slide. */
.hero__controls { display: flex; align-items: center; justify-content: center; margin-top: 16px; }
.hero__controls[hidden] { display: none; }
.hero__dots { display: flex; align-items: center; }
.hero__dot { display: grid; place-items: center; width: 32px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero__dot span {
  position: relative; overflow: hidden; display: block; width: 8px; height: 8px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  transition: width .4s var(--ease), background-color .4s var(--ease);
}
.hero__dot:hover span { background: color-mix(in srgb, var(--ink) 45%, transparent); }
.hero__dot[aria-current="true"] { width: 44px; }
.hero__dot[aria-current="true"] span { width: 32px; background: color-mix(in srgb, var(--brand) 22%, transparent); }
.hero__dot[aria-current="true"] span::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform-origin: left; }
.hero[data-playing] .hero__dot[aria-current="true"] span::after { animation: hero-progress var(--hero-delay, 6s) linear both; }
.hero[data-held] .hero__dot[aria-current="true"] span::after { animation-play-state: paused; }
@keyframes hero-progress { from { transform: scaleX(0); } }

@media (min-width: 990px) {
  .hero { padding-block: 20px 24px; }
  .hero__panel {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: stretch;
    padding: 40px 40px 40px 64px;
    /* 840px section = 20 top + panel + 16 + 44 controls + 24 bottom; keep 96px of the next section in view. */
    height: clamp(496px, calc(100dvh - 111px - 96px - 104px), 736px);
  }
  .hero:not([data-hero]) .hero__panel { height: clamp(556px, calc(100dvh - 111px - 96px - 44px), 796px); }
  .hero__copy { gap: 22px; }
  .hero__visual { min-height: 0; }
  .hero__media { aspect-ratio: auto; height: 100%; border-radius: 200px 24px 200px 24px; }
}
/* The shown slide's text rises in and its photo settles, on load and on every slide change. */
@media (prefers-reduced-motion: no-preference) {
  .hero__slide.is-active .hero__copy > * { animation: hero-rise .8s var(--ease) both; }
  .hero__slide.is-active .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__slide.is-active .hero__copy > :nth-child(3) { animation-delay: .12s; }
  .hero__slide.is-active .hero__copy > :nth-child(4) { animation-delay: .18s; }
  .hero__slide.is-active .hero__media > img { animation: hero-settle 1.4s var(--ease) both; }
  .hero__track { scroll-behavior: smooth; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes hero-settle { from { transform: scale(1.06); } }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust__item { display: flex; gap: 12px; align-items: flex-start; padding: 18px 12px; }
.trust__item .icon { color: var(--brand); margin-top: 2px; }
.trust__item b { display: block; font-weight: 600; line-height: 1.3; }
.trust__item span { color: var(--muted); font-size: 0.875rem; line-height: 1.4; }
@media (min-width: 990px) {
  .trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust__item { padding: 24px 20px; }
  .trust__item + .trust__item { border-left: 1px solid var(--line); }
}

/* ---------- Category tiles (bento: 1 large + 4) ---------- */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); aspect-ratio: 1; isolation: isolate; }
.tile img, .tile svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); z-index: -1; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12, 24, 15, 0.72)); z-index: -1; }
.tile__label { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #F7FAF4; display: grid; gap: 2px; }
.tile__label b { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.15; }
.tile__label span { font-size: 0.8125rem; opacity: .9; }
.tile--lead { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 750px) {
  .tiles { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); height: clamp(420px, 44vw, 560px); }
  .tile, .tile--lead { aspect-ratio: auto; }
  .tile--lead { grid-column: 1; grid-row: 1 / span 2; }
  .tile--lead .tile__label b { font-size: 1.75rem; }
}

/* ---------- Baby stages (tabs + product panels) ---------- */
/* A segmented control: one white strip holding every age option. Each option is an age badge plus
   its name; the selected one fills deep green. Phones: 2 x 2 inside the strip. Wider: one row. */
.stages {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
  padding: 5px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
@media (min-width: 750px) {
  .stages { grid-template-columns: repeat(var(--stage-count, 3), minmax(0, 1fr)); border-radius: var(--r-pill); }
}
.stage {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 56px;
  padding: 6px 14px 6px 6px; border: 0; border-radius: 17px;
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
@media (min-width: 750px) { .stage { border-radius: var(--r-pill); } }
.stage:hover { background: var(--surface-2); }
.stage[aria-selected="true"] { background: var(--brand); color: var(--on-brand); }
.stage__age {
  flex: none; display: inline-flex; align-items: baseline; justify-content: center;
  min-width: 46px; height: 44px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--brand);
  font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; line-height: 44px;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.stage__age small { font-size: 0.75rem; font-weight: 700; margin-left: 1px; }
.stage__age .icon { align-self: center; }
.stage[aria-selected="true"] .stage__age { background: var(--on-brand); color: var(--brand); }
.stage__name { min-width: 0; font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.stage-panel { margin-top: 24px; }

/* Swipeable product row: 2.25 cards visible on phones (the peek shows there is more), 5 on wide screens. */
.scroller__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.scroller__count { color: var(--muted); font-weight: 500; }
.scroller__arrows { display: flex; gap: 8px; }
.scroller__btn { border: 1.5px solid var(--line); background: var(--surface); }
.scroller__btn:hover { border-color: var(--ink); background: var(--surface); }
.scroller__btn[disabled] { opacity: .35; cursor: default; border-color: var(--line); }
.scroller__track {
  list-style: none; display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 14px * 2) / 2.25); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
}
.scroller__track::-webkit-scrollbar { display: none; }
.scroller__track:focus-visible { outline-offset: 6px; }
.scroller__item { scroll-snap-align: start; min-width: 0; }
@media (min-width: 750px) { .scroller__track { grid-auto-columns: calc((100% - 20px * 3) / 3.4); gap: 20px; } }
@media (min-width: 1200px) { .scroller__track { grid-auto-columns: calc((100% - 20px * 4) / 5); } }
@media (prefers-reduced-motion: no-preference) { .scroller__track { scroll-behavior: smooth; } }

/* Featured products: heading and text on the left with the arrows on the right, a full-width row of cards below
   (its left edge lines up with the heading), and the button centred underneath. */
.featured {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "head arrows" "track track" "foot foot";
  column-gap: 16px; row-gap: 24px;
}
.featured__head { grid-area: head; display: grid; gap: 10px; max-width: 64ch; }
.featured__head h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
.featured__head p { color: var(--muted); }
.featured__arrows { grid-area: arrows; align-self: end; }
.featured__track { grid-area: track; }
.featured__foot { grid-area: foot; display: flex; justify-content: center; margin-top: 24px; }
@media (min-width: 750px) {
  .featured { row-gap: 32px; }
  .featured__foot { margin-top: 16px; }
}
/* Whole cards on wider screens (3, then 4 across, like Best sellers); arrows show the rest. */
@media (min-width: 990px) { .featured .featured__track { grid-auto-columns: calc((100% - 20px * 2) / 3); } }
@media (min-width: 1200px) { .featured .featured__track { grid-auto-columns: calc((100% - 20px * 3) / 4); } }
@media (min-width: 990px) {
  .stage__name { font-size: 1rem; }
  .stage-panel { margin-top: 28px; }
}

/* ---------- Product card + grid ---------- */
.product-grid { display: grid; gap: 24px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; }
@media (min-width: 750px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1200px) { .product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Cards fill their grid row; the add button sits on the bottom row so buttons line up across a row.
   Rows are placed explicitly so the diet badge can share the photo's cell. */
.card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 10px; height: 100%; position: relative; }
.card > .card__media { grid-area: 1 / 1; }
.card > .card__body { grid-row: 2; }
.card > .card__add { grid-row: 3; }
.card__media { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; background: var(--surface); aspect-ratio: 1; border: 1px solid var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.card__media img + img { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .card:hover .card__media img + img { opacity: 1; } .card:hover .card__media img:only-child { transform: scale(1.03); } }
.card__badge { position: absolute; left: 10px; top: 10px; }
/* Age badge over the photo's top-right corner. Clicks pass through to the product link. */
.card__ages { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; pointer-events: none; }
/* Diet badge (Keto, Gluten Free...) over the photo's bottom-left corner, in the photo's grid cell. */
.card__diet { grid-area: 1 / 1; align-self: end; justify-self: start; margin: 0 0 10px 10px; z-index: 2; pointer-events: none; display: flex; }
.card__ages .pill--age, .card__diet .pill {
  font-size: 0.75rem; font-weight: 700; padding: 3px 9px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--brand);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(22, 35, 26, 0.18);
}
.card__diet .pill { font-weight: 600; }
.card:has(.card__badge) .card__ages { left: 96px; }
@media (max-width: 749px) {
  .card__ages { top: 8px; left: 8px; right: 8px; gap: 3px; }
  .card__diet { margin: 0 0 8px 8px; }
  .card__ages .pill--age, .card__diet .pill { font-size: 0.6875rem; padding: 2px 7px; }
}
.card__body { display: grid; gap: 4px; align-content: start; }
.card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.card__tags .pill { font-size: 0.75rem; padding: 1px 8px; }
/* Age badges (6m+, 8m+, 12m+): brand-tinted so they read as one family with the age selector. */
.card__tags .pill--age { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.card__title { font-weight: 500; font-size: 1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2em * 1.35); } /* always two lines tall, so prices line up */
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
/* Phones: narrow cards put the unit price on its own line, and every price block keeps room for two lines. */
@media (max-width: 749px) {
  .card__price { min-height: calc(1.6em + 2px + 0.8125rem * 1.6); align-content: start; }
  .card__price .unit-price { flex-basis: 100%; }
}
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.price--compare { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 0.875rem; }
.unit-price { color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.card__add { position: relative; z-index: 2; justify-self: start; }
.card__add .btn { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
/* Phones: a slimmer button so "Choose size" fits the narrow card instead of stretching it wider than its neighbours. */
@media (max-width: 749px) { .card__add .btn { padding: 0 12px; gap: 6px; font-size: 0.875rem; } }
.sold-out { color: var(--muted); font-size: 0.875rem; }

/* Rail tabs */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); font-weight: 500; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rail__foot { margin-top: 48px; display: flex; justify-content: center; }

/* ---------- Story band ---------- */
.story { display: grid; gap: 28px; align-items: center; }
.story__media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface-2); }
.story__media img, .story__media svg { width: 100%; height: 100%; object-fit: cover; }
.story__copy { display: grid; gap: 16px; justify-items: start; max-width: 52ch; }
.story__copy h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.story__copy p { color: var(--muted); font-size: 1.0625rem; }
.story__facts { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.story__facts li { display: flex; gap: 10px; align-items: flex-start; }
.story__facts .icon { color: var(--brand); margin-top: 3px; }
@media (min-width: 990px) { .story { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; } }

/* ---------- Nutritionist ---------- */
.expert { display: grid; gap: 24px; padding: 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
/* Photo takes about half the card in a 4:3 frame; the text sits beside it (stacked on phones). */
.expert__photo { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; width: 100%; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.expert__photo > img, .expert__photo > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.expert__body { display: grid; gap: 14px; align-content: center; justify-items: start; }
.expert__role { color: var(--brand); font-weight: 600; }
.expert__body h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
.expert__creds { list-style: none; display: grid; gap: 8px; }
.expert__creds li { display: flex; gap: 10px; align-items: flex-start; }
.expert__creds .icon { color: var(--brand); margin-top: 3px; }
.expert__offer { padding: 14px 16px; border-radius: var(--r-input); background: var(--surface-2); color: var(--ink); max-width: 56ch; }
@media (min-width: 990px) { .expert { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; padding: 32px; align-items: center; } }

/* ---------- Recipes (1 large + list) ---------- */
.recipes { display: grid; gap: 20px; }
.recipe-lead { display: grid; gap: 14px; }
.recipe-lead__media, .recipe-row__media { border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); }
.recipe-lead__media { aspect-ratio: 16 / 10; }
.recipe-lead__media img, .recipe-row__media img { width: 100%; height: 100%; object-fit: cover; }
.recipe-lead h3 { font-size: 1.5rem; }
.recipe-list { list-style: none; display: grid; gap: 14px; }
.recipe-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }
.recipe-row__media { aspect-ratio: 1; }
.recipe-row h3 { font-size: 1.125rem; line-height: 1.3; }
.recipe-date { color: var(--muted); font-size: 0.8125rem; }
@media (min-width: 990px) { .recipes { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; } .recipe-list { align-content: start; gap: 20px; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.review { padding: 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.review__stars { display: flex; gap: 2px; color: var(--brand); }
.review blockquote { margin: 0; font-size: 1.0625rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.review figcaption { color: var(--muted); font-size: 0.875rem; }

/* ---------- Steps + FAQ ---------- */
.steps { list-style: none; display: grid; gap: 14px; counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.step::before { content: counter(step); grid-row: span 2; width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.step h3 { font-size: 1.1875rem; }
.step p { color: var(--muted); }
@media (min-width: 990px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq { display: grid; max-width: 820px; }
.accordion { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 0; font-weight: 600; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform .2s var(--ease); }
.accordion[open] summary .icon { transform: rotate(45deg); }
.accordion__body { padding: 0 0 18px; color: var(--muted); }
.accordion__body > * + * { margin-top: .7em; }
.accordion__body h1, .accordion__body h2, .accordion__body h3 { font-family: var(--font-text); font-size: 1rem; font-weight: 600; color: var(--ink); margin-top: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-block: 56px 28px; }
.site-footer a:hover { color: var(--leaf); }
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__brand { grid-column: 1 / -1; display: grid; gap: 14px; max-width: 40ch; }
.footer__brand p { color: var(--footer-muted); }
.footer__col h2 { font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--footer-muted); margin-bottom: 12px; }
.footer__col ul { list-style: none; display: grid; gap: 2px; }
.footer__col li a { display: inline-flex; align-items: center; min-height: 36px; }
.footer__contact { display: grid; gap: 8px; }
.footer__contact a, .footer__contact span { display: inline-flex; gap: 10px; align-items: center; min-height: 36px; }
.footer__social { display: flex; gap: 4px; margin-top: 4px; }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--footer-ink) 25%, transparent); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--footer-ink) 18%, transparent); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--footer-muted); font-size: 0.875rem; }
@media (min-width: 990px) { .footer__grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); } .footer__brand { grid-column: auto; } }

/* ---------- Floating WhatsApp ---------- */
.float-chat { position: fixed; z-index: var(--z-float); right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px; border-radius: var(--r-pill); background: var(--brand); color: var(--on-brand); font-weight: 600; box-shadow: var(--shadow); }
.float-chat:hover { background: var(--brand-hover); }
@media (min-width: 990px) { .float-chat span { display: none; } .float-chat { padding: 0; width: 56px; justify-content: center; } }
body.has-sticky-atc .float-chat { bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 76px); }

/* ---------- Breadcrumb + page head ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.875rem; color: var(--muted); padding-block: 16px 0; }
.breadcrumb a:hover { color: var(--brand); }
.page-head { padding-block: 20px 28px; display: grid; gap: 10px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.page-head p, .page-head .rte { color: var(--muted); max-width: 66ch; }

/* ---------- Collection ---------- */
.collection { display: grid; gap: 28px; padding-bottom: var(--section-y); }
@media (min-width: 990px) { .collection { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; } }
.sidebar { display: none; align-content: start; gap: 28px; }
@media (min-width: 990px) { .sidebar { display: grid; position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100dvh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-right: 6px; } }
.sidebar h2 { font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cat-list { list-style: none; display: grid; gap: 2px; }
.cat-list a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; }
.cat-list a:hover { background: var(--surface-2); }
.cat-list a[aria-current="page"] { background: var(--surface-2); color: var(--brand); font-weight: 600; }
.cat-list .count { color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.cat-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 4px; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pills a { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); font-weight: 500; font-size: 0.9375rem; }
.cat-pills a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (min-width: 990px) { .cat-pills { display: none; } }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.toolbar__count { color: var(--muted); font-size: 0.9375rem; }
.toolbar__right { display: flex; gap: 10px; align-items: center; }
.toolbar .select { --select-pad: 16px; min-height: 40px; width: auto; border-radius: var(--r-pill); padding-block: 6px; }
.filter-btn { display: inline-flex; }
@media (min-width: 990px) { .filter-btn { display: none; } }
.filter-group { display: grid; gap: 8px; }
.filter-group + .filter-group { border-top: 1px solid var(--line); padding-top: 18px; }
.filter-group__title { font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 0.9375rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.check .count { margin-left: auto; color: var(--muted); font-size: 0.8125rem; }
.check.is-disabled { opacity: .45; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters a { display: inline-flex; gap: 6px; align-items: center; min-height: 34px; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 0.875rem; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; list-style: none; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 10px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); }
.pagination [aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty-state { padding: 48px 24px; text-align: center; border-radius: var(--r-card); background: var(--surface); border: 1px dashed var(--line); display: grid; gap: 12px; justify-items: center; }
.empty-state .icon { color: var(--muted); }

/* ---------- Product page ---------- */
.product { display: grid; gap: 28px; padding-block: 12px var(--section-y); }
@media (min-width: 990px) { .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; } .product__info { position: sticky; top: calc(var(--header-h) + 20px); } }
.gallery { display: grid; gap: 12px; }
.gallery__main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.gallery__main::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 8px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs button { width: 72px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--surface); }
.gallery__thumbs button[aria-current="true"] { border-color: var(--brand); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__info { display: grid; gap: 18px; align-content: start; }
.product__title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; }
.product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.product__price .price { font-size: 1.625rem; }
.sizes { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.sizes legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.sizes__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size label { display: grid; gap: 1px; padding: 10px 12px; border-radius: var(--r-input); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.size label b { font-weight: 600; }
.size label span { font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.size label small { color: var(--muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.size input:checked + label { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.size input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.size input:disabled + label { opacity: .5; text-decoration: line-through; }
.buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.buy .btn--secondary { grid-column: 1 / -1; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--surface); height: 48px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; display: grid; place-items: center; border-radius: var(--r-pill); }
.qty input { width: 40px; border: 0; background: none; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 36px; }
.qty--sm button { width: 34px; }
.qty--sm input { width: 30px; font-size: 0.9375rem; }
.promise { list-style: none; display: grid; gap: 0; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.promise li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; font-size: 0.9375rem; }
.promise li + li { border-top: 1px solid var(--line); }
.promise .icon { color: var(--brand); margin-top: 2px; }
.promise b { font-weight: 600; }
.sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-float); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(22, 35, 26, 0.08); transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky-atc.is-visible { transform: none; }
.sticky-atc__inner { display: flex; align-items: center; gap: 12px; min-height: 68px; padding-block: 10px max(10px, env(safe-area-inset-bottom, 0px)); }
.sticky-atc__img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.sticky-atc__text { min-width: 0; flex: 1; display: grid; }
.sticky-atc__text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc__text span { color: var(--muted); font-size: 0.875rem; }

/* ---------- Cart ---------- */
.ship-bar { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r-input); background: var(--surface-2); font-size: 0.9375rem; }
.ship-bar__track { height: 6px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.ship-bar__fill { height: 100%; background: var(--leaf); border-radius: inherit; width: var(--p, 0%); transition: width .4s var(--ease); }
.cart-lines { list-style: none; display: grid; }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line__img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.cart-line__info { display: grid; gap: 4px; align-content: start; }
.cart-line__title { font-weight: 500; line-height: 1.3; }
.cart-line__variant { color: var(--muted); font-size: 0.875rem; }
.cart-line__info .qty { justify-self: start; }
.cart-line__end { display: grid; justify-items: end; align-content: space-between; gap: 8px; }
.cart-line__remove { background: none; border: 0; color: var(--muted); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-pill); }
.cart-line__remove:hover { color: var(--danger); background: var(--surface-2); }
.cart-note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--muted); }
.cart-note .icon { color: var(--brand); margin-top: 2px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.125rem; }
.cart-total b { font-family: var(--font-display); font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.upsell { margin-top: 20px; display: grid; gap: 10px; }
.upsell h3 { font-family: var(--font-text); font-size: 0.9375rem; font-weight: 600; }
.upsell__row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.upsell__row img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.upsell__row b { font-weight: 500; font-size: 0.9375rem; display: block; line-height: 1.3; }
.upsell__row span { color: var(--muted); font-size: 0.8125rem; }
.cart-page { display: grid; gap: 32px; padding-bottom: var(--section-y); }
@media (min-width: 990px) { .cart-page { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; } .cart-summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.cart-summary { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }

/* Quick add dialog */
dialog.modal { border: 0; padding: 0; border-radius: var(--r-card); background: var(--surface); color: var(--ink); width: min(520px, 94vw); box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(10, 18, 12, 0.45); }
.modal__body { padding: 20px; display: grid; gap: 16px; }
.modal__head { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.modal__head img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }

/* Predictive search */
.search-results { list-style: none; display: grid; gap: 4px; margin-top: 12px; }
.search-results a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px; border-radius: 10px; }
.search-results a:hover, .search-results a:focus-visible { background: var(--surface-2); }
.search-results img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.search-results .price { font-size: 0.9375rem; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin-inline: auto; padding-bottom: var(--section-y); }
.article__media { border-radius: var(--r-card); overflow: hidden; margin: 8px 0 28px; aspect-ratio: 16 / 9; background: var(--surface-2); }
.article__media img { width: 100%; height: 100%; object-fit: cover; }
.article .rte { font-size: 1.0625rem; }
.ingredients-box { margin-top: 40px; padding: 20px; border-radius: var(--r-card); background: var(--surface-2); display: grid; gap: 14px; }
.blog-grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); padding-bottom: var(--section-y); }
.blog-card { display: grid; gap: 10px; align-content: start; }
.blog-card__media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card h2 { font-size: 1.25rem; line-height: 1.3; }

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

/* ---------- Store password page (only while the store is password protected) ---------- */
.template-password { min-height: 100dvh; display: grid; place-items: center; padding: 24px var(--gutter);
  background: radial-gradient(70% 60% at 0% 0%, color-mix(in srgb, var(--leaf) 28%, transparent), transparent 70%), var(--hero-bg); }
.password__card { width: min(440px, 100%); display: grid; gap: 16px; justify-items: center; text-align: center;
  padding: 40px 28px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.password__logo { width: 160px; height: auto; }
.password__shop { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--brand); }
.password__card h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
.password__message { color: var(--muted); }
.password__form { width: 100%; display: grid; gap: 10px; margin-top: 8px; }
.password__error { color: var(--danger); font-size: 0.9375rem; }
.password__owner { color: var(--muted); font-size: 0.875rem; }
.password__owner a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
