/* ==========================================================================
   Bari Foods theme: assets/css/main.css
   --------------------------------------------------------------------------
   1.  Design tokens (colours, type, spacing)   8.  Product card & grid
   2.  Base & utilities                         9.  Shop (filters, toolbar)
   3.  Buttons & form controls                  10. Product detail & quick view
   4.  Announcement bar & header                11. Cart, checkout, summary
   5.  Drawers, modal, toasts                   12. Content pages (about, contact, account)
   6.  Home sections                            13. Footer
   7.  Inner page hero                          14. Dark sections
   15. Mobile bottom navigation  16. Interaction and animation
   17. Policy pages  18. WhatsApp buttons  19. WordPress content  20. Motion preferences
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette */
  --black-forest: #243010;
  --lime-moss: #87a330;
  --yellow-green: #a1c349;
  --dry-sage: #cad593;
  --dark-spruce: #2a3c24;

  /* Tints and shades derived from the palette */
  --lime-moss-deep: #5f7420;   /* lime moss darkened so small text stays readable on light backgrounds */
  --sage-50: #fbfcf5;          /* page background */
  --sage-100: #f4f6e6;
  --sage-200: #e9eed0;
  --sage-300: #dde3c0;
  --white: #ffffff;

  /* Role aliases used throughout the stylesheet */
  --forest: var(--dark-spruce);
  --forest-deep: var(--black-forest);
  --fresh: var(--lime-moss);
  --fresh-soft: var(--sage-200);
  --cream: var(--sage-100);
  --cream-deep: var(--sage-200);
  --charcoal: #1d260f;
  --amber: #a5620f;

  /* Semantic colours (these are the ones components use) */
  --bg: var(--sage-50);
  --surface: var(--white);
  --surface-2: var(--sage-100);
  --surface-3: var(--sage-200);
  --ink: var(--charcoal);
  --muted: #5b6447;
  --line: var(--sage-300);
  --brand: var(--dark-spruce);
  --brand-ink: #f7f9ec;
  --accent: var(--lime-moss);
  --accent-text: var(--lime-moss-deep);
  --accent-soft: #eef2d9;
  --sale: var(--amber);
  --danger: #b3261e;
  --band: var(--black-forest);
  --band-ink: #f1f4e1;
  --band-muted: var(--dry-sage);
  --band-line: rgba(255, 255, 255, .14);
  --logo-bg: transparent;
  --hero-bg: linear-gradient(100deg, #f7f9ec 0%, #eaefcf 55%, #d9e2ac 100%);

  /* Typography */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", serif;
  --fs-xs: .8rem;
  --fs-sm: .9rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.3rem, 1.1rem + .9vw, 1.7rem);
  --fs-2xl: clamp(1.3rem, 1.05rem + 1.1vw, 1.7rem);
  --fs-3xl: clamp(2rem, 1rem + 3.6vw, 3.5rem);

  /* Spacing, radii, elevation */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem;
  --section: clamp(2.5rem, 1.6rem + 3.2vw, 4rem);
  --r-sm: 4px; --r: 6px; --r-lg: 10px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(36, 48, 16, .06), 0 4px 14px rgba(36, 48, 16, .05);
  --shadow: 0 14px 34px -14px rgba(36, 48, 16, .28);
  --shadow-lg: 0 30px 70px -24px rgba(36, 48, 16, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1240px;
  --header-h: 72px;
}

/* Light is the default. The dark theme is switched on by the header toggle,
   which sets data-theme="dark" on <html> (see applyTheme in js/script.js). */
:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131a0a; --surface: #1b2411; --surface-2: #171f0e; --surface-3: #263218;
  --ink: #eef2df; --muted: #aab493; --line: #303d1f;
  --brand: var(--yellow-green); --brand-ink: #1a230c; --accent: var(--yellow-green); --accent-text: #b7d468;
  --accent-soft: #232e15; --danger: #ff8a80; --band: #0e1407; --logo-bg: #f7f9ec; --hero-bg: #171f0e;
}

/* ---------- 2. Base & utilities ---------- */
*, *::before, *::after { box-sizing: border-box; }
:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
}
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Covers the phone status-bar area above the sticky header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 85;
  height: env(safe-area-inset-top, 0px); background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 300;
  padding: .7rem 1rem; border-radius: var(--r-sm); background: var(--brand); color: var(--brand-ink); font-weight: 600;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tint { background: var(--surface-2); }
.section--tight { padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--section); }
.section--flush { padding-block: 0; }

/* Urdu (Nastaliq) text — a core part of the brand voice */
.ur { font-family: var(--font-ur); line-height: 2.2; letter-spacing: 0; font-weight: 500; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

.section__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: var(--s-4) var(--s-6); margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}
.section__title { font-size: var(--fs-2xl); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--brand); }
/* Home page heading row: centred title, optional action on the right */
.section__head--center { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: clamp(1.1rem, 2.5vw, 1.75rem); }
.section__head--center .section__title { grid-column: 2; text-align: center; }
.section__head--center > :not(.section__title) { grid-column: 3; justify-self: end; }
.section__note { text-align: center; color: var(--muted); font-size: var(--fs-xs); margin-top: 1rem; }
.section__ur { color: var(--accent-text); font-size: 1.15rem; margin-bottom: -.35rem; }
.section__lede { color: var(--muted); max-width: 54ch; margin-top: .6rem; }
.text-link {
  font-weight: 600; color: var(--brand);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: currentColor; }
.note { font-size: var(--fs-xs); color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem;
  border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text);
  font-size: var(--fs-xs); font-weight: 600;
}
.chip button { display: grid; place-items: center; }
.chip .icon { width: 14px; height: 14px; }

/* Framed illustration (about sections) */
.frame { border-radius: var(--r-lg); overflow: hidden; background: var(--accent-soft); }
.frame img { width: 100%; height: 100%; object-fit: contain; }

.empty {
  display: grid; justify-items: center; gap: .75rem; text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1rem; color: var(--muted);
}
.empty h2, .empty h3 { color: var(--ink); font-size: var(--fs-xl); }
.empty__icon {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-text);
}
.empty__icon .icon { width: 28px; height: 28px; }

