:root {
  --green: #1C3A2C; --green2: #5E9C76; --mint: #93C4A3; --cream: #F1EEDF; --cream2: #E6E0CC;
  --ink: #2B2A26; --muted: #6B675C; --white: #fff; --bad: #b3261e; --ok: #1d6b3f; --radius: 16px;
  --ease: cubic-bezier(.23, 1, .32, 1);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Lato', system-ui, sans-serif; color: var(--ink); background: var(--cream); line-height: 1.5; }
body.od-lock { overflow: hidden; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--green); line-height: 1.2; }
a { color: var(--green); }
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* header: the shared site menu bar (nav.css + site.css) */

.od-wrap { max-width: 760px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.od-wrap > h1 { font-size: 2rem; font-weight: 900; margin: .8rem 0 .2rem; }
.od-lead { margin: 0 0 1rem; color: var(--muted); }
.od-last { display: block; margin-bottom: 1rem; font-weight: 700; }
.od-state { padding: .8rem 1rem; border-radius: var(--radius); font-weight: 700; margin-bottom: 1rem; }
.od-state:empty { display: none; }
.od-state.open { background: #dff3e8; color: var(--ok); }
.od-state.closed { background: #fdecea; color: var(--bad); }

/* ── sticky section tabs ── */
.od-cats { position: sticky; top: 64px; z-index: 10; display: flex; gap: .5rem; overflow-x: auto; margin: 0 -1rem; padding: .6rem 1rem; background: var(--cream); box-shadow: 0 6px 10px -8px rgba(0,0,0,.25); scrollbar-width: none; }
.od-cats::-webkit-scrollbar { display: none; }
.od-cats a { flex: 0 0 auto; padding: .5rem .95rem; border-radius: 999px; background: var(--white); border: 1px solid var(--cream2); color: var(--green); text-decoration: none; font-weight: 700; font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.od-cats a.on { background: var(--green); border-color: var(--green); color: var(--white); }
.od-cat h2 { font-size: 1.45rem; font-weight: 900; margin: 1.6rem 0 .7rem; }
.od-cat { scroll-margin-top: 126px; }

/* ── items ── */
.od-item { display: flex; align-items: center; gap: .9rem; padding: .8rem .9rem; background: var(--white); border-radius: var(--radius); margin-bottom: .6rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.od-thumb { flex: 0 0 76px; width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0,0,0,.12)); }
.od-item-main { flex: 1; min-width: 0; }
.od-item h3 { font-family: 'Lato', sans-serif; font-size: 1rem; font-weight: 900; margin: 0; color: var(--ink); }
.od-item p { margin: .2rem 0 0; font-size: .86rem; color: var(--muted); }
.od-item.sold { opacity: .55; }
.od-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; flex-shrink: 0; }
.od-price { font-weight: 900; }
.od-add { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--green); color: var(--white); font: 900 1.5rem/1 'Lato', sans-serif; cursor: pointer; display: grid; place-items: center; transition: transform .15s var(--ease), background .2s; }
.od-add:hover { background: #26503d; }
.od-add:active { transform: scale(.9); }
.od-step { display: inline-flex; align-items: center; gap: .15rem; background: var(--green); border-radius: 999px; padding: 3px; color: var(--white); font-weight: 900; }
.od-step button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--white); font: 900 1.2rem/1 'Lato', sans-serif; cursor: pointer; }
.od-step button:hover { background: rgba(255,255,255,.15); }
.od-step button:disabled { opacity: .4; cursor: not-allowed; }
.od-step span { min-width: 1.4rem; text-align: center; }
.od-soldout { font-size: .8rem; font-weight: 700; color: var(--bad); }

