/* La Cappella - style.css
   ASCII-safe. No Unicode chars.
   Primary: #2d6a4f  Accent/light: #74c69d  Text: #1b2027  BG: #f5f7f5
*/

/* =========================================================
   RESET + BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100vw; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1b2027;
  background: #f5f7f5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2d6a4f; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #2d6a4f;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-nav:focus { top: 0; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: #1b2027;
}
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2d6a4f;
  margin-bottom: 0.5rem;
}
.section-title { margin-bottom: 0.5rem; }
.section-sub {
  color: #5a6370;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 52ch;
}

/* =========================================================
   LAYOUT CONTAINERS
   ========================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-lg { padding: 6rem 0; }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: #2d6a4f;
  color: #fff;
  border-color: #2d6a4f;
}
.btn-primary:hover { background: #1e5237; border-color: #1e5237; }
.btn-accent {
  background: #74c69d;
  color: #1b2027;
  border-color: #74c69d;
}
.btn-accent:hover { background: #52b683; border-color: #52b683; }
.btn-outline {
  background: transparent;
  color: #2d6a4f;
  border-color: #2d6a4f;
}
.btn-outline:hover { background: #2d6a4f; color: #fff; }
.btn-ghost {
  background: transparent;
  color: #2d6a4f;
  border-color: transparent;
}
.btn-ghost:hover { background: #e8f5ee; }
.btn-danger {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}
.btn-sm { padding: 0.45rem 1rem; font-size: 0.88rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(245, 247, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #d8e8dd;
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
.nav-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo:hover { text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  background: #2d6a4f;
  color: #74c69d;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1b2027;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 0.15rem;
  margin: 0 auto;
}
.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  color: #2d3a30;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: #e8f5ee; color: #2d6a4f; text-decoration: none; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}
.cart-icon-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.4rem;
  border-radius: 6px;
  color: #2d3a30;
  transition: background 0.15s;
}
.cart-icon-link:hover { background: #e8f5ee; text-decoration: none; }
.cart-icon { width: 22px; height: 22px; }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #c0392b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.cart-badge[data-count="0"] { opacity: 0; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
  border-radius: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1b2027;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25s;
}
.drawer-backdrop.visible { display: block; opacity: 1; }
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 90vw);
  background: #fff;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  padding: 1.25rem;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-close {
  display: block;
  margin-left: auto;
  background: none;
  border: none;
  padding: 0.4rem;
  border-radius: 6px;
  color: #1b2027;
}
.drawer-close svg { width: 22px; height: 22px; }
.drawer-close:hover { background: #f0f0f0; }
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
  text-decoration: none;
}
.drawer-links { display: flex; flex-direction: column; gap: 0.1rem; }
.drawer-links li a {
  display: block;
  padding: 0.7rem 0.5rem;
  color: #1b2027;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.15s;
}
.drawer-links li a:hover { background: #e8f5ee; text-decoration: none; }
.drawer-divider {
  height: 1px;
  background: #e8e8e8;
  margin: 0.6rem 0;
}
.cart-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-drawer-link svg { width: 18px; height: 18px; }
.cart-badge-mobile {
  background: #c0392b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

/* =========================================================
   HERO SECTIONS
   ========================================================= */
