/* Kimchi Halfie - style.css (ASCII only) */

:root {
  --primary: #C8402E;
  --primary-dark: #9E2C20;
  --primary-soft: #F4D8D2;
  --accent: #E8A33D;
  --accent-dark: #C9852A;
  --napa: #6E8B3D;
  --napa-dark: #56702F;
  --cream: #FBF4E9;
  --cream-2: #F3E8D6;
  --ink: #241C18;
  --ink-soft: #5E534C;
  --line: #E5D8C5;
  --white: #FFFFFF;
  --premium: #C8402E;
  --shadow-sm: 0 2px 10px rgba(36, 28, 24, 0.08);
  --shadow-md: 0 12px 34px rgba(36, 28, 24, 0.12);
  --shadow-lg: 0 26px 60px rgba(36, 28, 24, 0.18);
  --radius: 16px;
  --radius-lg: 26px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100vw; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; color: var(--ink); font-weight: 700; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- TOP STRIP ---------- */
.top-strip {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 12px;
}
.top-strip-inner { display: inline-flex; align-items: center; gap: 12px; }
.top-strip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 244, 233, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, border-color 0.25s, background 0.25s;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
  background: rgba(251, 244, 233, 0.95);
}
.nav-wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { display: inline-flex; flex-shrink: 0; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.32rem; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink-soft); }
.brand-dark .brand-text, .brand-dark .brand-sub { color: var(--cream); }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a {
  color: var(--ink); font-weight: 600; font-size: 0.96rem; position: relative; padding: 4px 0;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--primary); transition: right 0.25s;
}
.primary-nav a:hover { color: var(--primary); }
.primary-nav a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-link { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.cart-link { position: relative; color: var(--ink); display: inline-flex; }
.cart-link:hover { color: var(--primary); }
.cart-count {
  position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--primary); color: #fff; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.nav-cta { display: inline-flex; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: 0.25s; }
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- MOBILE DRAWER ---------- */
.mobile-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 300px; max-width: 86vw; z-index: 200;
  background: var(--cream); box-shadow: var(--shadow-lg); padding: 84px 26px 26px;
  transform: translateX(110%); transition: transform 0.3s ease; display: flex; flex-direction: column; gap: 4px;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a { color: var(--ink); font-weight: 600; font-size: 1.05rem; padding: 13px 8px; border-bottom: 1px solid var(--line); }
.mobile-drawer a:hover { color: var(--primary); }
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(36, 28, 24, 0.45); z-index: 150; opacity: 0; visibility: hidden; transition: 0.3s;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(200, 64, 46, 0.28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 10px 26px rgba(200, 64, 46, 0.36); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); color: var(--ink); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: var(--cream-2); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--primary-dark); font-weight: 600; cursor: pointer; text-decoration: underline; font-size: 0.9rem; }

/* ---------- SECTIONS / TYPOGRAPHY ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-cream2 { background: var(--cream-2); }
.section-ink { background: var(--ink); color: var(--cream); }
.section-ink h2, .section-ink h3 { color: var(--cream); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.74rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.section-ink .eyebrow { color: var(--accent); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
h1.display { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
h2.display { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.section-ink .lead { color: rgba(251, 244, 233, 0.8); }
.muted { color: var(--ink-soft); }

/* ---------- HERO (home) ---------- */
.hero { position: relative; padding: 70px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -120px; right: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.28), transparent 70%); z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy .lead { margin-bottom: 28px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; }
.hero-meta .stat { display: flex; flex-direction: column; }
.hero-meta .stat b { font-family: var(--serif); font-size: 1.5rem; color: var(--primary-dark); }
.hero-meta .stat span { font-size: 0.82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }

.hero-art { position: relative; }
.hero-art .main-photo {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  transform: rotate(1.4deg); aspect-ratio: 4 / 4.4;
}
.hero-art .main-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .float-card {
  position: absolute; left: -22px; bottom: 28px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 14px 18px; display: flex; align-items: center; gap: 12px; max-width: 250px;
}
.hero-art .float-card .ring {
  width: 42px; height: 42px; border-radius: 50%; background: var(--napa); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.hero-art .float-card small { display: block; color: var(--ink-soft); font-size: 0.76rem; }
.hero-art .float-card strong { font-size: 0.94rem; }
.hero-badge {
  position: absolute; top: 14px; right: 6px; background: var(--ink); color: var(--cream);
  border-radius: 999px; padding: 8px 16px; font-size: 0.78rem; font-weight: 700; box-shadow: var(--shadow-md);
}

/* ---------- PHOTO MOSAIC ---------- */
.photo-mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 12px;
}
.photo-mosaic .tile { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.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; }
.tile-cap {
  position: absolute; left: 10px; bottom: 10px; background: rgba(36, 28, 24, 0.72); color: #fff;
  font-size: 0.74rem; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}

