/* Simply Gourmet -- single stylesheet (ASCII only) */

:root {
  --primary: #1F4E3D;
  --primary-dark: #143324;
  --primary-light: #2C6E54;
  --accent: #C9A961;
  --accent-dark: #A8893E;
  --cream: #FAF7F0;
  --paper: #FFFCF5;
  --ink: #1F2A26;
  --muted: #6B7570;
  --line: #E5E0D2;
  --tomato: #C0392B;
  --olive: #84A14B;
  --gold: #D4AF37;
  --shadow-sm: 0 2px 6px rgba(20, 51, 36, 0.08);
  --shadow: 0 8px 24px rgba(20, 51, 36, 0.12);
  --shadow-lg: 0 18px 48px rgba(20, 51, 36, 0.18);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; height: auto; display: block; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-dark); }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--primary-dark);
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent-dark);
  margin-bottom: .5rem;
}

/* ---------- Layout ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 36px; }

.divider { height: 1px; background: var(--line); margin: 24px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); color: #fff; }
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--primary); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  max-width: 1340px; margin: 0 auto;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: grid; place-items: center;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.45rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; bottom: 6px; left: 8px; right: 8px;
  height: 4px; border-radius: 4px;
  background: var(--accent);
  opacity: .85;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--serif); font-size: 1.4rem; color: var(--primary-dark); font-weight: 700; line-height: 1;
}
.brand-tag {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-dark); margin-top: 3px;
}
.nav-links {
  display: flex; gap: 28px; list-style: none; align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  position: relative; padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--primary-dark);
  transition: background .15s, transform .15s;
}
.cart-btn:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-1px); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--tomato); color: #fff;
  border-radius: 999px;
  font-size: .7rem; font-weight: 700;
  min-width: 20px; height: 20px;
  display: grid; place-items: center;
  padding: 0 5px;
  box-shadow: 0 2px 6px rgba(192,57,43,.4);
}
.hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform .2s; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; top: 0; right: -100%; bottom: 0;
  width: min(360px, 86%);
  background: var(--paper);
  z-index: 200;
  padding: 28px 28px 40px;
  overflow-y: auto;
  transition: right .3s ease;
  box-shadow: -10px 0 36px rgba(20,51,36,.18);
}
.mobile-drawer.open { right: 0; }
.mobile-drawer .drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.drawer-close {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream); display: grid; place-items: center;
  font-size: 1.4rem; color: var(--primary-dark);
}
.mobile-links { list-style: none; display: flex; flex-direction: column; }
.mobile-links a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 1.05rem;
}
.mobile-links a:hover { color: var(--primary); }
.drawer-cta { margin-top: 24px; }
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(20,51,36,.38);
  z-index: 150; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  background: var(--primary-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: -2;
  filter: saturate(1.05) contrast(1.02);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,51,36,.30) 0%, rgba(20,51,36,.78) 100%);
  z-index: -1;
}
.hero-content {
  max-width: 720px;
  padding: 100px 32px;
  color: #fff;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p {
  color: rgba(255,255,255,.94);
  font-size: 1.15rem;
  margin-bottom: 28px;
}
.hero .eyebrow { color: var(--accent); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 28px; margin-top: 36px;
  color: rgba(255,255,255,.84); font-size: .85rem;
  flex-wrap: wrap;
}
.hero-meta span strong { display: block; color: var(--accent); font-size: 1.5rem; font-family: var(--serif); }

.hero-sm {
  position: relative;
  background: var(--primary-dark);
  color: #fff;
  padding: 80px 0;
  isolation: isolate; overflow: hidden;
}
.hero-sm .hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .55; }
.hero-sm::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,51,36,.6) 0%, rgba(20,51,36,.85) 100%);
}
.hero-sm h1 { color: #fff; }
.hero-sm p { color: rgba(255,255,255,.88); }
.hero-sm .container { text-align: center; }

/* ---------- Cards ---------- */
.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); }

.card {
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.2rem; margin-bottom: 6px; }
.card-desc { font-size: .92rem; color: var(--muted); margin-bottom: 12px; flex: 1; }
.card-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: .8rem; color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }

.card-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.94);
  color: var(--primary-dark);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 10px;
  border-radius: 999px;
  z-index: 2;
}
.lock-badge {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tomato) 0%, #8E261C 100%);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(192,57,43,.45);
  z-index: 2;
}
.lock-badge svg { width: 18px; height: 18px; }