/* ---------- 3. Buttons & form controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .6rem 1.5rem; border: 1.5px solid transparent; border-radius: var(--r-sm);
  font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn--outline { border-color: var(--brand); color: var(--brand); background: var(--surface); }
.btn--outline:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn--light { background: var(--cream); color: var(--forest); }
.btn--light:hover { background: var(--white); }
.btn--wa { background: #1b7f45; color: #fff; }
.btn--wa:hover { background: #166b3a; }
.btn--sm { min-height: 40px; padding: .4rem 1rem; font-size: .72rem; }
.btn .icon { width: 16px; height: 16px; }
.btn--block { width: 100%; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; transition: background-color .2s;
}
.icon-btn:hover { background: var(--surface-3); }
/* Theme toggle shows a moon in light mode and a sun in dark mode */
.theme-toggle .icon:last-of-type { display: none; }
:root[data-theme="dark"] .theme-toggle .icon:first-of-type { display: none; }
:root[data-theme="dark"] .theme-toggle .icon:last-of-type { display: block; }
.count {
  position: absolute; top: 3px; right: 1px; display: grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; line-height: 1;
}

.field { display: grid; gap: .4rem; align-content: start; }
.field label, .label { font-size: var(--fs-sm); font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: .7rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-grid .col-2 { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: .6rem; min-height: 40px; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--forest); flex: none; }
.check .ur { margin-left: auto; color: var(--muted); font-size: .85rem; line-height: 1.6; }