/* ---------- PHOTO STRIP ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.photo-strip .sq { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.photo-strip .sq img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.photo-strip .sq:hover img { transform: scale(1.08); }

/* ---------- RECIPE GALLERY ---------- */
.recipe-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.recipe-gallery .gphoto { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.recipe-gallery .gphoto img { width: 100%; height: 100%; object-fit: cover; }
.gallery-cap { text-align: center; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.74rem; color: var(--ink-soft); margin-bottom: 16px; }

/* ---------- CARD GRIDS ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- RECIPE CARD ---------- */
.recipe-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid var(--line);
}
.recipe-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.recipe-card:hover .card-photo img { transform: scale(1.06); }
.card-eyebrow { display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--primary-dark); font-weight: 700; margin-bottom: 6px; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.16rem; margin-bottom: 8px; }
.card-desc { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 14px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 14px; font-size: 0.82rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 12px; }
.card-meta .star { color: var(--accent-dark); font-weight: 700; }
.card-meta .sep { opacity: 0.5; }

/* padlock badge for premium */
.lock-badge {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--premium); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.28); border: 2px solid rgba(255,255,255,0.85);
}
.lock-badge svg { width: 18px; height: 18px; }

/* members / free pill */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.pill-member { background: var(--accent); color: var(--ink); }
.pill-free { background: var(--napa); color: #fff; }

/* ---------- PRODUCT CARD ---------- */
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-card .card-photo { aspect-ratio: 1 / 1; background: var(--cream-2); }
.product-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.06rem; margin-bottom: 6px; }
.product-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); margin-bottom: 6px; }
.product-short { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 14px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--serif); font-size: 1.3rem; color: var(--primary-dark); font-weight: 700; }

/* ---------- CATEGORY GRID ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow-sm); display: block; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.cat-card:hover img { transform: scale(1.08); }
.cat-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(36,28,24,0.82), rgba(36,28,24,0.05) 60%); }
.cat-card .cat-label { position: absolute; left: 14px; right: 14px; bottom: 14px; color: #fff; }
.cat-card .cat-label b { font-family: var(--serif); font-size: 1.12rem; display: block; }
.cat-card .cat-label span { font-size: 0.78rem; opacity: 0.85; }

/* ---------- PAGE HERO (interior) ---------- */
.page-hero { position: relative; color: #fff; overflow: hidden; }
.page-hero .ph-bg { position: absolute; inset: 0; }
.page-hero .ph-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .ph-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(36,28,24,0.85), rgba(158,44,32,0.6)); }
.page-hero .ph-inner { position: relative; z-index: 1; padding: 84px 0; max-width: 760px; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.9); font-size: 1.1rem; }
.breadcrumbs { font-size: 0.84rem; color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.breadcrumbs a { color: rgba(255,255,255,0.95); text-decoration: underline; }

/* ---------- FILTER BAR ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-bar a {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink); font-weight: 600; font-size: 0.9rem; transition: 0.2s;
}
.filter-bar a:hover { border-color: var(--primary); color: var(--primary); }
.filter-bar a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- PAYWALL STRIP & CARD ---------- */
.free-strip {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark)); color: var(--ink);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.free-strip p { font-weight: 600; }
.paywall-card {
  background: linear-gradient(140deg, var(--primary), var(--primary-dark)); color: #fff;
  border-radius: var(--radius-lg); padding: 40px 34px; text-align: center; box-shadow: var(--shadow-md);
}
.paywall-card .lock-circle {
  width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.paywall-card .lock-circle svg { width: 32px; height: 32px; }
.paywall-card h3 { color: #fff; font-size: 1.7rem; margin-bottom: 12px; }
.paywall-card p { color: rgba(255,255,255,0.9); max-width: 540px; margin: 0 auto 22px; }
.paywall-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; max-width: 560px; margin: 24px auto 0; text-align: left; }
.paywall-feats li { display: flex; gap: 10px; font-size: 0.94rem; color: rgba(255,255,255,0.95); }
.paywall-feats li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241C18' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E"); background-size: 13px; background-repeat: no-repeat; background-position: center; }
.paywall-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- RECIPE DETAIL ---------- */
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.detail-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3.4; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.meta-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.meta-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.meta-tile b { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--primary-dark); }
.meta-tile span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.recipe-cols { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 40px; margin-top: 40px; }
.ingredient-list li, .method-list li { padding: 11px 0; border-bottom: 1px dashed var(--line); }
.ingredient-list li { display: flex; gap: 10px; }
.ingredient-list li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 9px; flex-shrink: 0; }
.method-list { counter-reset: step; }
.method-list li { display: flex; gap: 16px; align-items: flex-start; }
.method-list li::before {
  counter-increment: step; content: counter(step); flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--serif);
}
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h3 { margin-bottom: 14px; }

