/* Holiday pre-order pages (/preorder, /preorder-acres) — farms.css look */
:root {
  --ink: #1c2320;
  --muted: #5c6660;
  --line: #d8d2c4;
  --green: #1a3a2a;
  --soft: #eef3ee;
  --warn: #8a2c12;
  --bg: #fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); padding: 0 16px 7rem; }
.wrap { max-width: 560px; margin: 0 auto; }
img { max-width: 100%; display: block; }
.head { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0 0.6rem; }
.head img { width: 52px; height: 52px; border-radius: 13px; border: 1px solid var(--line); }
.head .brand { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
h1 { font-size: 1.45rem; line-height: 1.2; }
.lede { color: var(--muted); font-size: 0.95rem; line-height: 1.45; margin: 0.3rem 0 0.8rem; }
.how { background: var(--soft); border-radius: 10px; padding: 0.7rem 0.9rem; margin-bottom: 1rem; font-size: 0.92rem; line-height: 1.45; }
.how ol { margin-left: 1.15rem; }
.how li { margin-bottom: 0.2rem; }
h2 { font-size: 0.95rem; margin: 1.4rem 0 0.55rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--green); border-bottom: 2px solid var(--line); padding-bottom: 0.25rem; }
h2 .sub { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: 0.85rem; margin-left: 0.3rem; }

/* product cards */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.item.chosen { border: 2px solid var(--green); }
.item .ph { aspect-ratio: 1 / 1; background: #f6f4ef; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.8rem; text-align: center; padding: 0.5rem; }
.item .ph img { width: 100%; height: 100%; object-fit: cover; }
.item .body { padding: 0.55rem 0.6rem 0.6rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.item .name { font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.item .meta { font-size: 0.82rem; color: var(--muted); }
.item .price { font-weight: 700; font-size: 0.95rem; }
.item .blurb { font-size: 0.82rem; line-height: 1.35; color: var(--ink); }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; background: var(--green); color: #fff; border-radius: 5px; padding: 0.12rem 0.4rem; align-self: flex-start; }
.badge.off { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.more { background: none; border: 0; color: var(--green); font-size: 0.8rem; font-weight: 600; text-decoration: underline; cursor: pointer; align-self: flex-start; padding: 0.1rem 0; }
.detail { font-size: 0.8rem; line-height: 1.4; color: var(--muted); }
.qty { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.35rem; }
.qty button { width: 42px; height: 42px; border-radius: 10px; border: 2px solid var(--green); background: #fff; color: var(--green); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.qty button.plus { background: var(--green); color: #fff; }
.qty button:disabled { opacity: 0.35; cursor: default; }
.qty output { font-weight: 700; font-size: 1.05rem; min-width: 2.2rem; text-align: center; }
.add { width: 100%; min-height: 42px; border-radius: 10px; border: 2px solid var(--green); background: #fff; color: var(--green); font-weight: 700; font-size: 0.95rem; cursor: pointer; margin-top: auto; }
.standonly { font-size: 0.8rem; color: var(--muted); margin-top: auto; padding-top: 0.35rem; }

/* compact list for the full menu */
.list { display: flex; flex-direction: column; gap: 0.45rem; }
.row { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.6rem; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 0.45rem; }
.row.chosen { border: 2px solid var(--green); }
.row .ph { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #f6f4ef; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.65rem; text-align: center; }
.row .ph img { width: 100%; height: 100%; object-fit: cover; }
.row .name { font-weight: 700; font-size: 0.92rem; line-height: 1.25; }
.row .meta { font-size: 0.8rem; color: var(--muted); }
.row .blurb { font-size: 0.8rem; color: var(--ink); line-height: 1.3; }
.row .qty { margin: 0; padding: 0; gap: 0.25rem; }
.row .qty button { width: 38px; height: 38px; }
.row .add { width: auto; min-height: 38px; padding: 0 0.8rem; }

/* pickup + contact */
.card { border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 0.9rem; margin-bottom: 0.6rem; }
label.f { display: block; font-weight: 700; font-size: 0.9rem; margin: 0.6rem 0 0.25rem; }
label.f:first-child { margin-top: 0; }
label.f .opt { font-weight: 500; color: var(--muted); }
select, input, textarea { width: 100%; font: inherit; font-size: 1rem; border: 2px solid var(--line); border-radius: 10px; padding: 0.6rem 0.65rem; background: #fff; color: var(--ink); }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--green); }
textarea { min-height: 70px; }
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; line-height: 1.35; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.summary { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.summary td { padding: 0.3rem 0; vertical-align: top; }
.summary td.n { width: 2.4rem; color: var(--muted); }
.summary td.p { text-align: right; white-space: nowrap; }
.summary tr.tot td { border-top: 1px solid var(--line); font-weight: 700; padding-top: 0.45rem; }
.err { color: var(--warn); font-weight: 600; font-size: 0.9rem; margin: 0.5rem 0; }
.err::before { content: "Problem: "; }
.submit { width: 100%; min-height: 52px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font-size: 1.05rem; font-weight: 700; cursor: pointer; margin-top: 0.4rem; }
.submit:disabled { opacity: 0.55; cursor: default; }
.fine { font-size: 0.8rem; color: var(--muted); line-height: 1.4; margin-top: 0.6rem; }

/* sticky cart bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 2px solid var(--line); padding: 0.6rem 16px calc(0.6rem + env(safe-area-inset-bottom)); }
.bar .in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 0.8rem; justify-content: space-between; }
.bar .sum { font-size: 0.92rem; }
.bar .sum strong { font-size: 1.05rem; }
.bar button { min-height: 46px; padding: 0 1.2rem; border: 0; border-radius: 10px; background: var(--green); color: #fff; font-weight: 700; font-size: 0.98rem; cursor: pointer; }
.bar[hidden] { display: none; }

.done { text-align: left; padding: 1rem 0; }
.done h1 { margin-bottom: 0.5rem; }
.done .code { font-size: 1.1rem; font-weight: 700; background: var(--soft); border-radius: 10px; padding: 0.6rem 0.8rem; margin: 0.8rem 0; }
.again { background: none; border: 2px solid var(--green); color: var(--green); border-radius: 10px; min-height: 44px; padding: 0 1rem; font-weight: 700; font-size: 0.95rem; cursor: pointer; margin-top: 0.8rem; }
.loading { color: var(--muted); padding: 2rem 0; }
.foot { margin-top: 1.6rem; font-size: 0.8rem; color: var(--muted); border-top: 2px solid var(--line); padding-top: 0.6rem; line-height: 1.45; }

@media (max-width: 360px) {
  .grid { grid-template-columns: 1fr; }
}

/* PH 10/29: payment due at pickup, said plainly; editing an order */
.paybox { margin-top: 0.6rem; font-size: 0.9rem; background: var(--soft); border-radius: 8px; padding: 0.5rem 0.65rem; }
.paydue { border: 2px solid var(--green); background: var(--soft); border-radius: 12px; padding: 0.75rem 0.85rem; margin: 0.8rem 0; font-size: 1.02rem; line-height: 1.4; }
.editbox { border: 2px solid var(--green); border-radius: 12px; padding: 0.7rem 0.85rem; margin: 0.8rem 0; font-size: 0.95rem; line-height: 1.4; }
a.again { display: inline-flex; align-items: center; text-decoration: none; margin-right: 0.5rem; }
a.again.editbtn { background: var(--green); color: #fff; }