/* ── basket / checkout ── */
.od-checkout { margin-top: 2rem; padding: 0 1.2rem 1.2rem; background: var(--white); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.od-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0 .4rem; background: var(--white); }
.od-sheet-head h2 { margin: 0; font-weight: 900; }
.od-close { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cream); color: var(--green); font-size: 1.1rem; cursor: pointer; }
.od-empty { color: var(--muted); }
.od-line { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--cream2); }
.od-line-main { display: flex; justify-content: space-between; gap: 1rem; }
.od-qty { display: flex; align-items: center; gap: .6rem; }
.od-qty button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--green); background: var(--white); color: var(--green); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.od-line-note { grid-column: 1 / -1; width: 100%; padding: .6rem .7rem; font: inherit; font-size: 16px; border: 1px solid #cfc8b6; border-radius: 10px; }

form label { display: block; font-weight: 700; font-size: .92rem; margin: .7rem 0 0; }
form input, form textarea { display: block; width: 100%; margin-top: .3rem; padding: .75rem .8rem; font: inherit; font-size: 16px; border: 1px solid #cfc8b6; border-radius: 10px; background: #fffdf8; }
.od-mode { border: 0; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.od-mode legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.od-mode label { margin: 0; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 56px; border: 2px solid var(--cream2); border-radius: 12px; cursor: pointer; font-size: 1rem; }
.od-mode input { width: auto; margin: 0; }
.od-mode label:has(input:checked) { border-color: var(--green); background: #e8f3ec; }
.od-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.od-grid[hidden] { display: none; }
.od-full { grid-column: 1 / -1; }
.od-row { display: flex; gap: .5rem; }
.od-row input { flex: 1; }
.od-btn-sec { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: .3rem; padding: 0 1rem; border: 2px solid var(--green); border-radius: 10px; background: var(--white); color: var(--green); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.od-quote { margin: .5rem 0 0; font-weight: 700; }
.od-quote.ok { color: var(--ok); }
.od-quote.bad { color: var(--bad); }
.od-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.od-totals { margin-top: 1.2rem; }
.od-totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.od-totals small { color: var(--muted); font-weight: 400; }
.od-totals .od-grand { font-weight: 900; font-size: 1.15rem; border-top: 2px solid var(--green); margin-top: .3rem; padding-top: .5rem; }
.od-min { color: var(--bad); font-weight: 700; margin: .4rem 0 0; }
.od-cash { background: var(--cream); padding: .7rem .9rem; border-radius: 10px; font-weight: 700; }
.od-error { color: var(--bad); font-weight: 700; margin: .5rem 0; }
.od-error:empty { display: none; }
.od-ferr { display: block; color: var(--bad); font-size: .85rem; font-weight: 700; margin-top: .2rem; }
.od-btn { display: block; width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: #F2B134; color: #2B2A26; box-shadow: 0 8px 22px rgba(242,177,52,.35); font: inherit; font-size: 1.15rem; font-weight: 900; cursor: pointer; }
.od-btn:disabled { background: #9aa59f; color: var(--white); box-shadow: none; cursor: not-allowed; }
.od-privacy { font-size: .8rem; color: var(--muted); }

/* ── bottom bar, backdrop, toast ── */
.od-bar { position: fixed; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 30; max-width: 728px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 0; border-radius: 14px; background: var(--green); color: var(--white); font: 900 1rem 'Lato', sans-serif; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.od-bar[hidden] { display: none; }
.od-bar.bump { animation: od-bump .3s var(--ease); }
@keyframes od-bump { 40% { transform: scale(1.03); } }
.od-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.od-backdrop.show { opacity: 1; }
.od-backdrop[hidden] { display: none; }
.od-toast { position: fixed; left: 50%; top: 76px; z-index: 130; transform: translate(-50%, -12px); opacity: 0; padding: .65rem 1.1rem; border-radius: 999px; background: var(--green); color: var(--white); font-weight: 900; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: opacity .25s, transform .25s var(--ease); }
.od-toast.show { opacity: 1; transform: translate(-50%, 0); }
.od-toast[hidden] { display: none; }

/* Phones & tablets: the checkout is a slide-up sheet */
@media (max-width: 1023px) {
  .od-checkout { position: fixed; left: 50%; bottom: 0; z-index: 120; width: min(760px, 100%); max-height: 90vh; margin: 0; overflow-y: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0,0,0,.25); transform: translate(-50%, 105%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; }
  .od-checkout.open { transform: translate(-50%, 0); visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
  .od-sheet-head { position: sticky; top: 0; z-index: 1; }
  .od-sheet-head::before { content: ''; position: absolute; top: .45rem; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #ddd; }
  .od-close { display: grid; place-items: center; }
}

/* Desktop: menu + sticky basket side panel */
@media (min-width: 1024px) {
  .od-wrap { max-width: 1180px; padding-bottom: 3rem; }
  .od-page .st-footer { padding-bottom: 2.4rem; }
  .od-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 2rem; align-items: start; }
  .od-checkout { position: sticky; top: 80px; margin-top: 0; max-height: calc(100vh - 88px); overflow-y: auto; }
  .od-bar, .od-backdrop { display: none !important; }
}

/* status page */
.od-steps { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.od-steps[hidden] { display: none; }
.od-steps li { position: relative; padding-top: 2.3rem; text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); }
.od-steps li::before { content: attr(data-n); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--cream2); color: var(--muted); }
.od-steps li.done { color: var(--green); }
.od-steps li.done::before { content: '✓'; background: var(--green); color: var(--white); }
.od-status .od-state { font-size: 1.15rem; }
.od-receipt { background: var(--white); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; }
.od-receipt h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.od-receipt ul { list-style: none; padding: 0; margin: 0 0 .6rem; }
.od-receipt li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--cream2); }
.od-receipt li small { display: block; color: var(--muted); }

@media (max-width: 520px) {
  .od-grid { grid-template-columns: 1fr; }
  .od-wrap > h1 { font-size: 1.7rem; }
  .od-thumb { flex-basis: 64px; width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  .od-checkout, .od-backdrop, .od-toast, .od-add, .od-cats a { transition: none !important; }
  .od-bar.bump { animation: none; }
}