.hero {
  position: relative;
  background: #2d3a30;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
  max-width: 640px;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(116,198,157,0.25);
  color: #a8e6c3;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 48ch;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-centered { text-align: center; }
.hero-centered .hero-content { margin: 0 auto; }
.hero-centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero-centered .hero-actions { justify-content: center; }
.hero-sm .hero-content { padding: 3rem 0; }

/* =========================================================
   RECIPE CARDS
   ========================================================= */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.recipe-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.recipe-card-img {
  position: relative;
  padding-top: 66.67%;
  overflow: hidden;
  background: #dde8e3;
}
.recipe-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.recipe-card:hover .recipe-card-img img { transform: scale(1.04); }
.premium-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: #c0392b;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.recipe-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.recipe-cat-link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2d6a4f;
  margin-bottom: 0.35rem;
  display: block;
}
.recipe-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1b2027;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.recipe-card-desc {
  font-size: 0.88rem;
  color: #5a6370;
  flex: 1;
  margin-bottom: 0.75rem;
}
.recipe-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #7a8590;
  flex-wrap: wrap;
}
.recipe-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Stars */
.star { color: #e8a838; font-size: 0.85rem; }
.star.half { opacity: 0.6; }
.star.empty { color: #d0d8d4; }

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.badge-easy     { background: #e8f5ee; color: #2d6a4f; }
.badge-medium   { background: #fff4e0; color: #b46e0a; }
.badge-advanced { background: #fbe9e7; color: #c0392b; }

/* =========================================================
   PRODUCT CARDS
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.product-card-img {
  padding-top: 75%;
  position: relative;
  overflow: hidden;
  background: #dde8e3;
}
.product-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-cat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2d6a4f;
  margin-bottom: 0.3rem;
}
.product-card-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: #1b2027;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.product-card-desc {
  font-size: 0.85rem;
  color: #5a6370;
  flex: 1;
  margin-bottom: 0.75rem;
}
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d6a4f;
}

/* =========================================================
   PHOTO MOSAIC (.photo-mosaic)
   6-tile asymmetric grid. Tiles 1 and 6 span 2 rows.
   ========================================================= */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 0.5rem;
  border-radius: 12px;
  overflow: hidden;
}
.photo-mosaic .tile {
  overflow: hidden;
  background: #dde8e3;
}
.photo-mosaic .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.photo-mosaic .tile:hover img { transform: scale(1.06); }
.photo-mosaic .tile:nth-child(1) { grid-row: span 2; }
.photo-mosaic .tile:nth-child(6) { grid-row: span 2; grid-column: 4; }

/* =========================================================
   PHOTO STRIP (.photo-strip)
   6 square tiles in a horizontal row.
   ========================================================= */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
.photo-strip .tile {
  padding-top: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #dde8e3;
}
.photo-strip .tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.photo-strip .tile:hover img { transform: scale(1.08); }

/* =========================================================
   RECIPE GALLERY (.recipe-gallery)
   3-photo wide gallery on recipe detail pages.
   ========================================================= */
.recipe-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.recipe-gallery .tile {
  padding-top: 75%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #dde8e3;
}
.recipe-gallery .tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-caption {
  font-size: 0.8rem;
  color: #7a8590;
  text-align: center;
  margin-top: 0.4rem;
  font-style: italic;
}

/* =========================================================
   PAYWALL CARD
   ========================================================= */
.paywall-card {
  background: linear-gradient(135deg, #2d6a4f 0%, #1e5237 100%);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
  color: #fff;
  margin: 2rem 0;
}
.paywall-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}
.paywall-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.75rem; }
.paywall-card p  { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.paywall-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  max-width: 360px;
  margin: 0 auto 1.5rem;
}
.paywall-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.93rem;
  color: rgba(255,255,255,0.9);
}
.paywall-features li::before {
  content: '*';
  color: #74c69d;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.paywall-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.paywall-actions .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.paywall-actions .btn-outline:hover { background: rgba(255,255,255,0.15); }

/* Members pill */
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-premium { background: #c0392b; color: #fff; }
.pill-free    { background: #e8f5ee; color: #2d6a4f; }

/* =========================================================
   SUBSCRIBE BANNER (recipe listing top)
   ========================================================= */
.subscribe-banner {
  background: #e8f5ee;
  border: 1px solid #b3ddc6;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.subscribe-banner p { margin: 0; font-size: 0.95rem; color: #1e5237; }

/* =========================================================
   CATEGORY GRID
   ========================================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.cat-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #2d3a30;
  text-align: center;
  transition: transform 0.2s;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-card-img {
  padding-top: 90%;
  position: relative;
  overflow: hidden;
}
.cat-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.4s, opacity 0.3s;
}
.cat-card:hover .cat-card-img img { transform: scale(1.06); opacity: 0.45; }
.cat-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.75rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.cat-card-label a { color: #fff; }

/* =========================================================
   BLOG CARDS
   ========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.blog-card-img {
  padding-top: 56.25%;
  position: relative;
  overflow: hidden;
  background: #dde8e3;
}
.blog-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-cat-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2d6a4f;
  margin-bottom: 0.4rem;
  display: block;
}
.blog-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.blog-card-excerpt { font-size: 0.88rem; color: #5a6370; flex: 1; margin-bottom: 0.75rem; }
.blog-meta { font-size: 0.8rem; color: #7a8590; }

/* =========================================================
   FORMS
   ========================================================= */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #2d3a30;
}
.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #c8d8cc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: #1b2027;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: #2d6a4f;
  box-shadow: 0 0 0 3px rgba(45,106,79,0.15);
}
.form-control::placeholder { color: #a0acb0; }
.form-error {
  font-size: 0.82rem;
  color: #c0392b;
  margin-top: 0.3rem;
}
.form-hint { font-size: 0.82rem; color: #7a8590; margin-top: 0.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.alert-success { background: #e8f5ee; color: #1e5237; border: 1px solid #b3ddc6; }
.alert-error   { background: #fbe9e7; color: #922b21; border: 1px solid #f4c3bc; }

/* =========================================================
   CART / CHECKOUT
   ========================================================= */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a8590;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #e8e8e8;
}
.cart-table td { padding: 1rem 0.5rem; vertical-align: middle; border-bottom: 1px solid #f0f0f0; }
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.qty-control { display: flex; align-items: center; gap: 0.5rem; }
.qty-btn {
  width: 28px;
  height: 28px;
  background: #f0f4f0;
  border: 1px solid #d8e8dd;
  border-radius: 4px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.qty-btn:hover { background: #d4edde; }
.qty-input {
  width: 40px;
  text-align: center;
  font-weight: 600;
  border: 1px solid #d8e8dd;
  border-radius: 4px;
  padding: 0.25rem;
}
.cart-summary {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 80px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}
.summary-row.total {
  border-top: 1.5px solid #e8e8e8;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
}
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 2rem; }
.card-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* =========================================================
   RECIPE DETAIL
   ========================================================= */
.recipe-detail-hero { position: relative; height: 480px; overflow: hidden; background: #2d3a30; }
.recipe-detail-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.recipe-detail-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
}
.recipe-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
}
.recipe-detail-meta h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.meta-tiles {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}
.meta-tile {
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 110px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.meta-tile-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #7a8590; }
.meta-tile-value { font-size: 1.2rem; font-weight: 700; color: #1b2027; margin-top: 0.1rem; }
.recipe-body { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
.ingredients-box {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 80px;
}
.ingredients-box h3 { margin-bottom: 1rem; font-size: 1rem; }
.ingredients-list { list-style: none; }
.ingredients-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.93rem;
  display: flex;
  gap: 0.5rem;
}
.ingredients-list li::before { content: '-'; color: #2d6a4f; flex-shrink: 0; }
.method-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.step-num {
  width: 36px;
  height: 36px;
  background: #2d6a4f;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.step-text { padding-top: 0.35rem; line-height: 1.7; }

/* =========================================================
   PRODUCT DETAIL
   ========================================================= */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-main-img {
  border-radius: 14px;
  overflow: hidden;
  background: #dde8e3;
}
.product-main-img img { width: 100%; height: 460px; object-fit: cover; }
.product-features { list-style: none; margin: 1.25rem 0; }
.product-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.93rem;
  display: flex;
  gap: 0.6rem;
}
.product-features li::before { content: '*'; color: #2d6a4f; font-weight: 700; flex-shrink: 0; }
.product-price-lg { font-size: 2rem; font-weight: 700; color: #2d6a4f; margin: 1rem 0; }

/* =========================================================
   ACCOUNT / AUTH PAGES
   ========================================================= */
.auth-card {
  max-width: 440px;
  margin: 4rem auto;
  background: #fff;
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.auth-card .sub { color: #5a6370; margin-bottom: 1.75rem; }
.auth-divider {
  text-align: center;
  color: #a0acb0;
  font-size: 0.88rem;
  margin: 1.25rem 0;
  position: relative;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e8e8e8;
  z-index: 0;
}
.auth-divider span {
  background: #fff;
  padding: 0 0.75rem;
  position: relative;
  z-index: 1;
}
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; }
.account-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  align-self: start;
  position: sticky;
  top: 80px;
}
.account-sidebar ul { list-style: none; }
.account-sidebar li a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #1b2027;
  font-weight: 500;
  transition: background 0.15s;
}
.account-sidebar li a:hover { background: #e8f5ee; text-decoration: none; }

/* =========================================================
   SUBSCRIBE PAGE
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 760px;
  margin: 0 auto;
}
.pricing-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 2px solid #e8e8e8;
  position: relative;
}
.pricing-card.featured {
  border-color: #2d6a4f;
  box-shadow: 0 8px 32px rgba(45,106,79,0.15);
}
.pricing-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #2d6a4f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.9rem;
  border-radius: 20px;
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.pricing-price { font-size: 2.2rem; font-weight: 700; color: #2d6a4f; line-height: 1; margin: 0.75rem 0 0.25rem; }
.pricing-price .period { font-size: 1rem; font-weight: 400; color: #7a8590; }
.pricing-features { list-style: none; margin: 1.25rem 0 1.5rem; }
.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.93rem;
  display: flex;
  gap: 0.5rem;
}
.pricing-features li::before { content: '*'; color: #2d6a4f; font-weight: 700; flex-shrink: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #1b2027;
  color: #aab5b0;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-brand .brand-mark { background: #2d6a4f; color: #74c69d; }
.footer-brand .brand-text { color: #f0f4f0; }
.footer-tagline { font-size: 0.9rem; color: #8a9590; margin-top: 0.75rem; max-width: 240px; }
.footer-support { font-size: 0.88rem; margin-top: 1.25rem; color: #8a9590; line-height: 1.7; }
.footer-support a { color: #74c69d; }
.footer-heading { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #f0f4f0; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #8a9590; font-size: 0.9rem; transition: color 0.15s; }
.footer-col ul li a:hover { color: #74c69d; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #2d3a30;
  padding-top: 1.5rem;
}
.footer-copy { font-size: 0.85rem; color: #6a7570; margin-bottom: 0.5rem; }
.footer-legal-note { font-size: 0.8rem; color: #566060; }

/* =========================================================
   COOKIE NOTICE
   ========================================================= */
.cookie-notice {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 560px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 1.25rem 1.5rem;
  z-index: 2000;
  transform: translateY(200%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  border: 1px solid #e8e8e8;
}
.cookie-notice.visible { transform: translateY(0); }
.cookie-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: 0.88rem; color: #5a6370; flex: 1; min-width: 200px; }
.cookie-inner p a { color: #2d6a4f; text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #1b2027;
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-size: 0.93rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  transform: translateY(200%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 3000;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* =========================================================
   MISC / UTILITY
   ========================================================= */
.tag {
  display: inline-block;
  background: #e8f5ee;
  color: #2d6a4f;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.divider { height: 1px; background: #e8e8e8; margin: 2rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.empty-state { text-align: center; padding: 4rem 1rem; color: #7a8590; }
.empty-state p { font-size: 1.1rem; }
.page-header { padding: 3rem 0 2rem; border-bottom: 1px solid #e8e8e8; margin-bottom: 2.5rem; }
.page-header h1 { margin-bottom: 0.35rem; }
.page-header p  { color: #5a6370; max-width: 60ch; }
.breadcrumb { font-size: 0.85rem; color: #7a8590; margin-bottom: 0.5rem; }
.breadcrumb a { color: #7a8590; }
.breadcrumb a:hover { color: #2d6a4f; }
.breadcrumb span { margin: 0 0.3rem; }
.related-section { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid #e8e8e8; }
.guarantee-badge {
  background: #e8f5ee;
  border: 1px solid #b3ddc6;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #1e5237;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}
.guarantee-badge::before { content: '*'; font-size: 1.2rem; color: #2d6a4f; flex-shrink: 0; }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; font-size: 1.25rem; }
.legal-content h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; font-size: 1.05rem; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
.legal-content th { background: #e8f5ee; padding: 0.65rem 1rem; text-align: left; font-size: 0.88rem; }
.legal-content td { padding: 0.65rem 1rem; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; }
.legal-content ul li { margin-bottom: 0.35rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-actions .btn-outline,
  .nav-actions .btn-primary { display: none; }
  .recipe-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 2; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-mosaic { grid-template-columns: repeat(3, 1fr); }
  .photo-mosaic .tile:nth-child(6) { grid-column: auto; }
}

@media (max-width: 768px) {
  .section { padding: 2.5rem 0; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .recipe-body { grid-template-columns: 1fr; }
  .ingredients-box { position: static; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-strip { grid-template-columns: repeat(4, 1fr); }
  .recipe-gallery { grid-template-columns: repeat(2, 1fr); }
  .recipe-gallery .tile:nth-child(3) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .photo-mosaic { grid-template-rows: auto; height: auto; }
  .hero-content { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
  .recipe-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .meta-tiles { gap: 0.75rem; }
  .meta-tile { padding: 0.75rem 1rem; min-width: 90px; }
  .card-fields { grid-template-columns: 1fr; }
  .paywall-card { padding: 1.5rem; }
  .auth-card { margin: 2rem auto; padding: 1.75rem 1.25rem; }
  .cookie-notice { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
}
