:root {
  --bg: #f3efe8;          /* warm oat - page background */
  --card: #ffffff;
  --slate: #0f172a;
  --slate-2: #1e293b;
  --cream: #fdfbe7;       /* matches the logo */
  --ink: #1c1917;
  --muted: #57534e;
  --line: #ddd6cc;
  --bacon: #b45309;
  --bacon-dark: #92400e;
  --bacon-soft: #fbeedd;
  --good-soft: #e7f5ea;
  --good: #15803d;
  --error: #b91c1c;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { font-size: 112.5%; scroll-behavior: smooth; scroll-padding-top: 1rem; scroll-padding-bottom: 6rem; }
@media (min-width: 640px) { html { font-size: 118.75%; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, .brand, .price-tag, .order-panel-title, .box-contents-title {
  font-family: "Noto Sans SC", -apple-system, sans-serif; line-height: 1.2;
}
a { color: var(--bacon-dark); }

.wrap { max-width: 40rem; margin: 0 auto; padding: 0 1rem; }
.wrap-wide { max-width: 68rem; }

/* ---------- Header ---------- */
.masthead {
  background: linear-gradient(rgba(15, 23, 42, .8), rgba(15, 23, 42, .93)), url(/streaky.jpg) center / cover;
  color: var(--cream);
  padding: 1.5rem 0 1.75rem;
  text-align: center;
}
.logo { width: 5rem; height: 5rem; }
.brand { margin: .35rem 0 0; font-size: .95rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.masthead h1 { margin: .2rem 0 0; font-size: 2.1rem; font-weight: 700; }

main { padding-bottom: 6rem; }

/* ---------- Two-column layout (desktop) ---------- */
.page-side { display: none; }
@media (min-width: 960px) {
  .page { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; align-items: start; }
  .page-side { display: block; position: sticky; top: 1.5rem; margin-top: 1.5rem; }
  .order-panel-inline { display: none; }
  .totalbar { display: none; }
  main { padding-bottom: 3rem; }
}

/* ---------- Intro ---------- */
.intro { margin: 1.5rem 0 .5rem; }
.deadline {
  display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem;
  background: var(--slate); border-radius: var(--radius);
  padding: .85rem 1rem; font-size: 1.15rem; color: var(--cream);
}
.deadline strong { color: #fbbf77; }
.deadline-icon { width: 1.6rem; height: 1.6rem; flex: none; color: #fbbf77; }

.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
@media (min-width: 640px) { .notes { grid-template-columns: repeat(3, 1fr); } }
.notes li {
  display: flex; align-items: center; gap: .65rem;
  background: var(--good-soft); border: 2px solid #bfe3c8; border-radius: 12px;
  padding: .65rem .8rem; font-weight: 600; line-height: 1.3; color: #14532d;
}
.note-icon { flex: none; width: 1.7rem; height: 1.7rem; color: var(--good); }

/* ---------- Steps ---------- */
.step { margin: 2.5rem 0 0; }
.step > h2 { font-size: 1.5rem; margin: 0 0 .9rem; display: flex; align-items: center; gap: .6rem; }
.num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--slate); color: var(--cream); font-size: 1.15rem;
}

/* ---------- Prices ---------- */
.price-tag {
  display: inline-block; margin: 0; white-space: nowrap;
  color: var(--bacon-dark); font-weight: 700; font-size: 1.5rem;
}
.price-each { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price-tag-sm { font-size: 1.05rem; margin-top: .1rem; }

/* ---------- Product cards ---------- */
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1rem; margin: 1rem 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.card-head h3 { margin: 0; font-size: 1.35rem; }
.card-desc { margin: .5rem 0 .25rem; color: var(--muted); }

.product { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.1rem; }
.card-head + .product { border-top-width: 2px; }
.product h4 { margin: 0; font-size: 1.2rem; }
.product-desc { margin: .2rem 0 .7rem; color: #78716c; font-size: .88rem; font-style: italic; line-height: 1.45; max-width: 34rem; }

/* Cut options sit in a quiet panel under the product name */
.options { background: #faf7f2; border-radius: 12px; overflow: hidden; }
.options .row { margin: 0; padding: .35rem .5rem .35rem .9rem; border-radius: 0; }
.options .row + .row { border-top: 1px solid #ece5da; }
.options .row-name { font-size: .95rem; font-weight: 600; }
.card:not(.card-featured) .options .step-btn { width: 2.6rem; height: 2.6rem; font-size: 1.4rem; }
@media (min-width: 640px) {
  .card:not(.card-featured) .options .step-btn { width: 2.15rem; height: 2.15rem; font-size: 1.2rem; }
  .card:not(.card-featured) .options .stepper input { width: 2.8rem; height: 2.5rem; font-size: 1.1rem; }
}
.card-featured .options { background: none; border-radius: 0; overflow: visible; }

.row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .45rem .5rem; margin: 0 -.5rem; border-radius: 10px;
  transition: background .15s;
}
.row.has-qty { background: var(--bacon-soft); }
.row-label { flex: 1; cursor: pointer; }
.row-name { display: block; font-size: 1.05rem; }

.stepper { display: flex; align-items: center; flex: none; }
.step-btn {
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 2px solid var(--bacon); background: #fff; color: var(--bacon-dark);
  font-size: 1.6rem; line-height: 1; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.step-btn[data-step="1"] { background: var(--bacon); color: #fff; }
.step-btn:active { transform: scale(.94); }
.stepper input {
  width: 3.2rem; height: 3rem; margin: 0 .35rem; text-align: center;
  font: inherit; font-size: 1.25rem; font-weight: 700;
  border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Featured card (the selection box) */
.feature-photo { display: none; }
.card-featured { padding: 0; overflow: hidden; border: 0; }
.card-featured .feature-body { padding: 1.2rem 1.1rem 1.1rem; }
.feature-photo { position: relative; }
.card-featured .feature-photo { display: block; }
.feature-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-featured .card-head h3 { font-size: 1.6rem; }
.card-featured .price-tag { font-size: 2rem; }
.card-featured .product { border-top: 0; margin-top: 1rem; padding-top: 0; }
.card-featured .row { margin: 0; padding: .6rem .6rem .6rem 1rem; border-radius: 12px; }
.card-featured .row-name { font-weight: 700; font-size: 1.1rem; }
.card-featured {
  background: #fdf6e9; border: 2px solid var(--bacon); box-shadow: 0 6px 0 #f0d3b0;
}
.card-featured .feature-photo img { height: 12rem; }

.box-contents {
  margin: 1rem 0 0; padding: .9rem 1rem 1rem;
  background: #fff; border: 2px dashed #e8b98a; border-radius: 12px;
}
.box-contents-title {
  display: flex; align-items: center; gap: .45rem; margin: 0 0 .6rem;
  font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bacon-dark); font-weight: 700;
}
.box-contents-title svg { width: 1.3rem; height: 1.3rem; color: var(--bacon); }
.box-contents ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
@media (min-width: 640px) { .box-contents ul { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; } }
.box-contents li { display: flex; gap: .55rem; align-items: baseline; font-weight: 600; color: var(--slate); }
.box-contents li::before { content: "🥓"; font-size: 1.05em; }

.card-featured .row { background: #fff; border: 1px solid #f0d3b0; }
.card-featured .row.has-qty { background: var(--bacon-soft); }

/* ---------- Fields ---------- */
.field { margin: 0 0 1.25rem; }
.field label { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: .3rem; }
.field input, .field textarea {
  display: block; width: 100%; font: inherit; font-size: 1.1rem; color: var(--ink);
  padding: .7rem .8rem; border: 2px solid #8a817a; border-radius: 10px; background: #fff;
}
.field textarea { resize: vertical; }
.field textarea::placeholder { color: #8a817a; }
.optional { font-weight: 400; color: var(--muted); font-size: .95rem; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); border-width: 3px; }

/* ---------- Payment choices ---------- */
.choices { display: grid; gap: .75rem; }
.choice {
  display: flex; gap: .85rem; align-items: center; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem;
}
.choice:has(input:checked) { border-color: var(--bacon); background: var(--bacon-soft); box-shadow: 0 0 0 1px var(--bacon); }
.choice input { width: 1.6rem; height: 1.6rem; margin: 0; accent-color: var(--bacon); flex: none; }
.choice-title { display: block; font-weight: 700; font-size: 1.1rem; }
.choice-desc { display: block; color: var(--muted); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--good); color: #fff; padding: .1rem .5rem; border-radius: 999px; vertical-align: middle; margin-left: .25rem; }

/* ---------- Order panel (receipt) ---------- */
.order-panel {
  background: var(--slate); color: var(--cream); border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1rem; box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .6);
}
.order-panel-title { margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 700; }
.order-panel table { width: 100%; border-collapse: collapse; }
.order-panel td { padding: .4rem 0; vertical-align: top; border-bottom: 1px dashed rgba(253, 251, 231, .25); }
.order-panel .amt { text-align: right; white-space: nowrap; padding-left: 1rem; }
.order-panel .total td { font-family: "Noto Sans SC", sans-serif; font-weight: 700; font-size: 1.4rem; border-bottom: 0; padding-top: .7rem; color: #fff; }
.order-panel .summary-empty { margin: .25rem 0; opacity: .75; }
.order-panel-link { display: block; margin-top: .8rem; color: #fbbf77; font-weight: 700; }

/* Light summary used on the thanks/orders pages */
.summary { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; }
.summary table { width: 100%; border-collapse: collapse; }
.summary td { padding: .4rem 0; vertical-align: top; border-bottom: 1px solid #eee; }
.summary .amt { text-align: right; white-space: nowrap; padding-left: 1rem; }
.summary .total td { font-weight: 700; font-size: 1.2rem; border-bottom: 0; border-top: 2px solid var(--ink); padding-top: .6rem; }
.summary-empty { margin: .25rem 0; color: var(--muted); }

.submit, .button-link {
  display: block; width: 100%; margin: 1.25rem 0 .5rem; padding: 1.1rem 1rem;
  font: inherit; font-size: 1.3rem; font-weight: 700; text-align: center; text-decoration: none;
  background: var(--good); color: #fff; border: 0; border-radius: var(--radius); cursor: pointer;
  box-shadow: 0 4px 0 #14532d;
}
.submit:hover, .button-link:hover { background: #166534; }
.submit:active { transform: translateY(2px); box-shadow: 0 2px 0 #14532d; }
.submit:disabled { opacity: .7; cursor: wait; }

/* ---------- Errors & notices ---------- */
.error-summary, .notice { border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1.5rem 0 0; }
.error-summary { border: 4px solid var(--error); background: #fff; }
.error-summary:focus { outline: 3px solid #fbbf24; }
.error-summary h2, .notice h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--error); font-weight: 700; }
.notice { border: 3px solid var(--bacon); background: var(--bacon-soft); }
.notice p { margin: 0; }
.field-error { color: var(--error); font-weight: 700; margin: .25rem 0 .5rem; }

/* ---------- Sticky total bar (mobile) ---------- */
.totalbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--slate); color: var(--cream);
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .2);
}
.totalbar-inner { display: flex; align-items: center; gap: 1rem; max-width: 40rem; margin: 0 auto; }
.totalbar #bar-count { flex: 1; }
.totalbar #bar-total { font-size: 1.3rem; }
.bar-link { color: #fbbf77; font-weight: 700; white-space: nowrap; }
.totalbar.is-empty .bar-link { display: none; }

/* ---------- Confirmation ---------- */
.confirm { text-align: center; margin: 2rem 0 0; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1rem; }
.confirm h2 { font-size: 1.8rem; margin: .5rem 0; }
.confirm-tick { width: 4rem; height: 4rem; margin: 0 auto; border-radius: 50%; background: var(--good); color: #fff; font-size: 2.3rem; line-height: 4rem; font-weight: 700; }
.confirm-lead { font-size: 1.3rem; margin: 0 0 .5rem; }
.confirm-number { margin: 0; }
.next { padding-left: 1.2rem; margin: 0; }
.next li { margin: .4rem 0; }
.address-label { font-weight: 700; margin: 1rem 0 .2rem; }
.address { margin: 0; }
.hint { color: var(--muted); margin: 0 0 .5rem; }
.contents { margin: 0 0 .75rem; padding-left: 1.25rem; }

/* ---------- Orders page ---------- */
.order-card h3 { font-size: 1.15rem; }
.order-card .card-price { margin: 0; font-weight: 700; color: var(--bacon-dark); }
.order-pay { display: inline-block; margin: .4rem 0; padding: .1rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 700; color: #fff; background: var(--good); }
.order-pay.cash { background: var(--bacon); }
.order-meta { margin: 0 0 .4rem; }
.order-notes { margin: .5rem 0 0; padding: .5rem .7rem; background: var(--bacon-soft); border-radius: 8px; }
.order-card .hint { margin: .5rem 0 0; font-size: .85rem; }

:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

