/* =============================================================
   Kosher Catalog — uno (clean editorial redesign)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600;700&family=Heebo:wght@400;500;600;700&display=swap');

:root {
  --bg: #f8f3e6;            /* warm parchment base */
  --bg-alt: #ede4cd;         /* deeper cream */
  --bg-soft: #f3ecd9;        /* between bg and bg-alt */
  --surface: #fdfaf1;        /* soft cream-white (not stark white) */
  --surface-2: #f7f0de;      /* nested surfaces */
  --ink: #1b1a15;            /* warm near-black */
  --ink-2: #40392c;          /* warm dark brown-gray */
  --muted: #7a7060;          /* warm gray */
  --line: #e3d8bf;           /* warm border */
  --line-strong: #cdbf9e;    /* stronger warm border */

  --accent: #1d2f5a;         /* deep indigo, slightly warmer */
  --accent-hover: #2a4175;
  --gold: #b48229;           /* richer muted gold */
  --gold-soft: #e8d4a6;
  --sage: #6b7a46;
  --meat: #9a3a40;
  --dairy: #2d6485;
  --parve: #6b7a46;
  --pesah: #7b51a8;

  --r-xs: 4px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --sh-1: 0 1px 2px rgba(15,15,20,.04), 0 2px 6px rgba(15,15,20,.04);
  --sh-2: 0 2px 6px rgba(15,15,20,.05), 0 10px 24px -12px rgba(15,15,20,.1);
  --sh-3: 0 4px 14px rgba(15,15,20,.08), 0 20px 48px -20px rgba(15,15,20,.16);

  --f-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-serif: 'Fraunces', ui-serif, Georgia, serif;
  --f-he: 'Heebo', 'Inter', system-ui;

  --maxw: 1200px;
  --maxw-narrow: 760px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #111218;
  --bg-alt: #181a22;
  --surface: #1c1e28;
  --ink: #ededea;
  --ink-2: #c4c3bd;
  --muted: #8b8a84;
  --line: #2a2c38;
  --line-strong: #363846;
  --accent: #8aa0d8;
  --accent-hover: #a8bbe8;
  --gold: #d4b170;
  --gold-soft: #4a3d22;
  color-scheme: dark;
  --sh-2: 0 2px 6px rgba(0,0,0,.4), 0 10px 24px -12px rgba(0,0,0,.6);
  --sh-3: 0 4px 14px rgba(0,0,0,.5), 0 20px 48px -20px rgba(0,0,0,.8);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11','ss01';
}
body[dir="rtl"] { font-family: var(--f-he); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
::selection { background: var(--gold-soft); color: var(--ink); }

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

/* Typography scale — conservative, readable */
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem); line-height: 1.1; }
h2 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.95rem); line-height: 1.15; }
h3 { font-family: var(--f-sans); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.005em; }
h4 { font-family: var(--f-sans); font-weight: 600; font-size: 0.95rem; }
p { margin: 0 0 0.9em; color: var(--ink-2); }
p.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 56ch; line-height: 1.55; }
p.lede { color: var(--muted); font-size: 0.95rem; }
.accent { color: var(--gold); font-style: italic; font-family: var(--f-serif); font-weight: 500; }

.eyebrow {
  display: inline-block;
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--gold);
  margin-bottom: 14px;
}
/* On sections with photographic backgrounds, wrap the gold eyebrow
   in a white pill so it doesn't get lost against the imagery. */