/* Quantity stepper */
.qty {
  display: inline-flex; align-items: center; height: 46px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
.qty button { display: grid; place-items: center; width: 38px; height: 100%; }
.qty button:hover { color: var(--accent-text); }
.qty .icon { width: 15px; height: 15px; }
.qty output { min-width: 2ch; text-align: center; font-weight: 700; font-size: var(--fs-sm); }

/* Weight / option pills */
.pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill {
  min-height: 32px; padding: .2rem .65rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 600; transition: background-color .2s, border-color .2s, color .2s;
}
.pill:hover { border-color: var(--brand); }
.pill[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .55rem; }
.price__now { font-weight: 700; font-size: 1.08rem; }
.price__was { color: var(--muted); font-size: var(--fs-sm); }
.price--lg .price__now { font-size: var(--fs-xl); letter-spacing: -.02em; }

/* ---------- 4. Announcement bar & header ---------- */
.announce { background: var(--band); color: var(--band-ink); font-size: .78rem; font-weight: 500; }
.announce__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 38px; }
.announce__item { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
a.announce__item { transition: color .2s; }
a.announce__item:hover { color: var(--yellow-green); text-decoration: underline; text-underline-offset: 4px; }
.announce__item .icon { width: 16px; height: 16px; color: var(--yellow-green); }
.announce__text { transition: opacity .35s; padding-block: .35rem; text-align: center; }
.announce__text.is-out { opacity: 0; }

.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 80;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem;
  height: var(--header-h);
}
.header__menu { display: none; }
.logo img { height: 46px; width: auto; background: var(--logo-bg); border-radius: 10px; }
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(.25rem, 1.4vw, 1.25rem); }
.nav > a, .nav__toggle {
  position: relative; display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .7rem; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: var(--r-sm);
  transition: color .2s;
}
.nav > a:hover, .nav__toggle:hover, .nav > a[aria-current="page"] { color: var(--accent-text); }
.nav__toggle .icon { width: 16px; height: 16px; transition: transform .25s; }
.nav__drop { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 460px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: .6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.nav__menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu, .nav__drop.is-open .nav__menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav__drop:hover .nav__toggle .icon, .nav__drop.is-open .nav__toggle .icon { transform: rotate(180deg); }
.nav__cat {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .35rem .8rem; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600;
}
.nav__cat:hover { background: var(--surface-2); color: var(--accent-text); }
.nav__cat .ur { font-size: .85rem; color: var(--muted); }
.header__actions { display: flex; align-items: center; gap: 2px; }

/* Search panel (drops below the header) */
.search-panel {
  position: absolute; left: 0; right: 0; top: 100%; padding: 1rem 0 1.25rem;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.search-form {
  display: flex; align-items: center; gap: .5rem; padding: 0 .4rem 0 1.1rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
.search-form:focus-within { border-color: var(--accent); }
.search-form input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; outline: none; }
.search-results { display: grid; gap: 2px; margin-top: .75rem; max-height: min(60vh, 440px); overflow: auto; }
.search-results:empty { display: none; }
.sr-item { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: .9rem; padding: .45rem; border-radius: var(--r-sm); }
.sr-item:hover, .sr-item:focus-visible { background: var(--surface-2); }
.sr-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.sr-item strong { display: block; font-size: var(--fs-sm); }
.sr-item span { font-size: var(--fs-xs); color: var(--muted); }
.sr-item em { font-style: normal; font-weight: 700; font-size: var(--fs-sm); }
.search-results .sr-more, .search-results .sr-none { padding: .7rem .5rem; font-size: var(--fs-sm); }

/* ---------- 5. Drawers, modal, toasts ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(8, 18, 12, .55);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 100; width: min(430px, 100vw);
  display: flex; flex-direction: column; background: var(--surface);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  visibility: hidden; transition: transform .45s var(--ease), visibility .45s;
}
.drawer--right { right: 0; transform: translateX(100%); }
.drawer--left { left: 0; transform: translateX(-100%); width: min(360px, 88vw); }
.drawer.is-open { transform: none; visibility: visible; box-shadow: var(--shadow-lg); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1rem .9rem 1.5rem; border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: var(--fs-lg); }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.drawer__foot { display: grid; gap: .7rem; padding: 1.1rem 1.5rem 1.4rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: var(--fs-lg); }

.mnav__links a {
  display: flex; align-items: center; min-height: 52px; font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em;
}
.mnav__label { margin: 1.5rem 0 .4rem; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.mnav__cats a {
  display: flex; align-items: center; justify-content: space-between; min-height: 48px;
  border-bottom: 1px solid var(--line); font-weight: 600; font-size: var(--fs-sm);
}
.mnav__cats .ur { color: var(--muted); font-size: .9rem; }

.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal__box {
  position: relative; width: min(900px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.98); transition: transform .4s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--surface); box-shadow: var(--shadow-sm); }

.toasts {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 200;
  display: grid; gap: .5rem; justify-items: center; width: max-content; max-width: calc(100vw - 32px);
  transform: translateX(-50%); pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: .6rem; padding: .75rem 1.1rem; border-radius: var(--r-pill);
  background: var(--charcoal); color: #fff; font-size: var(--fs-sm); font-weight: 500; box-shadow: var(--shadow);
  animation: toast-in .35s var(--ease) both;
}
.toast .icon { color: var(--yellow-green); width: 18px; height: 18px; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.to-top {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- 6. Home sections ---------- */
/* Hero slider */
.hero { background: var(--hero-bg); overflow: hidden; padding-bottom: 3.9rem; }
.hero__slides { display: grid; }
.hero__slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center;
  gap: clamp(1rem, 3vw, 3rem); padding-top: clamp(1.5rem, 3.5vw, 2.75rem);
  opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__copy { display: grid; gap: 1rem; justify-items: start; }
.hero__welcome { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem 1rem; font-size: var(--fs-lg); font-weight: 500; }
.hero__welcome .ur { color: var(--accent-text); font-size: 1.05rem; line-height: 1.8; }
.hero__title { font-size: var(--fs-3xl); line-height: 1.02; letter-spacing: -.02em; font-weight: 800; text-transform: uppercase; }
.hero__title span { display: block; color: var(--lime-moss); }
:root[data-theme="dark"] .hero__title span { color: var(--yellow-green); }
.hero__text { max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.hero__visual img { width: 100%; height: auto; }
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: clamp(1rem, 2.5vw, 1.75rem); }
.trust { display: flex; flex-wrap: wrap; gap: .9rem clamp(1rem, 2.4vw, 2.25rem); }
.trust li { display: flex; align-items: center; gap: .6rem; font-size: .72rem; line-height: 1.35; color: var(--muted); }
.trust strong { display: block; color: var(--ink); font-size: .76rem; }
.trust .icon { width: 26px; height: 26px; color: var(--lime-moss); stroke-width: 1.5; }
.hero__nav { display: flex; align-items: center; gap: .4rem; }
.hero__nav .icon-btn { width: 40px; height: 40px; background: var(--surface); border: 1px solid var(--line); }
.dots { display: flex; margin-right: .4rem; }
.dot { display: grid; place-items: center; width: 26px; height: 28px; }
.dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: background-color .3s, transform .3s; }
.dot[aria-current="true"]::before { background: var(--brand); transform: scale(1.25); }
/* The one orchestrated entrance on the site: hero copy and image on slide change */
@media (prefers-reduced-motion: no-preference) {
  .hero__slide.is-active .hero__copy > * { animation: rise .8s var(--ease) both; }
  .hero__slide.is-active .hero__copy > :nth-child(2) { animation-delay: .07s; }
  .hero__slide.is-active .hero__copy > :nth-child(3) { animation-delay: .14s; }
  .hero__slide.is-active .hero__copy > :nth-child(4) { animation-delay: .21s; }
  .hero__slide.is-active .hero__visual { animation: rise 1s var(--ease) .1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Service bar */
.services {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: -2.4rem; padding: 1.1rem .5rem; border-radius: var(--r);
  background: var(--forest); color: #fff; box-shadow: var(--shadow);
}
.services li { display: flex; align-items: center; justify-content: center; gap: .85rem; padding: .2rem 1rem; font-size: .75rem; line-height: 1.4; }
.services li + li { border-left: 1px solid rgba(255, 255, 255, .2); }
.services strong { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.services span { opacity: .85; }
.services .icon { width: 30px; height: 30px; stroke-width: 1.4; color: var(--yellow-green); }

/* Carousels (reviews, categories) */
.carousel { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 4px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel-nav { display: flex; gap: .4rem; }
.carousel-nav .icon-btn, .cats__arrow { width: 38px; height: 38px; background: var(--surface); border: 1px solid var(--line); }

/* Categories: round tiles in a scrolling row */
.cats-wrap { position: relative; }
.cats { --gap: clamp(.75rem, 2vw, 1.75rem); gap: var(--gap); padding-inline: 2px; }
.cat { flex: 0 0 calc((100% - 6 * var(--gap)) / 7); display: grid; justify-items: center; text-align: center; scroll-snap-align: start; }
.cat__img {
  display: block; width: 100%; aspect-ratio: 1; margin-bottom: .7rem; overflow: hidden; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); transition: border-color .3s, box-shadow .3s;
}
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat:hover .cat__img, .cat:focus-visible .cat__img { border-color: var(--brand); box-shadow: var(--shadow); }
.cat:hover .cat__img img { transform: scale(1.07); }
.cat__name { font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; }
.cat__ur { color: var(--muted); font-size: .85rem; line-height: 1.8; }
.cats__arrow { position: absolute; top: calc(50% - 1.9rem); z-index: 2; transform: translateY(-50%); box-shadow: var(--shadow-sm); }
.cats__arrow--prev { left: -19px; }
.cats__arrow--next { right: -19px; }

/* Promotional banners */
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 1.6vw, 1.25rem); }
.promo {
  display: grid; grid-template-columns: 1fr minmax(110px, 32%); align-items: center; gap: 1rem; overflow: hidden;
  min-height: 190px; padding: 1.25rem clamp(1.1rem, 2.5vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--r); background: var(--accent-soft); transition: box-shadow .3s;
}
.promo:hover { box-shadow: var(--shadow); }
.promo__body { display: grid; gap: .3rem; justify-items: start; }
.promo__ur { font-size: 1rem; line-height: 1.8; color: var(--accent-text); }
.promo h3 { font-size: var(--fs-xl); font-weight: 800; text-transform: uppercase; letter-spacing: 0; color: var(--brand); }
.promo__body > p:not(.ur) { font-size: var(--fs-sm); color: var(--muted); }
.promo .btn { margin-top: .6rem; }
.promo img { width: 100%; max-width: 200px; justify-self: center; scale: 1.45; transition: transform .6s var(--ease); }
.promo:hover img { transform: translateY(-6px); }

/* Why choose Bari Foods / values: one bordered row */
.why, .values { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.why { grid-template-columns: repeat(4, 1fr); }
.values { grid-template-columns: repeat(3, 1fr); }
.why__item { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: .15rem 1rem; padding: 1.25rem 1.4rem; }
.why__item + .why__item { border-left: 1px solid var(--line); }
.why__item .icon { grid-row: span 2; width: 32px; height: 32px; margin-top: .15rem; color: var(--accent-text); stroke-width: 1.5; }
.why__item h3 { font-size: 1rem; letter-spacing: -.01em; }
.why__item p { grid-column: 2; color: var(--muted); font-size: var(--fs-xs); }

/* About split */
.split { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(1.5rem, 5vw, 4.5rem); }
.split__media { aspect-ratio: 4 / 3; }
.split__body { display: grid; gap: 1rem; justify-items: start; }
.split__body p { color: var(--muted); max-width: 58ch; }
.split__body .ur { color: var(--accent-text); font-size: 1.2rem; }

/* Reviews */
.review {
  flex: 0 0 calc((100% - 2.5rem) / 3); scroll-snap-align: start; display: flex; flex-direction: column; gap: .8rem;
  padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.stars { display: flex; justify-content: center; gap: 2px; color: #e0a020; }
.stars .icon { width: 15px; height: 15px; }
.review blockquote { position: relative; flex: 1; margin: 0; padding-left: 2.1rem; font-size: var(--fs-sm); line-height: 1.55; }
.review blockquote::before { content: "\201C"; position: absolute; left: 0; top: -.3rem; font-size: 2.8rem; line-height: 1; font-weight: 800; color: var(--brand); }
.review footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-left: 2.1rem; font-size: var(--fs-xs); color: var(--muted); }
.review footer strong { display: block; color: var(--ink); font-size: var(--fs-sm); }

/* Newsletter strip */
.newsletter { --nl-bg: var(--dry-sage); --nl-ink: var(--black-forest); background: var(--nl-bg); color: var(--nl-ink); padding-block: 1.75rem; }
:root[data-theme="dark"] .newsletter { --nl-bg: var(--lime-moss-deep); --nl-ink: #fff; }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.25rem 3rem; }
.newsletter__text { display: flex; align-items: center; gap: 1rem; }
.newsletter__text .icon { width: 40px; height: 40px; stroke-width: 1.3; }
.newsletter h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.newsletter p { font-size: var(--fs-xs); opacity: .88; max-width: 46ch; margin-top: .2rem; }
.newsletter__form { display: flex; }
.newsletter__form input { flex: 1; min-width: 0; height: 46px; padding: 0 1rem; border: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: #fff; color: #1e2521; }
.newsletter__form .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--dark-spruce); color: #fff; }
.newsletter__form .btn:hover { background: var(--black-forest); }

/* ---------- 7. Inner page hero ---------- */
.page-hero { background: var(--hero-bg); padding-block: clamp(1.5rem, 4vw, 2.75rem); }
.page-hero h1 { font-size: var(--fs-2xl); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--brand); }
.page-hero h1 + .ur { color: var(--accent-text); font-size: 1.3rem; text-align: left; }
.page-hero .lede { color: var(--muted); max-width: 60ch; margin-top: .5rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; font-size: var(--fs-sm); color: var(--muted); }
.crumbs a:hover { color: var(--accent-text); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- 8. Product card & grid ---------- */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.75rem, 1.5vw, 1.1rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  transition: box-shadow .3s, border-color .3s;
}
.card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card__media { position: relative; aspect-ratio: 1; overflow: hidden; background: #f7f8ee; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 0; left: 0; padding: .32rem .6rem; border-radius: 0 0 var(--r-sm) 0;
  background: var(--yellow-green); color: var(--black-forest); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.badge--best { background: var(--forest); color: #fff; }
.wish-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--charcoal); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), color .2s;
}
.wish-btn:hover { transform: scale(1.08); }
.wish-btn[aria-pressed="true"] { color: #c0392b; }
.wish-btn[aria-pressed="true"] .icon { fill: currentColor; }
.card__wish { position: absolute; top: 6px; right: 6px; }
.card__quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 40px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .95); color: var(--charcoal); box-shadow: var(--shadow-sm);
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease);
}
.card:hover .card__quick, .card__quick:focus-visible { opacity: 1; transform: none; }
@media (hover: none) {
  .card__quick { opacity: 1; transform: none; left: auto; right: 6px; bottom: 6px; width: 40px; padding: 0; border-radius: 50%; }
  .card__quick span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
.card__body { display: flex; flex-direction: column; align-items: center; gap: .5rem; flex: 1; padding: .85rem .8rem .9rem; text-align: center; }
.card__cat { font-size: .72rem; color: var(--muted); }
.card__title { font-size: .92rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.card__title a:hover { color: var(--accent-text); }
.card .pills { justify-content: center; }
.card .pill { min-height: 28px; padding: .1rem .5rem; font-size: .72rem; }
.card .price { margin-top: auto; justify-content: center; }
.card__buy { display: flex; gap: .4rem; width: 100%; }
.card__buy .qty { height: 40px; }
.card__buy .qty button { width: 28px; }
.card__buy .btn { flex: 1; min-width: 0; min-height: 40px; padding-inline: .4rem; font-size: .68rem; letter-spacing: .04em; }
.card__buy .btn .icon { display: none; }

/* ---------- 9. Shop ---------- */
.shop { display: grid; grid-template-columns: 250px 1fr; align-items: start; gap: clamp(1.5rem, 4vw, 3.5rem); }
.filters { position: sticky; top: calc(var(--header-h) + 24px); }
.filters__head { display: none; }
.filters form { display: grid; gap: 1.6rem; }
.filters legend { font-weight: 700; margin-bottom: .5rem; }
.filters input[type="range"] { width: 100%; accent-color: var(--forest); height: 32px; }
.range-row { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--muted); }
.range-row output { color: var(--ink); font-weight: 700; }
.filters__apply { display: none; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.toolbar__filter { display: none; }
.toolbar p { color: var(--muted); font-size: var(--fs-sm); }
.sort { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); font-weight: 600; }
.sort .select { width: auto; min-height: 44px; padding-block: .4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chips:empty { display: none; }

/* ---------- 10. Product detail & quick view ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(1.5rem, 5vw, 5rem); }
.qv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2.25rem); padding: clamp(1rem, 3vw, 2rem); }
.gallery { display: grid; gap: .75rem; min-width: 0; }
.pdp .gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.gallery__main { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-3); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: .6rem; }
.thumb { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; opacity: .7; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover, .thumb[aria-current="true"] { opacity: 1; }
.thumb[aria-current="true"] { border-color: var(--brand); }
.detail { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.detail__cat { display: flex; align-items: center; gap: .75rem; font-size: var(--fs-sm); color: var(--muted); }
.detail__cat a { font-weight: 600; color: var(--accent-text); }
.detail__cat .ur { line-height: 1.6; }
.detail__title { font-size: var(--fs-2xl); }
.qv .detail__title { font-size: var(--fs-xl); padding-right: 2.5rem; }
.detail__desc { color: var(--muted); max-width: 56ch; }
.detail__opt { display: grid; gap: .5rem; }
.detail__buy { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.detail__buy .btn { flex: 1; }
.detail__buy .wish-btn { border: 1.5px solid var(--line); width: 50px; height: 50px; background: var(--surface); color: var(--ink); }
.detail__buy .wish-btn[aria-pressed="true"] { color: #c0392b; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px;
  font-weight: 700; cursor: pointer; list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform .25s; }
.acc details[open] summary .icon { transform: rotate(180deg); }
.acc details > div { padding-bottom: 1.1rem; color: var(--muted); font-size: var(--fs-sm); max-width: 62ch; }

/* ---------- 11. Cart, checkout, summary ---------- */
.lines { display: grid; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: .9rem; align-items: start; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line__img img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.line__info { display: grid; gap: .25rem; min-width: 0; }
.line__name { font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; }
.line__name:hover { color: var(--accent-text); }
.line__meta { font-size: var(--fs-xs); color: var(--muted); }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .4rem; }
.line .qty { height: 38px; }
.line .qty button { width: 34px; }
.line .icon-btn { width: 38px; height: 38px; color: var(--muted); }
.line .icon-btn:hover { color: var(--danger); }
.line .icon-btn .icon { width: 17px; height: 17px; }

.cart-layout { display: grid; grid-template-columns: 1fr 380px; align-items: start; gap: clamp(1.5rem, 4vw, 4rem); }
.cart-layout .line { grid-template-columns: 104px 1fr auto; gap: 1.25rem; padding-block: 1.4rem; }
.cart-layout .line__img img { width: 104px; height: 104px; border-radius: var(--r); }
.cart-layout .line__name { font-size: var(--fs-lg); }
.summary { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1rem; padding: 1.75rem; border-radius: var(--r-lg); background: var(--surface-2); }
.summary h2 { font-size: var(--fs-xl); }
.summary dl { display: grid; gap: .7rem; margin: 0; }
.summary dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-sm); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary .summary__total { padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--fs-lg); }
.summary .summary__total dt { color: var(--ink); font-weight: 700; }
.summary .summary__total dd { font-weight: 800; }
.summary__items { display: grid; gap: .8rem; }
.summary__items li { display: grid; grid-template-columns: 52px 1fr auto; gap: .75rem; align-items: center; font-size: var(--fs-sm); }
.summary__items img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.summary__items span { display: block; color: var(--muted); font-size: var(--fs-xs); }

.success { display: grid; gap: 1rem; justify-items: start; max-width: 640px; }
.success h2 { font-size: var(--fs-2xl); color: var(--brand); text-transform: uppercase; letter-spacing: .03em; }
.success p { color: var(--muted); }
.success__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

/* ---------- 12. Content pages ---------- */
.prose { display: grid; gap: 1rem; max-width: 62ch; color: var(--muted); }
.prose h2 { color: var(--ink); font-size: var(--fs-2xl); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--r-lg); background: var(--forest); color: var(--cream); }
.cta-band h2 { font-size: var(--fs-2xl); text-transform: uppercase; letter-spacing: .03em; max-width: 24ch; }

