/* ============================================================
   EDAMAME EATS — styles
   Palette: lavender · green · grey
   ============================================================ */

:root {
  /* core palette */
  --bg:        #E9E7F1;   /* lavender-grey page canvas */
  --bg-warm:   #DFDCEC;   /* grey-lavender chips / nav / meta */
  --card:      #FCFBFE;   /* dish card surface (near white) */
  --green:     #5E8C52;   /* edamame green (primary) */
  --green-deep:#3F6637;   /* deep green (buttons, logo) */
  --green-soft:#E4EEDD;   /* pale green chip */
  --lav:       #7E6CB8;   /* lavender accent */
  --lav-deep:  #5E4E96;
  --lav-soft:  #E7E1F4;   /* pale lavender chip */
  --ink:       #2C2A33;   /* near-black text */
  --muted:     #6E6A78;   /* grey text */
  --line:      #E0DCEA;   /* hairlines */
  --white:     #ffffff;

  --radius:    22px;
  --radius-sm: 14px;
  --shadow:    0 10px 30px rgba(60, 50, 90, .08);
  --shadow-sm: 0 4px 14px rgba(60, 50, 90, .07);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }

/* ---------------- NAV ---------------- */
.nav-outer { position: sticky; top: 0; z-index: 40; padding: 14px 20px; background: linear-gradient(var(--bg) 70%, rgba(243,242,247,0)); }
.nav {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: var(--shadow-sm);
}
.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--green-deep);
  letter-spacing: -.01em;
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.logo .bean { font-size: 1.15em; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px;
}
.nav-links a:hover { background: var(--lav-soft); }
.nav-links a.active { color: var(--green-deep); }

