/* =========================================================================
   DUCK RECIPE -- design system
   Art direction: warm editorial / magazine kitchen journal.
   Type pairing: Fraunces (display serif, headlines) + Inter (body/UI sans).
   Palette: terracotta oxide + warm cream + deep ink + sage + gold accent.
   ========================================================================= */

:root {
  --cream:      #FBF6EE;
  --cream-2:    #F3EADA;
  --ink:        #241E19;
  --ink-soft:   #5B5148;
  --terracotta: #B34A2E;
  --terracotta-dark: #8C3620;
  --sage:       #6B8F71;
  --sage-dark:  #4F6B54;
  --gold:       #C99A3E;
  --line:       #E4D9C6;
  --white:      #FFFFFF;
  --danger:     #A23B2E;
  --success:    #4F6B54;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(36,30,25,0.08);
  --shadow-md: 0 8px 24px rgba(36,30,25,0.10);
  --shadow-lg: 0 20px 50px rgba(36,30,25,0.16);
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100vw; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { color: var(--ink-soft); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--cream); overflow: hidden; white-space: nowrap; font-size: 0.8rem; letter-spacing: 0.02em; }
.marquee-track { display: inline-block; padding: 7px 0; animation: marquee 28s linear infinite; }
.marquee-track span { margin: 0 14px; opacity: 0.9; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251,246,238,0.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--terracotta); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.main-nav { display: flex; gap: 6px; align-items: center; flex: 1; }
.main-nav > a, .nav-drop > a { padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.94rem; }
.main-nav > a:hover, .nav-drop > a:hover, .main-nav > a.active, .nav-drop > a.active { background: var(--cream-2); color: var(--terracotta-dark); }
.nav-drop { position: relative; }
.nav-drop-panel { position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 10px; min-width: 220px; display: none; flex-direction: column; gap: 2px; }
.nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel { display: flex; }
.nav-drop-panel a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.nav-drop-panel a:hover { background: var(--cream-2); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.icon-btn:hover { background: var(--cream-2); }
.cart-badge { position: absolute; top: 2px; right: 2px; background: var(--terracotta); color: #fff; font-size: 0.62rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 50%; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: none; border: 0; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); display: block; }

/* ---------- Flash ---------- */
.flash { padding: 12px 0; }
.flash-inner { max-width: var(--maxw); margin: 0 auto; padding: 10px 24px; }
.flash-success .flash-inner { background: #EAF1EA; color: var(--sage-dark); border-radius: var(--radius-sm); }
.flash-error .flash-inner { background: #F6E7E3; color: var(--danger); border-radius: var(--radius-sm); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-icon { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.badge-free { background: #EAF1EA; color: var(--sage-dark); }
.badge-premium { background: #2C231C; color: var(--gold); }
.badge-instock { background: #EAF1EA; color: var(--sage-dark); }
.badge-outstock { background: #F1E5DE; color: var(--terracotta-dark); }
.badge-tag { background: var(--cream-2); color: var(--ink-soft); }

/* ---------- Sections / layout patterns ---------- */
section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-header { max-width: 640px; margin-bottom: 36px; }
.section-header .eyebrow { color: var(--terracotta); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.bg-cream2 { background: var(--cream-2); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-ink h2, .bg-ink h3 { color: var(--cream); }
.bg-ink p { color: #D9CFC2; }

/* Hero A: split image-right, editorial */
.hero-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-split .hero-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-split .hero-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* Hero B: full-bleed banner with bottom-anchored panel */
.hero-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); }
.hero-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,15,10,0.78) 0%, rgba(20,15,10,0.15) 65%, rgba(20,15,10,0) 100%); }
.hero-banner-content { position: relative; z-index: 1; padding: 40px; color: #fff; max-width: 640px; }
.hero-banner-content h1, .hero-banner-content h2 { color: #fff; }
.hero-banner-content p { color: #EBE2D6; }

/* Hero C: centered statement + stat row */
.hero-center { text-align: center; max-width: 760px; margin: 0 auto; }
.stat-row { display: flex; justify-content: center; gap: 48px; margin-top: 32px; flex-wrap: wrap; }
.stat-row .stat b { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--terracotta); }
.stat-row .stat span { font-size: 0.85rem; color: var(--ink-soft); }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- Recipe card ---------- */
.recipe-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.15s, transform 0.15s; display: flex; flex-direction: column; }
.recipe-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.recipe-card .rc-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.recipe-card .rc-media img { width: 100%; height: 100%; object-fit: cover; }
.recipe-card .rc-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.recipe-card .rc-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.recipe-card h3 { font-size: 1.05rem; }
.rc-meta { display: flex; gap: 12px; font-size: 0.78rem; color: var(--ink-soft); flex-wrap: wrap; }
.rc-cat-pill { display: inline-block; font-size: 0.7rem; font-weight: 700; color: var(--sage-dark); text-transform: uppercase; letter-spacing: 0.03em; }
.stars { color: var(--gold); letter-spacing: 1px; }

/* Row-style recipe list (alternate layout, used on category pages) */
.recipe-row { display: flex; gap: 20px; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.recipe-row .rr-media { width: 220px; flex-shrink: 0; aspect-ratio: 4/3; }
.recipe-row .rr-media img { width: 100%; height: 100%; object-fit: cover; }
.recipe-row .rr-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Product card ---------- */
.product-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-md); }
.product-card .pc-media { position: relative; aspect-ratio: 1/1; background: var(--cream-2); }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--terracotta-dark); }
.pc-sku { font-size: 0.72rem; color: var(--ink-soft); }

/* ---------- Blog card ---------- */
.blog-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.blog-card .bc-media { aspect-ratio: 16/10; }
.blog-card .bc-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .bc-body { padding: 18px; }
.bc-meta { font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 6px; }

/* Featured blog (large, alternate layout) */
.blog-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.blog-feature .bf-media { aspect-ratio: 4/3; }
.blog-feature .bf-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-feature .bf-body { padding: 32px; }

/* ---------- Team / job cards ---------- */
.team-card { text-align: center; }
.team-card .tc-media { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; box-shadow: var(--shadow-md); }
.team-card .tc-media img { width: 100%; height: 100%; object-fit: cover; }
.team-card .tc-role { color: var(--terracotta-dark); font-weight: 600; font-size: 0.85rem; margin-bottom: 8px; }
.job-card { background: var(--white); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.job-meta { display: flex; gap: 10px; font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- Recipe detail ---------- */
.recipe-detail-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.recipe-detail-top .rd-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.recipe-detail-top .rd-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.rd-meta-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.rd-meta-tile { background: var(--cream-2); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.rd-meta-tile b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.rd-meta-tile span { font-size: 0.7rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; }
.highlight-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.highlight-list li { display: flex; gap: 10px; align-items: flex-start; }
.highlight-list li::before { content: '\2726'; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.recipe-body-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 48px; margin-top: 48px; align-items: start; }
.ingredient-list { display: flex; flex-direction: column; gap: 2px; background: var(--white); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.ingredient-list li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.94rem; }
.ingredient-list li:last-child { border-bottom: none; }
.ingredient-list input[type=checkbox] { margin-top: 3px; accent-color: var(--sage); }
.step-list { counter-reset: step; display: flex; flex-direction: column; gap: 22px; }
.step-list li { display: flex; gap: 18px; }
.step-list li::before { counter-increment: step; content: counter(step); flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--terracotta); color: #fff; font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tip-box { background: var(--cream-2); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 16px 18px; margin-top: 14px; }
.nutrition-panel { background: var(--ink); color: var(--cream); border-radius: var(--radius-md); padding: 22px; margin-top: 32px; }
.nutrition-panel h3 { color: var(--cream); }
.nutrition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.nutrition-grid div b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); }
.nutrition-grid div span { font-size: 0.72rem; color: #C9BFB1; text-transform: uppercase; }
.est-note { font-size: 0.72rem; color: #B7ABA0; margin-top: 10px; }

/* Paywall block */
.paywall { background: var(--white); border: 2px dashed var(--terracotta); border-radius: var(--radius-lg); padding: 32px; text-align: center; margin-top: 24px; }
.paywall .lock-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--cream-2); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.paywall-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.blurred-line { filter: blur(4px); user-select: none; opacity: 0.6; }

/* ---------- Product detail ---------- */
.product-detail-top { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.pd-media { border-radius: var(--radius-lg); overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow-lg); }
.pd-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pd-price-row { display: flex; align-items: center; gap: 16px; margin: 14px 0; }
.pd-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--terracotta-dark); }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-input button { width: 36px; height: 36px; background: var(--cream-2); border: 0; font-size: 1.1rem; cursor: pointer; }
.qty-input input { width: 44px; text-align: center; border: 0; background: transparent; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table td { padding: 10px 4px; font-size: 0.92rem; }
.spec-table td:first-child { color: var(--ink-soft); width: 40%; font-weight: 600; }
.feature-list li { display: flex; gap: 10px; padding: 6px 0; align-items: flex-start; }
.feature-list li::before { content: '\2713'; color: var(--sage-dark); font-weight: 700; flex-shrink: 0; }

/* ---------- Tabs (product / recipe detail secondary content) ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin: 28px 0 18px; flex-wrap: wrap; }
.tab-btn { padding: 10px 18px; font-weight: 700; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -2px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.tab-btn.active { color: var(--terracotta-dark); border-bottom-color: var(--terracotta); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Cart / Checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-line-media { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-2); }
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-summary { background: var(--white); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.94rem; }
.summary-row.total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 40px; align-items: start; }
.stepper { display: flex; gap: 8px; margin-bottom: 24px; }
.stepper span { flex: 1; height: 4px; background: var(--line); border-radius: 4px; }
.stepper span.done { background: var(--sage); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--terracotta); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }
.form-error { color: var(--danger); font-size: 0.82rem; margin-top: 4px; }
.auth-card { max-width: 440px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }

/* ---------- Pricing (membership) ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 0 auto; }
.price-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); text-align: center; border: 2px solid transparent; color: var(--ink); }
.price-card h3 { color: var(--ink); }
.price-card .amount { color: var(--ink); }
.price-card ul li { color: var(--ink); }
.price-card.featured { border-color: var(--terracotta); box-shadow: var(--shadow-lg); position: relative; }
.price-card.featured::before { content: 'BEST VALUE'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--terracotta); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; letter-spacing: 0.05em; }
.price-card .amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; margin: 12px 0; }
.price-card .amount span { font-size: 1rem; color: var(--ink-soft); font-family: var(--font-body); font-weight: 400; }
.price-card ul { text-align: left; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.price-card ul li { display: flex; gap: 10px; }
.price-card ul li::before { content: '\2713'; color: var(--sage-dark); font-weight: 700; }

/* ---------- Accordion (FAQ) ---------- */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-q { width: 100%; text-align: left; padding: 18px 4px; background: none; border: 0; font-weight: 700; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.accordion-q::after { content: '+'; font-size: 1.4rem; color: var(--terracotta); }
.accordion-item.open .accordion-q::after { content: '\2212'; }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.accordion-item.open .accordion-a { max-height: 600px; }
.accordion-a-inner { padding: 0 4px 18px; }

/* ---------- Misc content blocks ---------- */
.breadcrumbs { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--terracotta); text-decoration: underline; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem; }
.pagination a:hover { background: var(--cream-2); }
.pagination .current { background: var(--terracotta); color: #fff; }
.filter-bar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; background: var(--white); padding: 16px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: 32px; }
.filter-bar select, .filter-bar input[type=text] { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.timeline { display: flex; flex-direction: column; gap: 28px; border-left: 3px solid var(--line); padding-left: 28px; }
.timeline-item b { display: block; color: var(--terracotta-dark); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--white); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); }
.value-card .num { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); }
.legal-doc h2 { margin-top: 34px; margin-bottom: 12px; }
.legal-doc p, .legal-doc li { margin-bottom: 12px; }
.legal-doc ul { list-style: disc; padding-left: 22px; }
.legal-doc .updated { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 24px; }
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); font-size: 0.9rem; animation: toast-in 0.2s ease; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9CFC2; margin-top: 80px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-col h4 { color: var(--cream); font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-brand p { color: #D9CFC2; }
.footer-brand .brand-mark { margin-bottom: 10px; }
.footer-tagline { font-style: italic; margin: 4px 0 14px; }
.footer-addr { font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 18px; font-size: 0.8rem; color: #A79C8F; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 200; }
.cookie-banner-inner { display: flex; gap: 16px; align-items: center; padding: 16px 20px; flex-wrap: wrap; }
.cookie-banner-inner p { font-size: 0.85rem; flex: 1; min-width: 220px; }

/* ---------- Search ---------- */
.search-hero-box { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; }
.search-hero-box input { flex: 1; padding: 16px 20px; border-radius: 999px; border: 1px solid var(--line); font-size: 1rem; }
.search-hero-box button { border-radius: 999px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .hero-split, .recipe-detail-top, .recipe-body-grid, .product-detail-top, .checkout-grid { grid-template-columns: 1fr; }
  .ingredient-list { position: static; }
  .cart-summary { position: static; }
  .value-grid, .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .main-nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .main-nav.open .nav-drop-panel { display: flex; position: static; box-shadow: none; border: 0; padding-left: 14px; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .recipe-row { flex-direction: column; }
  .recipe-row .rr-media { width: 100%; }
  .rd-meta-tiles { grid-template-columns: repeat(2, 1fr); }
  .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-feature { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-header-inner { gap: 10px; }
  .brand-name { display: none; }
  .stat-row { gap: 24px; }
}