.contact { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(1.5rem, 5vw, 5rem); }
.info-list { display: grid; gap: 0; margin-block: 1.25rem; border-top: 1px solid var(--line); }
.info-list li { display: grid; grid-template-columns: 24px 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.info-list .icon { color: var(--accent-text); margin-top: 2px; }
.info-list strong { display: block; font-size: var(--fs-sm); }
.info-list span { color: var(--muted); font-size: var(--fs-sm); }
.info-list .is-todo { font-style: italic; }
.panel { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--r-lg); background: var(--surface-2); }
.panel h2 { font-size: var(--fs-xl); }

.account { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: clamp(1.5rem, 5vw, 5rem); }
.tabs { display: inline-flex; padding: 4px; border-radius: var(--r); background: var(--surface-3); margin-bottom: 1.5rem; }
.tab { min-height: 42px; padding: .4rem 1.3rem; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tick-list { display: grid; gap: .8rem; }
.tick-list li { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; font-size: var(--fs-sm); }
.tick-list .icon { color: var(--accent-text); margin-top: 2px; }

/* ---------- 13. Footer ---------- */
.footer { background: var(--black-forest); padding-top: clamp(2rem, 4vw, 3rem); font-size: var(--fs-sm); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.25fr 1.1fr 1.15fr; gap: clamp(1.25rem, 3vw, 2.5rem); padding-bottom: 2rem; }
.footer__logo img { height: 46px; width: auto; padding: 4px 8px; background: var(--logo-bg); border-radius: 10px; }
.footer__about { color: var(--muted); max-width: 32ch; margin-block: .8rem 1rem; font-size: var(--fs-xs); }
.footer__contact { display: grid; gap: .45rem; margin-bottom: 1rem; font-size: var(--fs-xs); color: var(--muted); }
.footer__contact li { display: flex; align-items: center; gap: .6rem; }
.footer__contact .icon { width: 16px; height: 16px; color: var(--accent-text); }
.footer__contact a, .info-list a { transition: color .2s; }
.footer__contact a:hover, .info-list a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.footer h2 { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.footer__links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 32px; color: var(--muted); font-size: var(--fs-xs); transition: color .2s; }
.footer__links a:hover { color: var(--brand); }
.footer__links .ur { font-size: .8rem; line-height: 1.6; opacity: .8; }
.socials { display: flex; gap: .25rem; margin-left: -.5rem; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: background-color .2s, color .2s; }
.socials a:hover { background: var(--brand); color: var(--brand-ink); }
.socials .icon { width: 18px; height: 18px; }
.pay { display: flex; flex-wrap: wrap; gap: .4rem; }
.pay li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: .72rem; font-weight: 600; }
.pay .icon { width: 16px; height: 16px; color: var(--accent-text); }
.footer__note { margin-top: .6rem; color: var(--muted); font-size: var(--fs-xs); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; padding-block: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .shop { grid-template-columns: 220px 1fr; }
  .shop .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cat { flex-basis: calc((100% - 4 * var(--gap)) / 5); }
  .review { flex-basis: calc((100% - 1.25rem) / 2); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .announce__item { display: none; }
  .announce__inner { justify-content: center; }
  .header__inner { grid-template-columns: 1fr auto 1fr; gap: .5rem; }
  .header__menu { display: inline-grid; justify-self: start; margin-left: -10px; }
  .nav { display: none; }
  .header__actions { justify-self: end; margin-right: -10px; }
  .logo img { height: 40px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero__foot { flex-wrap: wrap; }
  .services { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
  .services li { justify-content: flex-start; }
  .services li + li { border-left: 0; }
  .services li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .2); }
  .why { grid-template-columns: 1fr 1fr; }
  .why .why__item + .why__item { border-left: 0; }
  .why .why__item:nth-child(even) { border-left: 1px solid var(--line); }
  .why .why__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .values { grid-template-columns: 1fr; }
  .values .why__item + .why__item { border-left: 0; border-top: 1px solid var(--line); }
  .promos { grid-template-columns: 1fr; }

  /* Filters become a slide-in drawer */
  .shop { grid-template-columns: 1fr; }
  .shop .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .filters {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; width: min(360px, 88vw);
    display: flex; flex-direction: column; background: var(--surface); overflow-y: auto;
    padding: env(safe-area-inset-top, 0px) 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s;
  }
  .filters.is-open { transform: none; visibility: visible; box-shadow: var(--shadow-lg); }
  .filters__head { display: flex; align-items: center; justify-content: space-between; padding-block: .9rem; margin-bottom: .5rem; }
  .filters__head h2 { font-size: var(--fs-lg); }
  .filters__apply, .toolbar__filter { display: inline-flex; }

  .cart-layout, .contact, .account { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  .hero__slide { grid-template-columns: 1fr; gap: 1rem; }
  .hero__cta .btn { flex: 1; }
  .hero__foot { justify-content: center; }
  .trust { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .grid, .shop .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section__head--center { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
  .section__head--center .section__title:only-child { margin-inline: auto; }
  /* Categories and reviews swipe sideways inside their own track */
  .cats, .carousel { margin-inline: -1.25rem; padding-inline: 1.25rem; scroll-padding-inline: 1.25rem; }
  .cat { flex-basis: 28%; }
  .cats__arrow { display: none; }
  .review { flex-basis: 86%; }
  .split, .newsletter__inner { grid-template-columns: 1fr; }
  .pdp, .qv { grid-template-columns: 1fr; }
  .pdp .gallery { position: static; }
  .qv .gallery__thumbs { display: none; }
  .qv .gallery__main { aspect-ratio: 4 / 3; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-layout .line { grid-template-columns: 76px 1fr auto; gap: .9rem; }
  .cart-layout .line__img img { width: 76px; height: 76px; }
  .cart-layout .line__name { font-size: var(--fs-md); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .header__actions .hide-sm { display: none; }
  .services { grid-template-columns: 1fr; padding-inline: 1rem; }
  .services li:nth-child(even) { border-left: 0; }
  .why { grid-template-columns: 1fr; }
  .why .why__item:nth-child(even) { border-left: 0; }
  .why .why__item + .why__item { border-top: 1px solid var(--line); }
  .promo { grid-template-columns: 1fr 34%; min-height: 170px; }
  .card__body { padding-inline: .6rem; }
  .card__buy { justify-content: space-between; }
  .card__buy .btn { flex: 0 0 46px; }
  .card__buy .btn span { display: none; }
  .card__buy .btn .icon { display: block; }
  .newsletter__form { flex-direction: column; gap: .5rem; }
  .newsletter__form input, .newsletter__form .btn { border-radius: var(--r-sm); }
  .sort span { display: none; }
}

/* ---------- 14. Dark sections ----------
   .section--dark gives a section the dark side of the palette. In the light
   theme it re-points the semantic tokens, so everything inside (headings,
   buttons, borders, links) adapts automatically. Product cards keep their
   own light surface so they stand out against the dark band. */
.section--dark { background: var(--dark-spruce); }
:root:not([data-theme="dark"]) .section--dark {
  --ink: #f1f4e1; --muted: #c6cfab; --line: rgba(255, 255, 255, .16);
  --brand: var(--yellow-green); --brand-ink: #1a230c; --accent: var(--yellow-green); --accent-text: #b7d468;
  --accent-soft: rgba(161, 195, 73, .18); --surface: rgba(255, 255, 255, .06); --surface-2: rgba(255, 255, 255, .05);
  --surface-3: rgba(255, 255, 255, .12); --logo-bg: #f7f9ec;
  color: var(--ink);
}
:root:not([data-theme="dark"]) .section--dark .card {
  --ink: var(--charcoal); --muted: #5b6447; --line: var(--sage-300);
  --brand: var(--dark-spruce); --brand-ink: #f7f9ec; --accent: var(--lime-moss); --accent-text: var(--lime-moss-deep);
  --surface: var(--white); --surface-2: var(--sage-100); --surface-3: var(--sage-200);
  color: var(--ink); border-color: transparent;
}
.section--dark .card:hover { box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); }
.page-hero.section--dark { background: radial-gradient(circle at 88% 0%, rgba(161, 195, 73, .22), transparent 46%), var(--dark-spruce); }
.footer.section--dark { background: var(--black-forest); }
:root[data-theme="dark"] .footer.section--dark { background: #0e1407; }

/* ---------- 15. Mobile bottom navigation ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -14px rgba(36, 48, 16, .3);
  }
  .tabbar > * {
    position: relative; display: grid; justify-items: center; align-content: center; gap: 2px;
    height: 58px; color: var(--muted); font-size: .66rem; font-weight: 600; transition: color .2s;
  }
  .tabbar .icon { width: 22px; height: 22px; transition: transform .3s var(--ease); }
  .tabbar > *:active .icon { transform: scale(.85); }
  .tabbar > [aria-current="page"] { color: var(--brand); }
  .tabbar > [aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .tabbar .count { top: 6px; right: calc(50% - 22px); }
  body.has-tabbar { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .to-top { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .toasts { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  /* The product page uses its own sticky buy bar instead */
}

/* ---------- 16. Interaction: hover effects, transitions, animations ---------- */
/* Centred section titles get a short accent rule */
.section__head--center .section__title::after {
  content: ""; display: block; width: 56px; height: 3px; margin: .6rem auto 0; border-radius: 3px; background: var(--accent);
}

/* Navigation: underline grows from the centre */
.nav > a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .25rem; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav > a:hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.logo img { transition: transform .35s var(--ease); }
.logo:hover img { transform: scale(1.04); }
.icon-btn { transition: background-color .2s, transform .25s var(--ease), color .2s; }
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn:active { transform: scale(.92); }

/* Buttons: light sweep, icon nudge, lift */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); transition: left .6s var(--ease);
}
.btn:hover::before { left: 120%; }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--outline:hover, .btn--light:hover, .btn--wa:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.is-added { background: var(--lime-moss); border-color: var(--lime-moss); color: var(--black-forest); }
.pill:hover { transform: translateY(-1px); }
.qty button { transition: color .2s, background-color .2s; }
.qty button:hover { background: var(--surface-3); }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }

/* Cart icon bump and badge pop when something is added */
.is-bump { animation: bump .5s var(--ease); }
.is-bump .count { animation: pop .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95) rotate(4deg); } }
@keyframes pop { 40% { transform: scale(1.5); } }
.wish-btn[aria-pressed="true"] .icon { animation: pop .45s var(--ease); }