main > section.alt-kashrut .eyebrow,
main > section.alt-brands .eyebrow {
  padding: 5px 13px;
  border-radius: 999px;
  background: color-mix(in oklab, #fff 88%, transparent);
  border: 1px solid color-mix(in oklab, var(--gold) 55%, transparent);
  box-shadow: 0 1px 3px rgba(15,15,20,.05);
  backdrop-filter: saturate(140%) blur(3px);
  -webkit-backdrop-filter: saturate(140%) blur(3px);
}
[data-theme="dark"] main > section.alt-kashrut .eyebrow,
[data-theme="dark"] main > section.alt-brands .eyebrow {
  background: color-mix(in oklab, #1c1e28 80%, transparent);
  border-color: color-mix(in oklab, var(--gold) 40%, transparent);
}

/* ========== HEADER ========== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 7px 20px; max-width: var(--maxw); margin: 0 auto;
  font-size: 12.5px; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.topbar-left { display: flex; gap: 10px; align-items: center; }
.topbar-left::before { content: "✡︎"; color: var(--gold); }
.topbar-right { display: flex; gap: 12px; align-items: center; }

.lang-switch { display: flex; gap: 1px; }
.lang-switch a {
  padding: 3px 9px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase;
  border-radius: 4px;
}
.lang-switch a.active { background: var(--ink); color: var(--bg); }
.lang-switch a:hover:not(.active) { color: var(--ink); }

.theme-toggle {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
}
.theme-toggle:hover { color: var(--ink); background: var(--bg-alt); }

.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px; padding: 10px 20px; max-width: var(--maxw); margin: 0 auto;
}
.nav-toggle { grid-column: 1; justify-self: start; }
.nav-primary {
  grid-column: 2; justify-self: center;
  display: flex; gap: 2px;
}
.navbar .search-box { grid-column: 3; justify-self: end; }

/* === MASTHEAD — big centered logo+title ABOVE the nav.
      Both the masthead and the nav are sticky. On scroll, the whole
      header gets .is-compact and the masthead smoothly shrinks. === */
.masthead {
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 18px 20px;
  transition: padding .28s ease;
  overflow: hidden;
}
.masthead-link {
  display: flex; align-items: center; gap: 16px;
  transition: opacity .15s ease;
}
.masthead-link:hover { opacity: 0.85; }
.masthead-img {
  width: 92px; height: 92px; flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(15,15,20,.12));
  transition: width .28s ease, height .28s ease;
}
.masthead-text {
  display: flex; flex-direction: column; gap: 4px;
  text-align: start;
}
.masthead-title {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.1rem);
  line-height: 1.05; letter-spacing: -0.015em; color: var(--ink);
  transition: font-size .28s ease;
}
.masthead-sub {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  transition: font-size .28s ease, opacity .2s ease, max-height .28s ease;
  max-height: 20px; opacity: 1;
}

/* Compact state — triggered by JS when user scrolls past threshold */
.site-header.is-compact .masthead { padding: 7px 20px; }
.site-header.is-compact .masthead-img { width: 36px; height: 36px; }
.site-header.is-compact .masthead-title { font-size: 15px; }
.site-header.is-compact .masthead-sub { max-height: 0; opacity: 0; overflow: hidden; }
.site-header.is-compact .masthead-link { gap: 10px; }
.site-header.is-compact .masthead-text { gap: 0; }

@media (max-width: 640px) {
  .masthead { padding: 14px 20px; }
  .masthead-link { gap: 12px; }
  .masthead-img { width: 64px; height: 64px; }
  .masthead-sub { display: none; }
  .site-header.is-compact .masthead-img { width: 32px; height: 32px; }
}
.nav-primary a {
  padding: 8px 14px; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  border-radius: 6px; transition: color .15s, background .15s;
}
.nav-primary a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-primary a[aria-current="page"] {
  color: var(--accent); font-weight: 600;
}

.search-box { position: relative; width: 260px; flex-shrink: 0; }
.search-box input {
  width: 100%; padding: 8px 12px 8px 34px; font: inherit; font-size: 14px;
  background: var(--bg-alt); border: 1px solid transparent;
  border-radius: 999px; color: var(--ink);
  transition: border-color .15s, background .15s;
}
body[dir="rtl"] .search-box input { padding: 8px 34px 8px 12px; }
.search-box::before {
  content: ""; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2370706a' stroke-width='2'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
}
body[dir="rtl"] .search-box::before { left: auto; right: 12px; }
.search-box input:focus {
  outline: none; background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 12%, transparent);
}
#q-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-3);
  max-height: 400px; overflow: auto; z-index: 40; padding: 6px;
}
#q-results a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 6px; align-items: center; }
#q-results a:hover { background: var(--bg-alt); }
#q-results img { width: 32px; height: 32px; border-radius: 4px; object-fit: cover; background: var(--bg-alt); }
#q-results .meta { font-size: 11.5px; color: var(--muted); }

.nav-toggle { display: none; }


/* ========== HERO ========== */
.hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 28%, rgba(248,243,230,0) 58%),
    url('hero-bg.webp');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}