/* Rating */
.rating-stars { display: inline-flex; align-items: center; gap: 2px; color: var(--accent-dark); font-size: .9rem; }
.rating-stars .star { color: var(--accent); }
.rating-stars .star.empty { color: rgba(201, 169, 97, 0.3); }
.rating-num { color: var(--muted); font-size: .8rem; margin-left: 6px; font-weight: 600; }

/* Categories */
.categories-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-tile {
  position: relative; aspect-ratio: 1 / 1;
  border-radius: 18px; overflow: hidden;
  display: block; isolation: isolate;
  text-decoration: none;
  transition: transform .2s;
}
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,51,36,0) 30%, rgba(20,51,36,.85) 100%);
}
.cat-tile-title {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  color: #fff; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; z-index: 2;
}
.cat-tile-count {
  position: absolute; right: 14px; top: 14px;
  background: var(--accent); color: var(--primary-dark);
  font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; z-index: 2;
}

/* ---------- Photo-mosaic ---------- */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px;
  gap: 14px;
}
.photo-mosaic .tile { border-radius: 14px; overflow: hidden; background: var(--cream); position: relative; }
.photo-mosaic .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photo-mosaic .tile:hover img { transform: scale(1.06); }
.photo-mosaic .tile.tall { grid-row: span 2; }

/* ---------- Photo-strip ---------- */
.photo-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.photo-strip .tile { border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; }
.photo-strip .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photo-strip .tile:hover img { transform: scale(1.05); }

