/* ============================================================================
   Lean & Healthy - Recipes
   Shared stylesheet for the recipe hub + recipe pages.
   Matches the storefront design system (Inter, brand greens, slate ink,
   1200px container) and adds recipe-specific components crafted to a high bar.
   ========================================================================== */

:root {
  --green: #16a34a;
  --green-dark: #15803d;
  --green-darker: #166534;
  --green-focus: #22c55e;
  --ink: #0f172a;
  --body: #1e293b;
  --muted: #475569;      /* small text: ~7:1 on white */
  --muted-soft: #64748b; /* large/secondary only */
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --tint: #f0fdf4;
  --tint-2: #ecfdf5;
  --chip-bg: #dcfce7;
  --chip-ink: #166534;
  --amber-bg: #fffbeb;
  --amber-line: #fde68a;
  --amber-ink: #92400e;
  --radius: 14px;
  --shadow-sm: 0 1px 6px rgba(2, 6, 23, 0.05);
  --shadow-md: 0 10px 30px rgba(2, 6, 23, 0.08);
  --shadow-lg: 0 24px 60px rgba(2, 6, 23, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--body); background: #fff; line-height: 1.7;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
main { flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff; padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px; font-weight: 600; z-index: 1000;
}
.skip-link:focus { top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--green-focus); outline-offset: 2px; }

/* ------------------------------ HEADER ---------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.5rem; max-width: 1200px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: 0 0 auto; background: url('/logo-mark.svg') no-repeat center / contain; font-size: 0; color: transparent; }
.logo-amp { color: var(--green-focus); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--green-dark); }
.nav-cta { background: var(--green-dark); color: #fff; padding: 0.55rem 1.3rem; border-radius: 8px; font-weight: 600; font-size: 0.88rem; position: relative; }
.nav-cta:hover { background: var(--green-darker); }
.nav-search {
  flex: 0 1 360px; display: flex; align-items: center;
  background: var(--line-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 0 0.25rem 0 0.75rem; transition: border-color 0.2s, background 0.2s;
}
.nav-search:focus-within { background: #fff; border-color: var(--green-focus); }
.nav-search-input { flex: 1 1 auto; min-width: 0; border: none; background: transparent; outline: none; font-size: 0.9rem; color: var(--ink); padding: 0.55rem 0.25rem; }
.nav-search-input::placeholder { color: #94a3b8; }
.nav-search-btn { border: none; background: none; cursor: pointer; font-size: 1rem; color: var(--muted); padding: 0.35rem 0.45rem; line-height: 1; }
.nav-search-btn:hover { color: var(--green-dark); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: #334155; font-size: 1.5rem; line-height: 1; }
/* basket count pill on the Shop Now CTA */
.cart-count {
  position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px;
  padding: 0 5px; background: #ef4444; color: #fff; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.2s var(--ease-out);
}
.cart-count.show { opacity: 1; transform: scale(1); }

/* ---------------------------- BREADCRUMB -------------------------------- */
.breadcrumb { display: flex; gap: 0.4rem; font-size: 0.82rem; color: var(--muted-soft); flex-wrap: wrap; }
.breadcrumb a { color: var(--green-dark); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: 0.5; }

/* ============================== HUB ===================================== */
.hub-hero { background: linear-gradient(135deg, var(--tint), var(--tint-2)); padding: 3.25rem 0 2.5rem; }
.hub-hero .breadcrumb { justify-content: flex-start; margin-bottom: 1rem; }
.hub-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; color: var(--ink);
  letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; max-width: 22ch;
}
.hub-hero .hub-tagline { margin-top: 0.55rem; font-size: 1.15rem; font-weight: 600; color: var(--green-dark); max-width: 46ch; }
.hub-hero p { margin-top: 0.9rem; font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.hub-hero .lead-note { margin-top: 0.65rem; font-size: 0.9rem; color: var(--muted-soft); max-width: 62ch; }

/* Filter bar */
.filters { position: sticky; top: 64px; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.filters-inner { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.filter-group { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.filter-group > .fg-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-soft); }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s var(--ease-out);
}
.chip:hover { border-color: var(--green-focus); color: var(--green-dark); }
.chip[aria-pressed="true"] { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.chip:active { transform: translateY(1px); }
.chip-count { font-weight: 600; opacity: 0.65; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip-count { opacity: 0.85; }
.chip--empty { opacity: 0.4; }
.chip--empty:hover { border-color: var(--line); color: var(--muted); }

.results-meta { max-width: 1200px; margin: 1.5rem auto 0; padding: 0 1.5rem; font-size: 0.9rem; color: var(--muted-soft); }

/* Card grid */
.recipe-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem;
  max-width: 1200px; margin: 1.25rem auto 0; padding: 0 1.5rem 4rem;
}
.r-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.2s;
}
.r-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.r-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line-soft); }
.r-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.r-card:hover .r-card__media img { transform: scale(1.05); }
.r-card__course { position: absolute; top: 0.75rem; left: 0.75rem; background: rgba(15,23,42,0.82); color: #fff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.28rem 0.6rem; border-radius: 999px; backdrop-filter: blur(4px); }
.r-card__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.15rem 1.15rem 1.3rem; flex: 1; }
.r-card__title { font-size: 1.12rem; font-weight: 800; color: var(--ink); line-height: 1.28; letter-spacing: -0.01em; text-wrap: balance; }
.r-card__desc { font-size: 0.88rem; color: var(--muted); line-height: 1.55; flex: 1; }
.r-card__foot { display: flex; align-items: center; gap: 0.9rem; font-size: 0.8rem; color: var(--muted-soft); }
.r-card__foot .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }

/* Diet pills */
.diet-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.diet-pill { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; letter-spacing: 0.01em; }
.diet-vegetarian { background: var(--chip-bg); color: var(--chip-ink); }
.diet-vegan { background: #ccfbf1; color: #115e59; }
.diet-low_insulin { background: #f3e8ff; color: #6b21a8; }

/* ============================ RECIPE PAGE =============================== */
.r-hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; }
.r-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.r-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(2,6,23,0.86) 0%, rgba(2,6,23,0.45) 42%, rgba(2,6,23,0.12) 100%); }
.r-hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.r-hero .breadcrumb { color: rgba(255,255,255,0.85); margin-bottom: 1rem; }
.r-hero .breadcrumb a { color: #fff; }
.r-hero__pills { margin-bottom: 0.85rem; }
.r-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; max-width: 20ch; text-shadow: 0 2px 20px rgba(0,0,0,0.35); }

.r-hero__credit { position: absolute; right: 0.85rem; bottom: 0.55rem; z-index: 2; margin: 0; font-size: 0.68rem; line-height: 1.3; color: rgba(255,255,255,0.62); text-align: right; max-width: 60%; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.r-hero__credit a { color: rgba(255,255,255,0.82); text-decoration: none; }
.r-hero__credit a:hover { color: #fff; text-decoration: underline; }

.meta-row { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 1.4rem; }
.meta-item { display: flex; flex-direction: column; gap: 0.1rem; }
.meta-item .k { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.72); }
.meta-item .v { font-size: 1.05rem; font-weight: 700; color: #fff; }

/* Body */
.r-intro { max-width: 760px; margin: 2.5rem auto 0; padding: 0 1.5rem; }
.r-intro p { font-size: 1.12rem; line-height: 1.75; color: var(--muted); text-wrap: pretty; }

.r-layout { display: grid; grid-template-columns: minmax(0, 1fr) 1.35fr; gap: 3rem; max-width: 1120px; margin: 2.75rem auto 0; padding: 0 1.5rem; align-items: start; }
.col-ingredients { position: sticky; top: 88px; }

.panel-title { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.panel-sub { font-size: 0.86rem; color: var(--muted-soft); margin-bottom: 1.1rem; }

/* Ingredients */
.ing-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ing-list { display: flex; flex-direction: column; }
.ing { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line-soft); }
.ing:not(.is-local) { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.85rem; row-gap: 0.5rem; }
.ing:last-child { border-bottom: none; }
.ing__check { flex-shrink: 0; width: 20px; height: 20px; accent-color: var(--green); cursor: pointer; }
/* clickable product area -> opens the shop product modal */
.ing__product { display: flex; align-items: center; gap: 0.85rem; width: 100%; min-width: 0; text-align: left; background: none; border: none; color: inherit; font: inherit; cursor: pointer; padding: 0.35rem 0.45rem; margin: -0.35rem -0.15rem; border-radius: 10px; transition: background 0.15s; }
.ing__product:hover { background: var(--tint); }
.ing__product:hover .ing__meta { color: var(--green-dark); }
.ing__thumb { flex-shrink: 0; width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: var(--line-soft); border: 1px solid var(--line); }
.ing__thumb.is-local { display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--muted-soft); border-style: dashed; }
.ing__text { flex: 1; min-width: 0; }
.ing__name { font-size: 0.92rem; color: var(--ink); font-weight: 600; line-height: 1.35; }
.ing__name .qty { color: var(--muted); font-weight: 700; }
.ing__meta { font-size: 0.76rem; color: var(--muted); margin-top: 0.1rem; transition: color 0.15s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ing__price { flex-shrink: 0; font-size: 0.9rem; font-weight: 700; color: var(--green-dark); }
.ing__local-tag { flex-shrink: 0; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-soft); background: var(--line-soft); padding: 0.25rem 0.55rem; border-radius: 999px; }
.ing.is-local .ing__name { font-weight: 500; color: var(--muted); }

/* "See alternatives" - swap which equivalent product is added to the basket */
.ing__alts-wrap { grid-column: 1 / -1; }
.ing__alts-toggle { background: none; border: none; color: var(--green-dark); font-weight: 600; font-size: 0.8rem; cursor: pointer; padding: 0.15rem 0.1rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.ing__alts-toggle::after { content: '\25be'; font-size: 0.8em; transition: transform 0.2s var(--ease-out); }
.ing__alts-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.ing__alts-toggle:hover { text-decoration: underline; }
.ing__alts { margin-top: 0.5rem; background: var(--line-soft); border: 1px solid var(--line); border-radius: 10px; padding: 0.65rem; }
.ing__alts-h { font-size: 0.76rem; color: var(--muted); margin: 0 0 0.5rem; line-height: 1.4; }
.alt-list { display: flex; flex-direction: column; gap: 0.3rem; list-style: none; margin: 0; padding: 0; }
.alt { display: flex; align-items: center; gap: 0.55rem; padding: 0.35rem 0.45rem; border-radius: 8px; border: 1px solid transparent; background: #fff; }
.alt:has(.alt__radio:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.alt__radio { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; }
.alt__label { flex: 1; display: flex; align-items: center; gap: 0.55rem; min-width: 0; cursor: pointer; margin: 0; }
.alt__thumb { flex-shrink: 0; width: 34px; height: 34px; border-radius: 7px; object-fit: cover; border: 1px solid var(--line); background: var(--line-soft); }
.alt__text { flex: 1; min-width: 0; }
.alt__title { display: block; font-size: 0.82rem; color: var(--ink); font-weight: 600; line-height: 1.3; }
.alt__brand { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.05rem; }
.alt__price { flex-shrink: 0; font-size: 0.82rem; font-weight: 700; color: var(--green-dark); white-space: nowrap; }
.alt__tag { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: #fff; background: var(--green-dark); padding: 0.05rem 0.35rem; border-radius: 999px; margin-left: 0.3rem; vertical-align: middle; }
.alt__view { flex-shrink: 0; background: #fff; border: 1px solid var(--line); color: var(--green-dark); font-size: 0.72rem; font-weight: 600; padding: 0.28rem 0.55rem; border-radius: 7px; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.alt__view:hover { border-color: var(--green-focus); color: var(--green-darker); }

.ing-actions { padding: 1.1rem; background: var(--tint); border-top: 1px solid var(--line); }
.btn-addall {
  width: 100%; border: none; background: var(--green-dark); color: #fff; cursor: pointer;
  padding: 0.9rem 1rem; border-radius: 10px; font-size: 0.98rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: background 0.18s, transform 0.12s var(--ease-out);
}
.btn-addall:hover { background: var(--green-darker); }
.btn-addall:active { transform: translateY(1px); }
.ing-actions__note { margin-top: 0.7rem; font-size: 0.78rem; color: var(--muted); line-height: 1.5; text-align: center; }
.ing-actions__note a { color: var(--green-dark); font-weight: 600; text-decoration: underline; }

/* Method */
.method-list { display: flex; flex-direction: column; gap: 1.4rem; counter-reset: step; }
.method-step { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start; }
.method-step__num {
  counter-increment: step; width: 40px; height: 40px; border-radius: 50%;
  background: var(--tint); color: var(--green-darker); border: 1px solid #bbf7d0;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem;
}
.method-step__num::before { content: counter(step); }
.method-step p { font-size: 1rem; color: var(--body); line-height: 1.7; padding-top: 0.35rem; }

/* Nutrition */
.nutrition { max-width: 1120px; margin: 3rem auto 0; padding: 0 1.5rem; }
.nutrition-inner { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.nutrition h2 { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 0.25rem; }
.nutrition .sub { font-size: 0.8rem; color: var(--muted-soft); margin-bottom: 1.1rem; }
.nutrition-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.nut { text-align: center; padding: 0.5rem; border-radius: 10px; background: var(--tint); }
.nut .v { font-size: 1.4rem; font-weight: 800; color: var(--ink); line-height: 1; }
.nut .k { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 0.4rem; }

/* Tip - full border + tint + icon (no side-stripe) */
.tip { max-width: 1120px; margin: 1.75rem auto 0; padding: 0 1.5rem; }
.tip-inner { display: flex; gap: 1rem; align-items: flex-start; background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.tip-ico { flex-shrink: 0; font-size: 1.3rem; line-height: 1.4; }
.tip-body h3 { font-size: 0.95rem; font-weight: 800; color: var(--amber-ink); margin-bottom: 0.2rem; }
.tip-body p { font-size: 0.94rem; color: #78350f; line-height: 1.65; }

/* Related */
.related { max-width: 1200px; margin: 4rem auto 0; padding: 0 1.5rem 1rem; }
.related h2 { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 1.4rem; text-wrap: balance; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }

/* Disclaimer */
.r-disclaimer { max-width: 1120px; margin: 3rem auto 0; padding: 0 1.5rem; }
.r-disclaimer p { font-size: 0.82rem; color: var(--muted-soft); line-height: 1.6; border-top: 1px solid var(--line-soft); padding-top: 1.5rem; }

/* ------------------------- MINI BASKET BAR ------------------------------ */
.mini-basket {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 150%);
  z-index: 90; display: flex; align-items: center; gap: 1rem;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 0.75rem 0.85rem 0.75rem 1.25rem;
  box-shadow: var(--shadow-lg); transition: transform 0.4s var(--ease-out); max-width: calc(100vw - 2rem);
}
.mini-basket.show { transform: translate(-50%, 0); }
.mini-basket__info { display: flex; flex-direction: column; line-height: 1.25; }
.mini-basket__count { font-size: 0.78rem; color: #cbd5e1; }
.mini-basket__total { font-size: 1.05rem; font-weight: 800; }
.mini-basket__cta { background: var(--green-focus); color: #052e16; font-weight: 800; padding: 0.6rem 1.1rem; border-radius: 10px; font-size: 0.9rem; white-space: nowrap; transition: background 0.18s; }
.mini-basket__cta:hover { background: #4ade80; }

/* ------------------------------ TOAST ----------------------------------- */
.toast-wrap { position: fixed; bottom: 5.5rem; left: 50%; transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; pointer-events: none; }
.toast {
  background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  border-radius: 12px; padding: 0.7rem 1.1rem; font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.55rem; opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast .tick { color: var(--green); font-weight: 900; }

/* ------------------------------ FOOTER ---------------------------------- */
.footer { background: var(--ink); color: #94a3b8; padding: 3rem 0 1.5rem; }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.ft-brand p { font-size: 0.85rem; color: var(--muted-soft); line-height: 1.7; margin-top: 0.75rem; max-width: 280px; }
.ft-brand .logo { color: #e2e8f0; font-size: 1.25rem; }
.footer h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #e2e8f0; margin-bottom: 0.9rem; }
.ft-links li { margin-bottom: 0.5rem; }
.ft-links a { font-size: 0.85rem; color: var(--muted-soft); transition: color 0.2s; }
.ft-links a:hover { color: var(--green-focus); }
.ft-bottom { border-top: 1px solid #1e293b; padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; gap: 0.5rem; }

/* ------------------------------ MOTION ---------------------------------- */
/* Cards ease in on load - a single legitimate list cascade, no JS, no
   visibility gating (base state is fully visible; animation only enhances). */
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.recipe-grid .r-card, .related-grid .r-card { animation: cardIn 0.55s var(--ease-out) both; }
.recipe-grid .r-card:nth-child(2) { animation-delay: 0.05s; }
.recipe-grid .r-card:nth-child(3) { animation-delay: 0.10s; }
.recipe-grid .r-card:nth-child(4) { animation-delay: 0.15s; }
.recipe-grid .r-card:nth-child(5) { animation-delay: 0.20s; }
.recipe-grid .r-card:nth-child(6) { animation-delay: 0.25s; }
.related-grid .r-card:nth-child(2) { animation-delay: 0.06s; }
.related-grid .r-card:nth-child(3) { animation-delay: 0.12s; }

/* --------------------------- RESPONSIVE --------------------------------- */
@media (max-width: 900px) {
  .r-layout { grid-template-columns: 1fr; gap: 2.25rem; }
  .col-ingredients { position: static; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-search { flex: 1 1 auto; min-width: 0; margin: 0 0.5rem; }
  .nav-cta { display: none; }
  .nav { gap: 0.75rem; }
  .logo { font-size: 1.15rem; }
  .header-inner { padding-left: 1rem; padding-right: 1rem; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem 1.5rem; gap: 0.75rem; border-bottom: 1px solid var(--line-soft); }
  .filters { top: 60px; }
  .r-hero { min-height: 380px; }
  .meta-row { gap: 1.1rem 1.75rem; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .ft-bottom { flex-direction: column; text-align: center; }
  .mini-basket { left: 1rem; right: 1rem; transform: translateY(150%); max-width: none; }
  .mini-basket.show { transform: translateY(0); }
}
@media (max-width: 560px) {
  .nutrition-grid { grid-template-columns: repeat(3, 1fr); }
  .ft-grid { grid-template-columns: 1fr; }
  .r-hero h1 { font-size: 1.9rem; }
  .ing__thumb { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .r-card { animation: none !important; }
  .r-card:hover { transform: none; }
  .r-card:hover .r-card__media img { transform: none; }
}