@media (max-width: 820px) {
  .hero {
    background-image:
      linear-gradient(90deg, var(--bg) 0%, var(--bg) 35%, rgba(248,243,230,0) 65%),
      url('hero-bg-1200.webp');
  }
}
body[dir="rtl"] .hero {
  background-image:
    linear-gradient(-90deg, var(--bg) 0%, var(--bg) 28%, rgba(248,243,230,0) 58%),
    url('hero-bg.webp');
  background-position: left center;
}
.hero-inner { max-width: 780px; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  overflow: hidden;
  backdrop-filter: saturate(140%);
}
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } .hero-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.hero-stats > div {
  padding: 18px 14px; text-align: center;
  border-inline-end: 1px solid var(--line);
}
.hero-stats > div:last-child { border-inline-end: 0; }
.hero-stats .n {
  font-family: var(--f-serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 500; color: var(--ink); line-height: 1; margin-bottom: 4px;
}
.hero-stats .l {
  font-size: 11.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 20px; border-radius: 8px;
  font-weight: 500; font-size: 14.5px; letter-spacing: -0.005em;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  border: 1px solid transparent; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-weight: 500; font-size: 13.5px; color: var(--ink-2);
  border-radius: 6px;
}
.btn-ghost:hover { color: var(--ink); background: var(--bg-alt); }
.btn-arrow::after { content: "→"; font-weight: 400; }
body[dir="rtl"] .btn-arrow::after { content: "←"; }

/* ========== SECTIONS ========== */
main > section { padding: clamp(48px, 6vw, 72px) 0; }
main > section + section { border-top: 1px solid var(--line); }
main > section.plain + section { border-top: 0; }
main > section.alt { background-color: var(--bg-alt); }

/* Soft warm tone for intermediate sections — like the categories and levels */
main > section.tone-soft { background-color: var(--bg-soft); }

/* FAQ block on the home page — deep warm oat, closes the page before the dark footer */
main > section.alt-faq {
  background: linear-gradient(180deg, #e6d9b8 0%, #dcca9c 100%);
  border-top: 1px solid var(--line-strong);
}
[data-theme="dark"] main > section.alt-faq {
  background: linear-gradient(180deg, #1d1f29 0%, #181a22 100%);
}

/* Kashrut primer + kashrut index levels — parchment/library mood */
main > section.alt-kashrut {
  background-image:
    linear-gradient(rgba(237,228,205,0.58), rgba(237,228,205,0.58)),
    url('kashrut-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 820px) {
  main > section.alt-kashrut {
    background-image:
      linear-gradient(rgba(237,228,205,0.64), rgba(237,228,205,0.64)),
      url('kashrut-bg-1200.webp');
  }
}
[data-theme="dark"] main > section.alt-kashrut {
  background-image:
    linear-gradient(rgba(24,26,34,0.68), rgba(24,26,34,0.68)),
    url('kashrut-bg.webp');
}

/* Largest suppliers — warm kosher pantry mood */
main > section.alt-brands {
  background-image:
    linear-gradient(rgba(237,228,205,0.62), rgba(237,228,205,0.62)),
    url('brands-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 820px) {
  main > section.alt-brands {
    background-image:
      linear-gradient(rgba(237,228,205,0.68), rgba(237,228,205,0.68)),
      url('brands-bg-1200.webp');
  }
}
[data-theme="dark"] main > section.alt-brands {
  background-image:
    linear-gradient(rgba(24,26,34,0.75), rgba(24,26,34,0.75)),
    url('brands-bg.webp');
}

.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 20px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 0; position: relative; }
.section-head-center {
  text-align: center; max-width: 620px; margin: 0 auto 32px;
}
.section-head-center .eyebrow { display: inline-block; margin-bottom: 14px; }
.section-head-center h2 {
  margin: 0 auto 10px; position: relative;
  display: block; width: fit-content; max-width: 100%;
}
.section-head-center h2::after {
  content: ""; display: block; width: 42px; height: 2px;
  background: var(--gold); margin: 14px auto 0; border-radius: 2px;
}

/* ========== CATEGORY GRID ========== */
.cat-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.cat-card {
  display: flex; gap: 12px; align-items: center;
  padding: 12px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat-card:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--sh-1); }
.cat-card img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.cat-card h3 { font-size: 14.5px; margin: 0 0 2px; line-height: 1.25; }
.cat-card p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ========== LEVELS ========== */
.levels-row {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.level-card {
  display: flex; gap: 12px; align-items: center;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.level-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-1); }
.level-card img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.level-card strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; line-height: 1.3; }
.level-card span { font-size: 12px; color: var(--muted); }

/* ========== BRAND CHIPS ========== */
.brand-chip-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.brand-chip-list a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s;
}
.brand-chip-list a:hover { border-color: var(--line-strong); }
.brand-chip-list img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.brand-chip-list .chip-fallback {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-alt); color: var(--accent); font-weight: 600; font-size: 11.5px;
  flex-shrink: 0;
}
.brand-chip-list .chip-name { flex: 1; font-size: 12.5px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-chip-list em { font-style: normal; font-size: 10.5px; color: var(--muted); padding: 2px 7px; border-radius: 999px; background: var(--bg-alt); }

/* ========== BRAND CARD GRID ========== */
.brand-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.brand-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s;
}
.brand-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-1); }
.brand-card img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.brand-card-fallback {
  width: 44px; height: 44px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 600;
  background: var(--bg-alt); color: var(--accent); font-size: 18px;
  flex-shrink: 0;
}
.brand-card-name { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.brand-card-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ========== PRODUCT CARD ========== */
.product-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.pcard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pcard:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); transform: translateY(-2px); }
.pcard-img {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--bg-alt); overflow: hidden;
}
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.pcard-img .noimage { display: grid; place-items: center; color: var(--muted); font-size: 12.5px; width: 100%; height: 100%; }
.kb {
  position: absolute; top: 8px; inset-inline-start: 8px;
  padding: 3px 8px 3px 6px; font-size: 10.5px; font-weight: 700;
  border-radius: 4px; background: rgba(26,26,32,.88); color: #fff;
  text-transform: uppercase; letter-spacing: 0.06em;
  max-width: calc(100% - 16px); overflow: hidden; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  display: inline-flex; align-items: center; gap: 4px; line-height: 1;
}
.kb > span { overflow: hidden; text-overflow: ellipsis; }
.kb-icon { width: 12px; height: 12px; flex-shrink: 0; }
.kb-parve { background: var(--parve); }
.kb-meat  { background: var(--meat); }
.kb-dairy { background: var(--dairy); }
.kb-pesah { background: var(--pesah); }
.pcard-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-title {
  font-weight: 500; font-size: 13.5px; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-brand { font-size: 11.5px; color: var(--muted); margin-top: auto; }
.pcard-brand:hover { color: var(--accent); }

/* ========== BREADCRUMBS ========== */
.crumbs { padding: 14px 0; font-size: 12.5px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; margin: 0; list-style: none; }
.crumbs li + li::before { content: "/"; padding-inline-end: 5px; color: var(--muted); opacity: .6; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ========== PROSE ========== */
.prose { max-width: 68ch; margin-inline: auto; color: var(--ink-2); font-size: 16.5px; line-height: 1.72; }
.prose > .eyebrow { text-align: center; display: block; width: 100%; }
.prose h1 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem); margin-bottom: 18px; color: var(--ink); text-align: center; }
.prose h1 + .lead { text-align: center; margin-inline: auto; }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); margin: 1.8em 0 .5em; color: var(--ink); }
.prose h3 { font-size: 1.05rem; margin: 1.5em 0 .4em; font-family: var(--f-sans); font-weight: 600; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose blockquote {
  margin: 1.4em 0; padding: 16px 20px;
  background: var(--bg-alt); border-inline-start: 3px solid var(--gold);
  border-radius: var(--r-sm); font-family: var(--f-serif); font-size: 1.05rem; line-height: 1.5;
  color: var(--ink);
}
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.5em 0;
  font-size: 14px;
  background: var(--surface); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line);
}
.prose th, .prose td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-hover); }