/* ---------- Recipe gallery ---------- */
.recipe-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 24px 0 8px;
}
.recipe-gallery .tile { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.recipe-gallery .tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Recipe Detail ---------- */
.recipe-hero {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  padding: 56px 0 24px;
  align-items: center;
}
.recipe-hero-img { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.recipe-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.recipe-hero-text h1 { margin: 8px 0 14px; }
.meta-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.meta-tile {
  background: var(--paper); padding: 14px 12px; border-radius: 14px;
  text-align: center; border: 1px solid var(--line);
}
.meta-tile .label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.meta-tile .val { font-family: var(--serif); font-size: 1.1rem; color: var(--primary-dark); margin-top: 4px; font-weight: 600; }

.member-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  margin-left: 10px;
  vertical-align: middle;
}
.member-pill.premium { background: var(--tomato); color: #fff; }
.member-pill.free    { background: var(--olive); color: #fff; }

.recipe-body { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; padding-top: 12px; padding-bottom: 60px; }
.ingredient-card {
  background: var(--paper); padding: 24px 24px 28px; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  position: sticky; top: 96px;
}
.ingredient-card h3 { margin-bottom: 10px; }
.ingredient-list { list-style: none; padding: 0; }
.ingredient-list li {
  padding: 10px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.ingredient-list li::before {
  content: "*"; color: var(--accent); font-size: 1.2rem; line-height: 1;
}
.steps-list { counter-reset: step; list-style: none; padding: 0; }
.steps-list li {
  position: relative; padding-left: 60px; margin-bottom: 22px;
  counter-increment: step;
}
.steps-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary); color: var(--accent);
  font-family: var(--serif); font-size: 1.2rem;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}

.paywall-card {
  margin-top: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 36px 32px;
  border-radius: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.paywall-card .lock-circle {
  width: 70px; height: 70px; margin: 0 auto 14px;
  border-radius: 50%; background: rgba(255,255,255,.16);
  display: grid; place-items: center; color: #fff;
}
.paywall-card .lock-circle svg { width: 32px; height: 32px; }
.paywall-card h3 { color: #fff; font-size: 1.65rem; margin-bottom: 12px; }
.paywall-card p { color: rgba(255,255,255,.9); margin-bottom: 18px; }
.paywall-features { list-style: none; padding: 0; margin: 22px 0 26px; text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
.paywall-features li { padding: 6px 0 6px 28px; position: relative; color: rgba(255,255,255,.96); }
.paywall-features li::before {
  content: "*"; position: absolute; left: 0; top: 6px; color: var(--accent); font-size: 1.3rem; line-height: 1;
}
.paywall-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.free-strip {
  background: linear-gradient(90deg, var(--accent) 0%, #E2C77F 100%);
  border-radius: 16px;
  padding: 16px 22px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.free-strip-text { flex: 1; color: var(--primary-dark); font-weight: 600; }
.free-strip-text strong { color: var(--primary-dark); }

/* ---------- Filters / pills ---------- */
.filter-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-pill {
  padding: 8px 16px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); font-size: .85rem; font-weight: 500;
  text-decoration: none; transition: all .15s;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper); padding: 36px;
  border-radius: 18px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: .85rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 8px; letter-spacing: .04em; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,78,61,.12);
}
.form-row.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-error { background: #FCEDEC; color: #8E261C; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }
.form-success { background: #E5EFE5; color: var(--primary-dark); padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }
.form-help { font-size: .8rem; color: var(--muted); margin-top: 8px; }

.auth-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
  max-width: 1080px; margin: 60px auto; padding: 0 24px;
  align-items: center;
}
.auth-art { aspect-ratio: 4/5; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.auth-art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pricing / subscription ---------- */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 920px; margin: 0 auto; }
.plan-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 22px; padding: 36px;
  position: relative;
}
.plan-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}
.plan-card .plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--primary-dark);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
}
.plan-card h3 { font-size: 1.6rem; margin-bottom: 6px; }
.plan-card .price { font-family: var(--serif); font-size: 3.2rem; color: var(--primary-dark); font-weight: 700; line-height: 1; }
.plan-card .price small { font-size: 1rem; color: var(--muted); margin-left: 4px; }
.plan-card ul { list-style: none; padding: 22px 0 28px; }
.plan-card li { padding: 8px 0 8px 26px; position: relative; }
.plan-card li::before {
  content: "*"; position: absolute; left: 0; top: 8px; color: var(--accent); font-size: 1.3rem;
}

/* ---------- Cart / Store ---------- */
.cart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.cart-table { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cart-row {
  display: grid;
  grid-template-columns: 96px 1fr 130px 100px 40px;
  gap: 14px; padding: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.cart-row .name { font-weight: 600; color: var(--primary-dark); }
.qty-control { display: inline-flex; align-items: center; gap: 8px; background: var(--cream); padding: 4px; border-radius: 999px; }
.qty-control button { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 1rem; }
.qty-control input { width: 36px; text-align: center; border: 0; background: transparent; font-weight: 600; }
.cart-summary {
  background: var(--paper); padding: 26px; border-radius: 18px;
  border: 1px solid var(--line);
  position: sticky; top: 92px;
}
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-line.total {
  font-size: 1.2rem; font-weight: 700; color: var(--primary-dark);
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px;
}
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty svg { width: 80px; height: 80px; color: var(--muted); margin: 0 auto 16px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 250;
  background: var(--primary); color: #fff;
  padding: 14px 22px; border-radius: 12px;
  box-shadow: var(--shadow);
  transform: translateY(100px); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  font-weight: 500; max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---------- Cookie ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 180;
  background: var(--primary-dark); color: #fff;
  padding: 18px 24px; border-radius: 14px;
  display: none;
  box-shadow: var(--shadow-lg);
  align-items: center; gap: 16px;
  flex-wrap: wrap;
  max-width: 920px; margin: 0 auto;
}
.cookie-bar.show { display: flex; }
.cookie-bar p { color: rgba(255,255,255,.92); font-size: .92rem; flex: 1; min-width: 240px; }
.cookie-bar a { color: var(--accent); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,.86);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 36px;
}
.footer h4 {
  color: var(--accent);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.78); font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: var(--accent); }
.footer-brand p { color: rgba(255,255,255,.78); font-size: .92rem; margin-top: 12px; }
.footer-support {
  background: rgba(255,255,255,.04);
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
}
.footer-support p { color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: 8px; }
.footer-support a { color: var(--accent); font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.6);
}
.footer-bottom a { color: rgba(255,255,255,.7); margin: 0 8px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Specific page bits ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--paper); padding: 26px; border-radius: 18px; border: 1px solid var(--line);
}
.feature .icon-circle {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--primary); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
}

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial {
  background: var(--paper); padding: 28px;
  border-radius: 18px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.testimonial .quote { font-family: var(--serif); font-size: 1.1rem; line-height: 1.5; color: var(--primary-dark); margin-bottom: 16px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .who .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700;
}
.testimonial .who .name { font-weight: 600; color: var(--primary-dark); }
.testimonial .who .role { font-size: .82rem; color: var(--muted); }

.faq-item {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 14px; overflow: hidden;
}
.faq-q {
  padding: 18px 22px; font-weight: 600; color: var(--primary-dark);
  display: flex; justify-content: space-between; cursor: pointer;
}
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--accent-dark); }
.faq-item.open .faq-q::after { content: "-"; }
.faq-a { padding: 0 22px 18px; color: var(--muted); display: none; }
.faq-item.open .faq-a { display: block; }