.cart-btn {
  border: none; cursor: pointer;
  background: var(--lav-deep); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: 10px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.cart-btn:hover { background: #4a3c7d; }
.cart-count {
  background: var(--green); color: #fff; font-size: .78rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ---------------- HERO ---------------- */
.hero { text-align: center; padding: 40px 20px 14px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .72rem;
  font-weight: 700; color: var(--lav-deep); margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.05; margin: 0 auto 10px; max-width: 16ch;
  text-wrap: balance; letter-spacing: -.015em;
}
.hero .sub { color: var(--muted); font-size: 1.08rem; max-width: 42ch; margin: 0 auto; }

.delivery-bar {
  display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center;
  margin: 22px auto 0; max-width: 760px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px; font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.badge.lav .dot { background: var(--lav); }

/* wellness ribbon */
.ribbon {
  max-width: 820px; margin: 26px auto 0;
  background: var(--lav-soft); border: 1px solid #DCD2EE;
  color: var(--lav-deep);
  border-radius: var(--radius-sm); padding: 14px 20px;
  font-size: .92rem; text-align: center;
}
.ribbon .star { font-weight: 700; }

/* ---------------- DAY PICKER ---------------- */
#how { margin-top: 30px; }
#day-select { margin-top: 44px; }
.day-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; margin: 22px auto 0; }
@media (max-width: 560px) { .day-cards { grid-template-columns: 1fr; } }
.day-card {
  cursor: pointer; text-align: left; font-family: var(--sans);
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-sm); transition: .15s; position: relative;
}
.day-card:hover { border-color: var(--lav); transform: translateY(-2px); }
.day-card.sel { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.day-card.sel::after {
  content: "✓ Selected"; position: absolute; top: 16px; right: 18px;
  font-size: .78rem; font-weight: 700; color: var(--green-deep);
}
.dc-day { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.dc-note { color: var(--green-deep); font-weight: 600; font-size: .9rem; }
.dc-cut { color: var(--muted); font-size: .92rem; margin-top: 4px; }

.day-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--lav-soft); border: 1px solid #DCD2EE; color: var(--lav-deep);
  border-radius: var(--radius-sm); padding: 12px 18px; margin: 10px 0 4px; font-size: .95rem;
}
.change-day {
  border: 1px solid var(--lav); background: transparent; color: var(--lav-deep);
  font-family: var(--sans); font-weight: 600; font-size: .85rem; padding: 7px 14px;
  border-radius: 999px; cursor: pointer;
}
.change-day:hover { background: #fff; }

/* ---------------- FILTERS ---------------- */
.filters-outer { position: sticky; top: 84px; z-index: 30; background: var(--bg); padding: 18px 0 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--lav); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------- MENU GRID ---------------- */
.section-label {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  margin: 34px 0 4px;
}
.section-sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }

.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.thumb {
  position: relative; aspect-ratio: 4 / 3;
  background: radial-gradient(120% 120% at 50% 20%, var(--green-soft), var(--lav-soft));
  display: flex; align-items: center; justify-content: center;
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .placeholder {
  width: 58%; aspect-ratio: 1; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line), 0 8px 20px rgba(60,50,90,.1);
  display: flex; align-items: center; justify-content: center; font-size: 2.6rem;
}
.thumb .wellness-mark {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.92); color: var(--lav-deep);
  font-weight: 700; font-size: .78rem; border-radius: 999px;
  padding: 5px 11px; box-shadow: var(--shadow-sm);
}

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  background: var(--lav-soft); color: var(--lav-deep);
  border-radius: 999px; padding: 3px 10px;
}
.tag.spicy { background: #F7E3DA; color: #A8552F; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; margin: 0; line-height: 1.2; }
.card p.desc { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }

.pair-base {
  align-self: flex-start; border: 1px dashed var(--lav); background: var(--lav-soft);
  color: var(--lav-deep); font-family: var(--sans); font-weight: 600; font-size: .77rem;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.pair-base:hover { background: #ddd2f1; }

.pair-suggest { display: flex; flex-direction: column; gap: 6px; }
.pair-note { margin: 0; color: var(--muted); font-size: .82rem; font-style: italic; }
.pair-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pair-lab {
  font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-right: 2px;
}

.meta { display: flex; gap: 8px; flex-wrap: wrap; }
.meta .stat {
  background: var(--bg-warm); border-radius: 10px; padding: 6px 10px;
  text-align: center; font-size: .78rem; color: var(--muted); line-height: 1.2;
}
.meta .stat b { display: block; color: var(--ink); font-size: .92rem; font-variant-numeric: tabular-nums; }

/* hot-flash benefit note */
.meno {
  background: var(--green-soft); border-radius: var(--radius-sm);
  padding: 8px 11px; font-size: .8rem; color: var(--muted); line-height: 1.4;
}
.meno .meno-mark { margin-right: 5px; }

/* size toggle */
.sizes { display: inline-flex; background: var(--bg-warm); border-radius: 999px; padding: 3px; gap: 2px; }
.sizes button {
  border: none; background: none; cursor: pointer; font-family: var(--sans);
  font-weight: 600; font-size: .82rem; color: var(--muted);
  padding: 6px 12px; border-radius: 999px;
}
.sizes button.sel { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.price { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.price .per { display: block; font-weight: 500; font-size: .74rem; color: var(--muted); }
.add {
  border: none; cursor: pointer; background: var(--green); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: .9rem;
  padding: 9px 16px; border-radius: 999px; transition: .15s;
}
.add:hover { background: var(--green-deep); }
.add.added { background: var(--lav); }

/* ---------------- CART DRAWER ---------------- */
.overlay {
  position: fixed; inset: 0; background: rgba(44,42,51,.4);
  opacity: 0; pointer-events: none; transition: .2s; z-index: 50;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: var(--bg); z-index: 60; box-shadow: -12px 0 40px rgba(60,50,90,.18);
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; overflow-x: hidden;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 14px; }
.drawer-head h2 { font-family: var(--serif); font-size: 1.4rem; margin: 0; }
.close-x { border: none; background: var(--bg-warm); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 1.1rem; color: var(--muted); }
.drawer-items { flex: 1; overflow-y: auto; padding: 0 22px; }
.cart-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row .ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--lav-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.cart-row .info { flex: 1; min-width: 0; }
.cart-row .info .n { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.cart-row .info .s { color: var(--muted); font-size: .8rem; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty button { border: 1px solid var(--line); background: var(--card); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--ink); }
.qty span { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 18px; text-align: center; }
.cart-row .rowprice { font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-empty { color: var(--muted); text-align: center; padding: 60px 20px; }
.cart-empty .big { font-size: 2.4rem; margin-bottom: 10px; }

.drawer-foot { padding: 18px 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg-warm); }
.subtotal { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.subtotal .lab { font-weight: 600; }
.deliv-opts { margin: 12px 0 8px; display: flex; flex-direction: column; gap: 6px; }
.dopt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font-size: .86rem;
}
.dopt.ok { border-color: var(--green); background: var(--green-soft); }
.dleft { display: flex; flex-direction: column; min-width: 0; }
.dname { font-weight: 600; }
.dblurb { font-style: normal; font-weight: 400; color: var(--muted); font-size: .76rem; }
.dmeta { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.dopt.ok .dmeta { color: var(--green-deep); }
.min-note { font-size: .85rem; color: var(--lav-deep); margin: 2px 0 10px; }
.foot-note { color: var(--muted); font-size: .82rem; margin: 0 0 14px; }
.checkout {
  width: 100%; border: none; cursor: pointer; background: var(--green-deep); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; padding: 15px; border-radius: 14px;
}
.checkout:hover { background: #355730; }
.checkout:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------- FOOTER ---------------- */
footer { margin-top: 60px; background: var(--lav-deep); color: #EDE8F7; }
footer .wrap { padding-block: 44px; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
footer h4 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 6px; color: #fff; }
footer a { color: #D7CEEE; text-decoration: none; }
footer a:hover { color: #fff; }
footer .col { max-width: 320px; }
footer .muted { color: #BDB2DA; font-size: .88rem; }

/* ---------------- ABOUT PAGE ---------------- */
.about-hero { text-align: center; padding: 48px 20px 10px; }
.about-hero h1 { font-family: var(--serif); font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 10px auto; max-width: 18ch; line-height: 1.05; text-wrap: balance; }
.about-hero .sub { color: var(--muted); font-size: 1.1rem; max-width: 50ch; margin: 0 auto; }
.story { max-width: 720px; margin: 10px auto; padding: 20px; }
.story h2 { font-family: var(--serif); font-size: 1.6rem; margin: 36px 0 10px; }
.story p { font-size: 1.06rem; color: #3a3742; }
.story p + p { margin-top: 14px; }
.pull {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; color: var(--lav-deep);
  border-left: 3px solid var(--lav); padding: 6px 0 6px 22px; margin: 30px 0; text-wrap: balance;
}
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 30px 0; }
@media (max-width: 680px){ .values { grid-template-columns: 1fr; } }
.value {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.value .vemoji { font-size: 1.7rem; }
.value h3 { font-family: var(--serif); font-size: 1.15rem; margin: 10px 0 6px; }
.value p { font-size: .92rem; color: var(--muted); margin: 0; }
.cta-band { text-align: center; padding: 10px 20px 20px; }
.btn-primary {
  display: inline-block; text-decoration: none; background: var(--green-deep); color: #fff;
  font-weight: 700; padding: 14px 30px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #355730; }

/* ---------------- BOWL BUILDER ---------------- */
.bowl-cat { margin-bottom: 30px; }
.subsection-label {
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--ink);
  margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--lav-soft);
}
.build-head { margin-top: 36px; }

.bowl-builder { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
@media (max-width: 860px) { .bowl-builder { grid-template-columns: 1fr; } }

.bb-group { margin-bottom: 22px; }
.bb-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600; margin-bottom: 12px;
}
.bb-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: .85rem;
}
.bb-head .opt-opt { font-family: var(--sans); font-weight: 500; font-size: .85rem; color: var(--muted); }

.bb-sizes { display: inline-flex; gap: 4px; margin-left: auto; background: var(--bg-warm); border-radius: 999px; padding: 3px; }
.bb-sizes button {
  border: none; background: none; cursor: pointer; font-family: var(--sans); font-weight: 600;
  font-size: .82rem; color: var(--muted); padding: 6px 12px; border-radius: 999px;
}
.bb-sizes button em { font-style: normal; font-weight: 400; opacity: .7; margin-left: 3px; }
.bb-sizes button.sel { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.bb-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 520px) { .bb-opts { grid-template-columns: 1fr; } }
.bb-opt {
  display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 12px 14px; font-family: var(--sans); font-size: .92rem; color: var(--ink); transition: .14s;
}
.bb-opt:hover { border-color: var(--lav); }
.bb-opt.sel { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.opt-emoji { font-size: 1.4rem; flex-shrink: 0; }
.opt-name { flex: 1; font-weight: 600; line-height: 1.2; }
.opt-flame { margin-left: 5px; font-size: .9em; }
.opt-price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.bb-opt.sel .opt-price { color: var(--green-deep); }
.bb-none { color: var(--muted); }
.bb-none .opt-emoji { font-size: 1.05rem; color: var(--muted); }
.bb-none.sel { border-color: var(--lav); background: var(--lav-soft); box-shadow: inset 0 0 0 1px var(--lav); color: var(--lav-deep); }

.bb-summary {
  position: sticky; top: 150px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.bb-summary h3 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 14px; }
.bb-lines { list-style: none; margin: 0 0 14px; padding: 0; }
.bb-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.bb-lines .l { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.bb-lines .v { line-height: 1.25; }
.bb-lines .p { font-weight: 700; font-variant-numeric: tabular-nums; }
.bb-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0; font-size: 1.05rem; }
.bb-total b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.bb-add {
  width: 100%; border: none; cursor: pointer; background: var(--green-deep); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: .98rem; padding: 13px; border-radius: 12px;
}
.bb-add:hover { background: #355730; }
.bb-add:disabled { opacity: .45; cursor: not-allowed; }
.bb-hint { color: var(--muted); font-size: .82rem; text-align: center; margin: 10px 0 0; }
.bb-or { text-align: center; font-size: .82rem; color: var(--muted); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.bb-sides-link { background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: .82rem; font-weight: 700; color: var(--lav-deep); padding: 2px 0; }
.bb-sides-link:hover { text-decoration: underline; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s; z-index: 70;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 620px) {
  .nav { padding: 10px 14px; gap: 10px; }
  .nav-links a:not(.cart-btn-wrap) { display: none; }
  .filters-outer { top: 76px; }
}