/* ========== TAGS ========== */
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.tag.meat { background: color-mix(in oklab, var(--meat) 14%, transparent); color: var(--meat); }
.tag.dairy { background: color-mix(in oklab, var(--dairy) 14%, transparent); color: var(--dairy); }
.tag.parve { background: color-mix(in oklab, var(--parve) 14%, transparent); color: var(--parve); }
.tag.pesah { background: color-mix(in oklab, var(--pesah) 14%, transparent); color: var(--pesah); }

/* ========== ICON TILES ========== */
.icon-tiles {
  display: grid; gap: 12px; margin: 22px 0;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.icon-tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px;
}
.icon-tile .ico {
  font-family: var(--f-serif); font-weight: 500; font-size: 22px;
  width: 40px; height: 40px; border-radius: 8px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--accent) 8%, var(--bg-alt));
  color: var(--accent); margin-bottom: 10px;
}
.icon-tile h3 { font-size: 14px; margin: 0 0 4px; font-weight: 600; }
.icon-tile p { font-size: 12.5px; margin: 0; color: var(--muted); line-height: 1.5; }

/* ========== FAQ ========== */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: border-color .15s;
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  cursor: pointer; padding: 15px 18px;
  font-weight: 500; font-size: 15px; line-height: 1.4;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 20px; color: var(--muted); line-height: 1;
  transition: transform .2s ease; flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--gold); }
