/* Cook with Orggu — Orggu design system (2026-11-26) */
:root {
  --cwo-primary: var(--og-primary, #103D2D); --cwo-secondary: var(--og-secondary, #103D2D); --cwo-bg: var(--og-cream, #F8F3E7); --cwo-card: #FFFFFF; --cwo-accent: var(--og-primary, #103D2D); --cwo-accent-dark: var(--og-hover, #1A5440);
  --cwo-ink: var(--og-text, #202520); --cwo-muted: var(--og-muted, #667085); --cwo-line: var(--og-line, #E5E7E2); --cwo-soft: var(--og-light, #E8F2E3); --cwo-radius: 14px;
  --cwo-shadow: 0 1px 2px rgba(16,61,45,.06), 0 6px 20px rgba(16,61,45,.06);
  --cwo-head: 'Lora', Georgia, serif; --cwo-ui: 'Inter', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body.cwo-page { background: var(--cwo-bg); background-image: none; }
/* sit just under the site's fixed header (48-65px tall) */
.cwo { margin-top: 88px !important; }
@media (max-width: 1023px) { .cwo { margin-top: 78px !important; } }
@media (max-width: 768px) { .cwo { margin-top: 68px !important; } }
@media (max-width: 430px) { .cwo { margin-top: 62px !important; } }
.cwo { font-family: var(--cwo-ui); color: var(--cwo-ink); max-width: 1280px; margin: 104px auto 0; padding: 8px clamp(14px, 2.4vw, 24px) calc(64px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; text-align: left; }
.cwo *, .cwo *::before, .cwo *::after { box-sizing: border-box; }
.cwo p, .cwo li { text-align: inherit; }
.cwo h1, .cwo h2, .cwo h3 { font-family: var(--cwo-head); color: var(--cwo-primary); margin: 0; text-align: left; }
.cwo :focus-visible { outline: 3px solid rgba(16, 61, 45,.45); outline-offset: 2px; }
.cwo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cook list page (v5, responsive) ---------- */
.cwo { --cwo-gap: clamp(10px, 1.6vw, 20px); }
.cwo-list { max-width: 1280px; }
@media (min-width: 1680px) { .cwo-list { max-width: 1560px; } }

/* Hero: text + food photos; compact on phones */
.cwo-hero { position: relative; overflow: hidden; border-radius: 22px; background: var(--cwo-primary); color: #fff; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 40px); padding: clamp(20px, 3.4vw, 44px); box-shadow: var(--cwo-shadow); }
.cwo-hero::after { content: ''; position: absolute; left: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(16, 61, 45,.35), rgba(16, 61, 45,0) 70%); pointer-events: none; }
.cwo-hero-text { position: relative; z-index: 1; min-width: 0; }
.cwo-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--og-light, #E8F2E3); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 5px 12px; }
.cwo .cwo-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.12; margin: 14px 0 10px; }
.cwo-hero p { color: #D6E5CC; font-size: clamp(14.5px, 1.3vw, 16.5px); line-height: 1.55; margin: 0; max-width: 560px; }
.cwo-hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; font-size: 14px; color: var(--og-light, #E8F2E3); }
.cwo-hero-points b { color: #fff; font-family: var(--cwo-head); font-size: 17px; margin-right: 3px; }
.cwo-hero-media { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 16 / 10; max-height: 340px; }
.cwo-hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; border: 2px solid rgba(255,255,255,.14); }
.cwo-hero-media img:first-child { grid-row: span 2; }

/* Search */
.cwo-search { position: relative; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--cwo-line); border-radius: 14px; margin: var(--cwo-gap) 0 0; box-shadow: var(--cwo-shadow); overflow: hidden; }
.cwo-search:focus-within { border-color: var(--cwo-secondary); }
.cwo-search-ico { width: 20px; height: 20px; fill: var(--cwo-muted); margin-left: 16px; flex: 0 0 auto; }
.cwo-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; height: 52px; font-size: 16px; font-family: var(--cwo-ui); color: var(--cwo-ink); }
.cwo-search input:focus { outline: none; }
.cwo-search button { align-self: stretch; border: 0; background: var(--cwo-accent); color: #fff; font-weight: 700; padding: 0 24px; cursor: pointer; font-family: var(--cwo-ui); font-size: 15px; min-height: 52px; }
.cwo-search button:hover { background: var(--cwo-accent-dark); }

/* Category chips: one row, scrolls sideways when needed */
.cwo-cats-wrap { margin: 14px 0 0; position: relative; }
.cwo-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding: 2px 2px 4px; overscroll-behavior-x: contain; }
.cwo-chips::-webkit-scrollbar { display: none; }
.cwo-chip { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; height: 42px; display: inline-flex; align-items: center; border: 1.5px solid var(--cwo-line); background: #fff; color: var(--cwo-ink); border-radius: 999px; padding: 0 16px; cursor: pointer; font-weight: 500; font-family: var(--cwo-ui); font-size: 14px; transition: background .15s, border-color .15s, color .15s; }
.cwo-chip:hover { border-color: var(--cwo-secondary); }
.cwo-chip[aria-pressed=true] { background: var(--cwo-primary); border-color: var(--cwo-primary); color: #fff; font-weight: 600; }

/* Count + selects */
.cwo-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 18px 0 14px; scroll-margin-top: 110px; }
.cwo-count-wrap { display: flex; align-items: baseline; gap: 12px; }
.cwo-toolbar h2 { font-size: clamp(19px, 2vw, 22px); }
.cwo-clear { background: none; border: 0; color: var(--cwo-secondary); font-weight: 600; cursor: pointer; font-family: var(--cwo-ui); font-size: 14px; padding: 8px 4px; }
.cwo-selects { display: flex; gap: 10px; flex-wrap: wrap; }
.cwo-select { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--cwo-line); border-radius: 10px; padding: 0 4px 0 12px; height: 44px; font-size: 13px; color: var(--cwo-muted); font-weight: 600; }
.cwo-select select { border: 0; background: transparent; font: 500 14px var(--cwo-ui); color: var(--cwo-ink); height: 40px; padding: 0 6px; cursor: pointer; max-width: 190px; }
.cwo-select select:focus { outline: none; }
.cwo-select:focus-within { border-color: var(--cwo-secondary); }

/* Grid */
.cwo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--cwo-gap); align-items: stretch; }
.cwo-grid > .cwo-empty { grid-column: 1 / -1; }
.cwo-card { background: var(--cwo-card); border: 1px solid var(--cwo-line); border-radius: var(--cwo-radius); box-shadow: var(--cwo-shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .15s ease, box-shadow .15s ease; }
.cwo-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16,61,45,.06), 0 14px 30px rgba(16,61,45,.1); }
.cwo-card-img { display: block; aspect-ratio: 4 / 3; background: #EFEADB; overflow: hidden; }
.cwo-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.cwo-card-body { padding: 14px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cwo-card-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cwo-secondary); }
.cwo .cwo-card-name { font-family: var(--cwo-head); font-size: 17.5px; line-height: 1.25; margin: 2px 0 4px; }
.cwo-card-name a { color: var(--cwo-primary); text-decoration: none; padding: 3px 0; min-height: calc(2.5em + 6px); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cwo-card-name a:hover { text-decoration: underline; }
.cwo-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--cwo-muted); }
.cwo-card-meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cwo-card-meta svg { width: 14px; height: 14px; fill: currentColor; flex: 0 0 auto; }
.cwo-card-price { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--cwo-line); font-size: 13px; color: var(--cwo-muted); }
.cwo-card-price b { font-size: 17px; color: var(--cwo-primary); white-space: nowrap; }
.cwo-card-actions { margin-top: auto; padding-top: 12px; display: grid; gap: 8px; }
.cwo-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; border-radius: 10px; font-weight: 700; font-size: 14px; line-height: 1.2; cursor: pointer; text-decoration: none; font-family: var(--cwo-ui); padding: 6px 12px; border: 0; }
.cwo-btn-ghost { border: 1.5px solid var(--cwo-primary); color: var(--cwo-primary); background: #fff; }
.cwo-btn-ghost:hover { background: var(--cwo-soft); }
.cwo-btn-accent { background: var(--cwo-accent); color: #fff; box-shadow: 0 3px 10px rgba(245,104,22,.22); }
.cwo-btn-accent:hover { background: var(--cwo-accent-dark); }
.cwo-btn[disabled] { opacity: .65; cursor: progress; }
.cwo-short { display: none; }
.cwo-empty { background: #fff; border: 1px solid var(--cwo-line); border-radius: var(--cwo-radius); padding: 28px; text-align: center; color: var(--cwo-muted); }
.cwo-empty h3 { margin-bottom: 6px; }
.cwo-bone { background: linear-gradient(90deg, #EFEDE5 0%, #F7F5EE 40%, #EFEDE5 80%); background-size: 200% 100%; animation: cwo-sh 1.3s infinite linear; }
.cwo-skel .cwo-line { height: 14px; border-radius: 6px; margin: 6px 0; }
@keyframes cwo-sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .cwo-bone { animation: none; } .cwo-card { transition: none; } .cwo-card:hover { transform: none; } }
.cwo-fine { font-size: 12.5px; color: var(--cwo-muted); margin-top: 20px; line-height: 1.5; }
.cwo-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--cwo-primary); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); z-index: 1001; font-size: 14.5px; display: none; width: max-content; max-width: calc(100% - 32px); font-family: var(--cwo-ui); }
.cwo-toast a { color: #FFD6BE; font-weight: 700; margin-left: 8px; }

/* Breakpoints: 5 / 4 / 3 / 2 / 1 columns */
@media (min-width: 1680px) { .cwo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
  .cwo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cwo-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .cwo { padding-left: 14px; padding-right: 14px; }
  .cwo-hero { grid-template-columns: 1fr; border-radius: 18px; gap: 16px; }
  .cwo-hero-media { aspect-ratio: auto; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; order: -1; }
  .cwo-hero-media img { aspect-ratio: 16 / 10; height: auto; border-radius: 10px; }
  .cwo-hero-media img:first-child { grid-row: auto; }
  .cwo-hero { padding: 14px 16px 18px; gap: 12px; }
  .cwo .cwo-hero h1 { margin: 2px 0 8px; font-size: clamp(22px, 6.4vw, 28px); }
  .cwo-hero p { font-size: 14px; line-height: 1.5; }
  .cwo-hero-points { margin-top: 12px; font-size: 13px; }
  .cwo-hero-points b { font-size: 15px; }
  .cwo-eyebrow { display: none; }
  .cwo-toolbar { margin-top: 14px; }
  .cwo-selects { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .cwo-select { min-width: 0; }
  .cwo-select select { max-width: none; width: 100%; min-width: 0; }
}
@media (max-width: 599px) {
  .cwo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cwo-card-body { padding: 10px; }
  .cwo .cwo-card-name { font-size: 15px; }
  .cwo-card-cat { font-size: 10.5px; }
  .cwo-card-meta { font-size: 12px; gap: 2px 10px; }
  .cwo-card-price { font-size: 12px; margin-top: 8px; padding-top: 8px; }
  .cwo-card-price b { font-size: 15.5px; }
  .cwo-card-actions { padding-top: 10px; }
  .cwo-btn { font-size: 13px; padding: 6px 8px; }
  .cwo-long { display: none; }
  .cwo-short { display: inline; }
  .cwo-search button { padding: 0 16px; }
  .cwo-search input { height: 48px; padding: 0 8px; }
  .cwo-select span { display: none; }
}
@media (max-width: 359px) {
  .cwo-grid { grid-template-columns: 1fr; }
  .cwo-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .cwo-card-img { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .cwo-card-name a { min-height: 44px; }
  .cwo-hero-points li:last-child { display: none; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .cwo-btn { font-size: 13.5px; }
}

/* Recipe page (v3 layout) */
.cwo.cwo-r { max-width: 1180px; }
.cwo-crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 0 0 14px; color: var(--cwo-muted); }
.cwo-crumbs a { color: var(--cwo-secondary); font-weight: 600; text-decoration: none; }
.cwo-crumbs a:hover { text-decoration: underline; }
.cwo-hero-card { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 32px; align-items: center; background: #fff; border: 1px solid var(--cwo-line); border-radius: 20px; box-shadow: var(--cwo-shadow); padding: 20px; }
.cwo-hero-media { position: relative; }
.cwo-recipe-img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; background: #EFEADB; display: block; }
.cwo-recipe-head { min-width: 0; padding-right: 8px; }
.cwo-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cwo-secondary); }
.cwo-recipe-head h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; margin: 6px 0 8px; }
.cwo-recipe-head p.lead { color: var(--cwo-muted); font-size: 15.5px; line-height: 1.55; margin: 0 0 18px; }
.cwo-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.cwo-fact { background: var(--cwo-bg); border: 1px solid var(--cwo-line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 76px; min-width: 0; }
.cwo-fact-k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cwo-muted); }
.cwo-fact b { color: var(--cwo-primary); font-size: 17px; line-height: 1.2; }
.cwo-fact b.cap { text-transform: capitalize; }
.cwo-fact small { font-size: 12px; color: var(--cwo-muted); }
.cwo-serv { display: inline-flex; align-items: center; align-self: flex-start; background: #fff; border: 1px solid var(--cwo-line); border-radius: 8px; overflow: hidden; }
.cwo-serv button { width: 40px; height: 40px; border: 0; background: #fff; color: var(--cwo-primary); font-size: 18px; cursor: pointer; }
.cwo-serv button:hover { background: var(--cwo-soft); }
.cwo-serv output { min-width: 28px; text-align: center; font-weight: 700; font-size: 16px; color: var(--cwo-primary); }
.cwo-buybox { background: var(--cwo-soft); border: 1px solid var(--og-light, #E8F2E3); border-radius: 14px; padding: 14px 16px; }
.cwo-buybox-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cwo-buybox-total #cwo-total-n { font-size: 14px; color: var(--cwo-ink); }
.cwo-buybox-total b { font-family: var(--cwo-head); font-size: 28px; color: var(--cwo-primary); white-space: nowrap; }
.cwo-btn-lg { width: 100%; margin-top: 10px; min-height: 50px; font-size: 15.5px; }
.cwo-buybox .cwo-fine { margin: 10px 0 0; }
.cwo-recipe-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.cwo-panel { background: #fff; border: 1px solid var(--cwo-line); border-radius: 18px; box-shadow: var(--cwo-shadow); padding: 22px; min-width: 0; }
.cwo-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.cwo-panel-head h2 { font-size: 22px; }
.cwo-panel-head span { font-size: 13px; color: var(--cwo-muted); }
.cwo-panel-hint { font-size: 13px; color: var(--cwo-muted); margin: 0 0 8px; }
.cwo-panel .ars-steps { margin-top: 14px; }
.cwo .cwo-sub { font-size: 16px; margin: 18px 0 6px; }
.cwo-sub small { font-family: var(--cwo-ui); font-weight: 400; color: var(--cwo-muted); font-size: 12px; }
.cwo-text { color: var(--cwo-ink); line-height: 1.55; margin: 0; font-size: 14.5px; }
@media (max-width: 1080px) {
  .cwo-hero-card { grid-template-columns: 320px minmax(0, 1fr); gap: 24px; }
  .cwo-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cwo-hero-card { grid-template-columns: 1fr; padding: 14px; gap: 16px; }
  .cwo-recipe-img { aspect-ratio: 4 / 3; }
  .cwo-recipe-head { padding: 0 4px; }
  .cwo-recipe-body { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .cwo-panel { padding: 16px; }
}
@media (max-width: 420px) {
  .cwo-fact { padding: 8px 10px; min-height: 68px; }
  .cwo-fact b { font-size: 15px; }
  .cwo-buybox-total b { font-size: 24px; }
}

/* Recipe page: household items + sticky purchase bar (v5) */
.cwo .cwo-sub-first { margin-top: 10px; }
.cwo-local { list-style: none; margin: 0; padding: 0; }
.cwo-local li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name tag" "qty tag"; align-items: center; gap: 0 10px; padding: 9px 0; border-top: 1px solid var(--cwo-line); }
.cwo-local-name { grid-area: name; font-weight: 600; color: var(--cwo-ink); font-size: 14.5px; }
.cwo-local-name em { font-weight: 400; color: var(--cwo-muted); font-style: normal; font-size: 12.5px; }
.cwo-local-qty { grid-area: qty; font-size: 13px; color: var(--cwo-muted); }
.cwo-local-tag { grid-area: tag; font-size: 11.5px; font-weight: 600; color: var(--cwo-muted); background: var(--cwo-bg); border: 1px solid var(--cwo-line); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.cwo-bar { display: none; }
@media (max-width: 860px) {
  .cwo-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--cwo-line); box-shadow: 0 -6px 20px rgba(16,61,45,.1); transform: translateY(110%); transition: transform .2s ease; }
  .cwo-bar.on { transform: none; }
  .cwo-bar-info { display: flex; flex-direction: column; min-width: 0; }
  .cwo-bar-n { font-size: 12.5px; color: var(--cwo-muted); }
  .cwo-bar-t { font-family: var(--cwo-head); font-size: 21px; color: var(--cwo-primary); line-height: 1.1; }
  .cwo-bar .cwo-btn { margin-left: auto; min-height: 46px; padding: 0 22px; font-size: 15px; }
  body.cwo-bar-on .cwo { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  body.cwo-bar-on .fab_cart { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
  body.cwo-bar-on .cwo-toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .cwo-bar { transition: none; } }
/* product rows inside the ingredients panel */
.cwo-panel .ars-prod-row select { min-height: 44px; }
.cwo-panel .ars-qty button { min-width: 40px; min-height: 40px; }
@media (max-width: 430px) {
  .cwo-panel .ars-prod { grid-template-columns: 44px 1fr; padding: 8px; }
  .cwo-panel .ars-prod img { width: 44px; height: 44px; }
  .cwo-panel .ars-prod-row { gap: 6px; }
  .cwo-panel .ars-prod-row select { flex: 1 1 100%; }
  .cwo-panel .ars-price { margin-left: auto; }
}