/* About / team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { background: var(--paper); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.team-card .avatar-big {
  height: 220px; background: var(--primary);
  display: grid; place-items: center;
  color: var(--accent); font-family: var(--serif); font-size: 4rem; font-weight: 700;
}
.team-card .body { padding: 18px; }
.team-card h3 { margin-bottom: 4px; }
.team-card .role { color: var(--accent-dark); font-weight: 600; font-size: .85rem; margin-bottom: 8px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { background: var(--paper); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.blog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card .meta { font-size: .8rem; color: var(--muted); margin-bottom: 8px; letter-spacing: .03em; }
.blog-card h3 { margin-bottom: 10px; }
.blog-card .excerpt { color: var(--muted); flex: 1; }
.blog-card .read-more { margin-top: 14px; color: var(--primary); font-weight: 600; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 56px 0; }
.product-detail-img { aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.product-price { font-family: var(--serif); font-size: 2.4rem; color: var(--primary-dark); margin: 14px 0 6px; font-weight: 700; }
.product-features { list-style: none; padding: 0; margin: 22px 0; }
.product-features li { padding: 8px 0 8px 26px; position: relative; }
.product-features li::before { content: "*"; position: absolute; left: 0; color: var(--accent-dark); font-size: 1.2rem; top: 6px; line-height: 1; }

/* legal pages */
.legal { max-width: 880px; margin: 0 auto; padding: 60px 24px; }
.legal h1 { margin-bottom: 12px; }
.legal h2 { margin: 36px 0 12px; font-size: 1.4rem; }
.legal h3 { margin: 24px 0 10px; font-size: 1.1rem; color: var(--primary); }
.legal p, .legal li { margin-bottom: 10px; color: var(--ink); }
.legal ul, .legal ol { margin-left: 22px; margin-bottom: 14px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.legal th { background: var(--cream); }
.legal a { color: var(--primary); text-decoration: underline; }

/* Sitemap */
.sitemap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sitemap-grid h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--primary); }
.sitemap-grid ul { list-style: none; }
.sitemap-grid li { padding: 4px 0; }

/* Account / orders */
.account-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.account-tabs a { padding: 10px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.account-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.order-row {
  display: flex; justify-content: space-between; padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  align-items: center; gap: 14px; flex-wrap: wrap;
}
.order-row:last-child { border: 0; }

/* Empty state */
.empty {
  background: var(--paper); padding: 60px 20px; border-radius: 18px;
  border: 1px dashed var(--line); text-align: center;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; padding: 60px 40px; border-radius: 28px;
  text-align: center; box-shadow: var(--shadow);
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.92); margin-bottom: 22px; }

/* Page hero with image side */
.page-hero {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 36px; padding: 56px 0;
  align-items: center;
}
.page-hero img { aspect-ratio: 4/3; border-radius: 22px; object-fit: cover; box-shadow: var(--shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-mosaic { grid-template-columns: repeat(3, 1fr); grid-template-rows: 180px 180px; }
  .photo-mosaic .tile.tall { grid-row: span 2; }
  .photo-strip { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-hero { grid-template-columns: 1fr; }
  .recipe-body { grid-template-columns: 1fr; }
  .ingredient-card { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-art { aspect-ratio: 4/3; }
  .cart-grid { grid-template-columns: 1fr; }
  .page-hero { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .photo-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: 160px 160px 160px; }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .recipe-gallery { grid-template-columns: repeat(2, 1fr); }
  .meta-tiles { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .form-row.row-2, .form-row.row-3 { grid-template-columns: 1fr; }
  .cart-row {
    grid-template-columns: 80px 1fr 70px;
    grid-template-areas: "img name name" "img qty remove" "img total total";
  }
  .cart-row img { width: 80px; height: 80px; grid-area: img; }
  .cart-row .name { grid-area: name; }
  .cart-row .qty-control { grid-area: qty; }
  .cart-row .line-total { grid-area: total; }
  .cart-row .remove-btn { grid-area: remove; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .nav-wrap { padding: 12px 16px; }
  .container, .container-narrow { padding: 0 16px; }
}

@media (max-width: 480px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .photo-mosaic { grid-template-columns: 1fr; grid-template-rows: 160px; }
  .photo-mosaic .tile.tall { grid-row: span 1; }
  .recipe-gallery { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .meta-tiles { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
}

/* small utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 36px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.full-width { width: 100%; }