.faq-body { padding: 0 18px 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.faq-body p:last-child { margin-bottom: 0; }

/* ========== KASHRUT PRIMER CARDS ========== */
.primer-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.primer-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.primer-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); transform: translateY(-2px); }
.primer-card .primer-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: color-mix(in oklab, var(--accent) 10%, var(--bg-alt));
  color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--f-serif); font-size: 20px; font-weight: 500;
  margin-bottom: 4px;
}
.primer-card h3 { font-family: var(--f-serif); font-weight: 500; font-size: 1.25rem; }
.primer-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-bottom: 4px; }
.primer-card .btn-ghost { align-self: flex-start; padding: 0; color: var(--accent); }
.primer-card .btn-ghost:hover { background: transparent; color: var(--accent-hover); }

/* ========== CTA BAND ========== */
.cta-band {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
  padding: clamp(26px, 3vw, 36px);
  background: var(--accent); color: #f0eade;
  border-radius: var(--r-xl);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 240px at 85% 50%, color-mix(in oklab, var(--gold) 35%, transparent), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band > div:first-child { flex: 1 1 320px; }
.cta-band .eyebrow { color: var(--gold); margin-bottom: 10px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; max-width: 50ch; font-size: 14.5px; }
.cta-band .btn-primary { background: var(--gold); color: #1a1a20; }
.cta-band .btn-primary:hover { background: #fff; }

/* ========== RESTAURANTS ========== */
.rest-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.rest-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.rest-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); }
.rest-card-head h3 { font-family: var(--f-serif); font-weight: 500; font-size: 1.2rem; margin: 0 0 6px; }
.rest-meta { display: flex; gap: 6px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.rest-meta span { padding: 2px 8px; border-radius: 999px; background: var(--bg-alt); }
.rest-card-body { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13.5px; }
.rest-card-body dt { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 2px; }
.rest-card-body dd { margin: 0; color: var(--ink-2); }

/* ========== CONTACTS ========== */
.contact-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
}
.contact-block h3 { font-family: var(--f-serif); font-weight: 500; font-size: 1.3rem; margin: 0 0 14px; }
.contact-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.contact-list a { color: var(--accent); }
.contact-list a:hover { text-decoration: underline; }
.contact-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--bg);
  padding: 10px 12px; border-radius: 8px; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 12%, transparent);
}