/* ---------- FORMS ---------- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.field { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,64,46,0.12); }
textarea { resize: vertical; min-height: 130px; }
.auth-card { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 8px; }

/* ---------- ALERTS ---------- */
.alert { padding: 14px 18px; border-radius: 12px; font-size: 0.94rem; margin-bottom: 16px; }
.alert-info { background: #fff; border: 1px solid var(--line); }
.alert-success { background: #EAF3DF; border: 1px solid var(--napa); color: var(--napa-dark); }
.alert-error { background: #FBE3DF; border: 1px solid var(--primary); color: var(--primary-dark); }

/* ---------- CART ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 36px; align-items: start; }
.cart-row { display: grid; grid-template-columns: 78px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 78px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-row .muted { font-size: 0.85rem; }
.qty-controls { display: inline-flex; align-items: center; gap: 8px; }
.qty-btn { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink); }
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.summary-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.96rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }

/* ---------- CHECKOUT ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 36px; align-items: start; }
.field-section { margin-bottom: 26px; }
.field-section h3 { font-size: 1.15rem; margin-bottom: 14px; }
.guarantee { display: flex; gap: 12px; align-items: flex-start; background: #EAF3DF; border: 1px solid var(--napa); border-radius: 12px; padding: 14px 16px; margin-top: 18px; font-size: 0.9rem; }

/* ---------- FEATURE / VALUE ROWS ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.value-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--primary-dark); }
.value-icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 8px; }

/* ---------- PRICING ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 820px; margin: 0 auto; }
.plan-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 34px; position: relative; }
.plan-card.featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.plan-flag { position: absolute; top: -14px; left: 34px; background: var(--primary); color: #fff; padding: 5px 16px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.plan-price { font-family: var(--serif); font-size: 2.8rem; color: var(--primary-dark); margin: 10px 0; }
.plan-price span { font-size: 1rem; color: var(--ink-soft); font-family: var(--sans); }
.plan-feats li { padding: 9px 0; display: flex; gap: 10px; border-bottom: 1px dashed var(--line); }
.plan-feats li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; border-radius: 50%; background: var(--napa);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E"); background-size: 12px; background-repeat: no-repeat; background-position: center; }

/* ---------- TEAM / BLOG ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { text-align: center; }
.team-card .avatar { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; box-shadow: var(--shadow-sm); }
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.1rem; }
.team-card .role { color: var(--primary-dark); font-weight: 600; font-size: 0.86rem; margin-bottom: 8px; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-card .card-photo { aspect-ratio: 16 / 10; }
.blog-meta { font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-bottom: 14px; }
.faq-item h3 { font-size: 1.08rem; margin-bottom: 8px; }

/* ---------- LEGAL / PROSE ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin: 30px 0 12px; }
.prose h3 { font-size: 1.18rem; margin: 22px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 0; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.prose a { text-decoration: underline; }
.legal-updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 24px; }

/* ---------- SITEMAP ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.sitemap-grid h3 { font-size: 1.1rem; margin-bottom: 12px; }
.sitemap-grid li { padding: 5px 0; }

/* ---------- CTA BAND ---------- */
.cta-band { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius-lg); padding: 50px; text-align: center; color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 24px; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: rgba(251,244,233,0.78); padding: 60px 0 26px; margin-top: 20px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 30px; }
.footer-col h4 { color: var(--cream); font-size: 0.94rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col a { color: rgba(251,244,233,0.78); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-tag { color: var(--accent); font-family: var(--serif); font-style: italic; margin: 14px 0 10px; font-size: 1.05rem; }
.footer-copy { font-size: 0.84rem; line-height: 1.7; }
.footer-support .support-link { color: var(--accent); font-weight: 700; }
.footer-fine { font-size: 0.82rem; margin-top: 8px; }
.footer-bottom { max-width: var(--maxw); margin: 36px auto 0; padding: 22px 24px 0; border-top: 1px solid rgba(251,244,233,0.16); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: rgba(251,244,233,0.78); }
.footer-links a:hover { color: var(--accent); }

/* ---------- COOKIE NOTICE ---------- */
.cookie-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; background: var(--ink); color: var(--cream); border-radius: 16px; box-shadow: var(--shadow-lg); }
.cookie-inner { display: flex; align-items: center; gap: 18px; padding: 16px 20px; max-width: 1000px; margin: 0 auto; }
.cookie-text { font-size: 0.88rem; flex: 1; }
.cookie-text a { color: var(--accent); text-decoration: underline; }

/* ---------- TOAST ---------- */
.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-md); font-size: 0.9rem; font-weight: 600; }

/* ---------- HELPERS ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }
.mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 32px; }
.divider { height: 1px; background: var(--line); margin: 40px 0; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 520px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-hero { grid-template-columns: 1fr; }
  .recipe-cols { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-box { position: static; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-mosaic { grid-template-columns: repeat(3, 1fr); }
  .photo-strip { grid-template-columns: repeat(4, 1fr); }
  .recipe-gallery { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .meta-tiles { grid-template-columns: repeat(2, 1fr); }
  .paywall-feats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .cta-band { padding: 36px 24px; }
  .cart-row { grid-template-columns: 64px 1fr auto; row-gap: 8px; }
  .cart-row .price-cell { grid-column: 2 / 4; text-align: right; }
  .cart-row .remove-cell { grid-column: 1 / 4; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-wrap { padding: 10px 16px; }
  .brand-sub { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .recipe-gallery { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-meta { gap: 16px; }
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .paywall-card { padding: 30px 20px; }
}