/* Toast action */
.toast button { margin-left: .4rem; padding: .25rem .7rem; border-radius: var(--r-pill); background: var(--yellow-green); color: var(--black-forest); font-size: .72rem; font-weight: 700; transition: background-color .2s; }
.toast button:hover { background: var(--dry-sage); }

/* Hero: the product group floats gently */
@media (prefers-reduced-motion: no-preference) {
  .hero__visual img { animation: float 7s ease-in-out infinite; }
}
@keyframes float { 50% { transform: translateY(-10px); } }
.trust li { transition: transform .3s var(--ease); }
.trust li:hover { transform: translateY(-3px); }
.services li .icon { transition: transform .4s var(--ease); }
.services li:hover .icon { transform: translateY(-3px) scale(1.1); }

/* Cards, categories, banners, reviews */
.card { transition: box-shadow .35s, border-color .35s, transform .35s var(--ease); }
.card:hover { transform: translateY(-6px); }
.cat { transition: transform .35s var(--ease); }
.cat:hover { transform: translateY(-6px); }
.cat__img { outline: 2px solid transparent; outline-offset: 4px; transition: border-color .3s, box-shadow .3s, outline-color .3s; }
.cat:hover .cat__img { outline-color: var(--accent); }
.cat__name { transition: color .2s; }
.cat:hover .cat__name { color: var(--accent-text); }
.promo { transition: box-shadow .35s, transform .35s var(--ease), border-color .35s; }
.promo:hover { transform: translateY(-4px); border-color: var(--accent); }
.promo:hover img { transform: translateY(-8px) rotate(-4deg); }
.why__item { transition: background-color .3s; }
.why__item:hover { background: var(--surface-2); }
.why__item .icon { transition: transform .4s var(--ease); }
.why__item:hover .icon { transform: scale(1.15) rotate(-6deg); }
.review { transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.review:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.frame img { transition: transform .8s var(--ease); }
.frame:hover img { transform: scale(1.04); }
.thumb { transition: opacity .2s, border-color .2s, transform .25s var(--ease); }
.thumb:hover { transform: translateY(-2px); }
.line__img img { transition: transform .4s var(--ease); }
.line:hover .line__img img { transform: scale(1.06); }
.sr-item { transition: background-color .2s, transform .25s var(--ease); }
.sr-item:hover { transform: translateX(4px); }
.nav__cat { transition: background-color .2s, color .2s, padding-left .25s var(--ease); }
.nav__cat:hover { padding-left: 1.1rem; }
.mnav__links a, .mnav__cats a { transition: color .2s, padding-left .25s var(--ease); }
.mnav__links a:hover, .mnav__cats a:hover { color: var(--accent-text); padding-left: .4rem; }
.footer__links a span:first-child, .footer__links a { transition: color .2s, transform .25s var(--ease); }
.footer__links a:hover { transform: translateX(4px); }
.socials a:hover { transform: translateY(-3px); }
.pay li { transition: border-color .2s, transform .25s var(--ease); }
.pay li:hover { border-color: var(--accent); transform: translateY(-2px); }
.to-top:hover { transform: translateY(-4px); }
.backdrop { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* Product page: zoom the main image towards the pointer */
@media (hover: hover) {
  .pdp .gallery__main { cursor: zoom-in; }
  .pdp .gallery__main img { transition: transform .45s var(--ease); }
  .pdp .gallery__main:hover img { transform: scale(1.8); }
}

/* Drawers and accordions: content eases in */
.drawer.is-open .line, .drawer.is-open .mnav__links li, .drawer.is-open .mnav__cats li { animation: slide-in .45s var(--ease) both; }
.drawer.is-open :is(.line, li):nth-child(2) { animation-delay: .05s; }
.drawer.is-open :is(.line, li):nth-child(3) { animation-delay: .1s; }
.drawer.is-open :is(.line, li):nth-child(4) { animation-delay: .15s; }
.drawer.is-open :is(.line, li):nth-child(n + 5) { animation-delay: .2s; }
@keyframes slide-in { from { opacity: 0; transform: translateX(16px); } }
.acc details[open] > div { animation: fade-down .35s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }
.search-panel:not([hidden]) { animation: fade-down .3s var(--ease); }

/* Scroll reveal (attribute is added and removed by revealScan in js/script.js) */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease) calc(var(--i, 0) * 70ms), transform .7s var(--ease) calc(var(--i, 0) * 70ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 17. Policy pages ---------- */
.policy { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 5vw, 4.5rem); }
.policy__nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1rem; }
.policy__nav h2 { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.policy__nav ul { display: grid; gap: 2px; }
.policy__nav li a { display: block; padding: .6rem .9rem; border-left: 3px solid var(--line); font-size: var(--fs-sm); font-weight: 600; transition: border-color .2s, background-color .2s, color .2s, padding-left .25s var(--ease); }
.policy__nav li a:hover { background: var(--surface-2); padding-left: 1.15rem; }
.policy__nav li a[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); color: var(--brand); }
.policy__nav .panel { gap: .5rem; padding: 1.1rem; justify-items: start; }
.policy__body { max-width: 72ch; }
.policy__body h2 { margin: 2.1rem 0 .6rem; font-size: 1.2rem; letter-spacing: -.01em; }
.policy__body p, .policy__body li { color: var(--muted); }
.policy__body p + p, .policy__body ul + p, .policy__body ol + p { margin-top: .8rem; }
.policy__body ul, .policy__body ol { display: grid; gap: .45rem; margin-top: .6rem; padding-left: 1.3rem; }
.policy__body ul { list-style: disc; }
.policy__body ol { list-style: decimal; }
.policy__body li::marker { color: var(--accent); }
.policy__body strong { color: var(--ink); }
.policy__body a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.policy-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.policy-card { display: grid; gap: .35rem; align-content: start; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.policy-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.policy-card .icon { width: 28px; height: 28px; margin-bottom: .3rem; color: var(--accent-text); stroke-width: 1.5; }
.policy-card span { color: var(--muted); font-size: var(--fs-xs); }
@media (max-width: 960px) {
  .policy { grid-template-columns: 1fr; }
  .policy__nav { position: static; }
  .policy__nav ul { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .policy__nav li a { white-space: nowrap; border: 1px solid var(--line); border-radius: var(--r-pill); padding: .45rem .9rem; }
  .policy__nav li a:hover { padding-left: .9rem; }
  .policy__nav .panel { display: none; }
  .policy-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .policy-links { grid-template-columns: 1fr; } }

/* ---------- 18. WhatsApp: card button and floating chat button ---------- */
.card__wa { width: 100%; min-height: 36px; padding-inline: .4rem; font-size: .66rem; letter-spacing: .04em; }
.card__wa .wa-short { display: none; }
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  display: flex; align-items: center; gap: .5rem; height: 52px; padding: 0 1.15rem 0 .95rem; border-radius: 26px;
  background: #1b7f45; color: #fff; font-size: .8rem; font-weight: 700; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), background-color .2s, box-shadow .3s;
}
.wa-float .icon { width: 24px; height: 24px; }
.wa-float:hover { transform: translateY(-4px); background: #166b3a; box-shadow: var(--shadow-lg); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1b7f45; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .wa-float::after { animation: wa-pulse 2.6s ease-out infinite; } }
@keyframes wa-pulse { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.25, 1.5); } }
.to-top { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) {
  .wa-float { right: 14px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); width: 52px; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .to-top { right: 16px; bottom: calc(134px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  .card__wa .wa-long { display: none; }
  .card__wa .wa-short { display: inline; }
}

/* ---------- 19. WordPress content, widgets and small additions ---------- */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.admin-bar .header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .header { top: calc(46px + env(safe-area-inset-top, 0px)); } }
@media (max-width: 600px) { .admin-bar .header { top: env(safe-area-inset-top, 0px); } }
.logo img, .footer__logo img { max-width: 220px; object-fit: contain; }
.services--flat { margin-top: 0; }
.split--reverse .split__media { order: 2; }
.split__text { display: grid; gap: .9rem; color: var(--muted); max-width: 58ch; }
.page-hero .lede p { margin: 0; }
.bf-cart-inner { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer.is-busy .bf-cart-inner { opacity: .55; pointer-events: none; transition: opacity .2s; }
.line__img img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.form-status:empty { display: none; }
.barifoods-canvas { background: var(--bg); }

/* Text content: default pages and blog posts */
.entry { max-width: var(--container); }
.entry--narrow { max-width: 780px; }
.entry > * + * { margin-top: 1.1rem; }
.entry h2, .entry h3, .entry h4 { margin-top: 2rem; }
.entry h2 { font-size: var(--fs-xl); }
.entry h3 { font-size: var(--fs-lg); }
.entry ul, .entry ol { padding-left: 1.4rem; display: grid; gap: .4rem; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry a:not(.btn):not(.button) { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.entry blockquote { margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem; border-left: 3px solid var(--accent); font-size: var(--fs-lg); }
.entry img { border-radius: var(--r); }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry__media img { width: 100%; border-radius: var(--r-lg); }
.alignwide { max-width: none; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: .4rem; }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { display: grid; gap: .5rem; padding: 1.25rem; }
.post-card__body h2 { font-size: var(--fs-lg); }
.post-card__body p { color: var(--muted); font-size: var(--fs-sm); }
.navigation.pagination, .woocommerce-pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .6rem; border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-sm); }
.nav-links .page-numbers.current, .nav-links a.page-numbers:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.search-form--inline { max-width: 460px; padding-left: 1rem; }
.search-form--inline input { height: 46px; }

/* Sidebar widgets (shop filters, blog) */
.widget + .widget { margin-top: 1.75rem; }
.widget-title { font-size: 1rem; font-weight: 700; margin-bottom: .6rem; }
.filter-cats, .widget ul { display: grid; gap: 2px; }
.filter-cats a, .widget ul a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 38px; padding: .2rem .7rem; border-radius: var(--r-sm); font-size: var(--fs-sm); transition: background-color .2s, color .2s; }
.filter-cats a:hover, .widget ul a:hover { background: var(--surface-2); color: var(--accent-text); }
.filter-cats a[aria-current="page"] { background: var(--accent-soft); color: var(--brand); font-weight: 700; }
.filter-cats .ur { font-size: .85rem; line-height: 1.6; color: var(--muted); }
.filters__body { display: grid; gap: 0; }

/* Comments */
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments__list { display: grid; gap: 1.25rem; padding: 0; list-style: none; margin-block: 1.25rem; }
.comment-body { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.comment-form { display: grid; gap: 1rem; margin-top: 1rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; min-height: 50px; padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
.comment-form .submit { min-height: 46px; padding: .6rem 1.5rem; border-radius: var(--r-sm); background: var(--brand); color: var(--brand-ink); font-weight: 700; }

@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }
.newsletter__inner > *, .newsletter__text > div { min-width: 0; }
@media (max-width: 760px) { .newsletter__inner { grid-template-columns: minmax(0, 1fr); } }
body.no-animations [data-reveal] { opacity: 1; transform: none; }
body.woocommerce-checkout .wa-float { display: none; }

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