/* ========== PRODUCT DETAIL ========== */
.product-wrap {
  display: grid; gap: clamp(24px, 4vw, 40px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 780px) { .product-wrap { grid-template-columns: 1fr; } }
.product-gallery {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.product-gallery img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-info h1 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); margin-bottom: 12px; }
.product-meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; font-size: 12px; border-radius: 4px;
  background: var(--bg-alt); color: var(--muted); font-weight: 500;
}
.meta-pill .kb-icon { width: 14px; height: 14px; flex-shrink: 0; }
.meta-pill a { color: var(--ink); font-weight: 500; }
.meta-pill a:hover { color: var(--accent); }
.meta-pill.mp-parve { background: color-mix(in oklab, var(--parve) 16%, transparent); }
.meta-pill.mp-parve a { color: var(--parve); }
.meta-pill.mp-meat  { background: color-mix(in oklab, var(--meat) 16%, transparent); }
.meta-pill.mp-meat a { color: var(--meat); }
.meta-pill.mp-dairy { background: color-mix(in oklab, var(--dairy) 16%, transparent); }
.meta-pill.mp-dairy a { color: var(--dairy); }
.meta-pill.mp-pesah { background: color-mix(in oklab, var(--pesah) 16%, transparent); }
.meta-pill.mp-pesah a { color: var(--pesah); }
.product-facts {
  margin: 18px 0; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px;
  font-size: 14px;
}
.product-facts dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 3px; }
.product-facts dd { margin: 0; color: var(--ink); }
.product-facts dd a {
  color: var(--ink); text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--accent) 35%, transparent);
  text-underline-offset: 3px; text-decoration-thickness: 1px;
  transition: color .15s, text-decoration-color .15s;
}
.product-facts dd a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ========== SUBCATEGORY CHIPS ========== */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.filters .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; transition: all .15s;
}
.filters .chip:hover { border-color: var(--line-strong); }
.filters .chip em { font-style: normal; font-size: 10.5px; color: var(--muted); }

/* ========== CATEGORY BLOCKS (catalog index) ========== */
.cat-block { margin-bottom: 32px; }
.cat-block h2 { font-family: var(--f-sans); font-weight: 600; font-size: 1.15rem; margin-bottom: 10px; }
.cat-block h2 a { color: var(--ink); }
.cat-block h2 a:hover { color: var(--accent); }
.cat-block h2 em {
  font-style: normal; font-size: 11.5px; color: var(--muted); margin-inline-start: 8px;
  padding: 2px 7px; border-radius: 4px; background: var(--bg-alt);
}
.subcat-list {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 5px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.subcat-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px;
}
.subcat-list li:hover { border-color: var(--line-strong); }
.subcat-list li a { color: var(--ink-2); font-size: 13px; flex: 1; }
.subcat-list li a:hover { color: var(--accent); }
.subcat-list em { font-style: normal; font-size: 11px; color: var(--muted); }

/* ========== FOOTER ========== */
.site-footer {
  background: #13141a; color: rgba(240,236,222,.7);
  padding: clamp(36px, 4vw, 56px) 0 20px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid; gap: clamp(22px, 2vw, 36px);
  grid-template-columns: 1.4fr repeat(3, 1fr);
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; filter: brightness(1.1); }
.footer-brand strong { display: block; font-family: var(--f-serif); font-weight: 500; font-size: 1.15rem; color: #f0ecde; line-height: 1.1; margin-bottom: 2px; }
.footer-brand span { font-size: 12px; color: rgba(240,236,222,.5); }
.footer-col h4 { font-weight: 600; font-size: 12px; color: #f0ecde; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.footer-col a { color: rgba(240,236,222,.65); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 11.5px; color: rgba(240,236,222,.45);
}

/* ========== PAGER ========== */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 32px 0 8px; flex-wrap: wrap; }
.pager a, .pager span {
  padding: 7px 13px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500;
  min-width: 36px; text-align: center;
}
.pager a:hover { border-color: var(--line-strong); background: var(--bg-alt); }
.pager .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager .disabled { color: var(--muted); border-color: var(--line); opacity: 0.55; cursor: not-allowed; }
.pager .ellipsis { border: 0; background: transparent; color: var(--muted); padding: 7px 4px; min-width: 0; }

/* ========== REVEAL ========== */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ========== MOBILE ========== */
@media (max-width: 820px) {
  .navbar {
    grid-template-columns: auto 1fr auto;
    position: relative;
  }
  .nav-primary {
    display: none;
    grid-column: 1 / -1;
    position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; padding: 10px; background: var(--surface);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    justify-content: flex-start;
    z-index: 30;
  }
  .nav-primary.open { display: flex; }
  .nav-primary a { padding: 10px 14px; text-align: start; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 6px;
    border: 1px solid var(--line); background: var(--surface);
    font-size: 13.5px; font-weight: 500;
  }
  .navbar .search-box { width: 180px; grid-column: 3; }
  .hero-stats { margin-top: 28px; }
  .section-head { align-items: start; }
}
@media (max-width: 520px) {
  .search-box { display: none; }
  .navbar { padding: 10px 16px; }
  .topbar { padding: 6px 16px; }
  .topbar-left span:last-child { display: none; }
}

/* Misc */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
