@font-face { font-family: "Slab"; src: url(fonts/robotoslab.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Brush"; src: url(fonts/kaushan.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dmsans.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --red: #7d1416; --red-2: #9c1c1e; --red-dark: #4f0b0c;
  --cream: #f7ead2; --cream-2: #efdcbb; --paper: #fbf4e6;
  --ink: #2b1810; --muted: #6f5646; --line: #dcc49d;
  --ok: #2f6b2f; --warn: #a3620b;
  --radius: 14px; --shadow: 0 10px 30px -14px rgba(79, 11, 12, .45);
  --slab: "Slab", Georgia, serif; --brush: "Brush", "Brush Script MT", cursive; --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--slab); line-height: 1.12; margin: 0 0 .5em; color: var(--red-dark); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.script { font-family: var(--brush); color: var(--red); font-size: 1.5rem; margin: 0 0 .1em; }
.script-inline { font-family: var(--brush); font-weight: 400; color: var(--red); }
:focus-visible { outline: 3px solid #d98a1f; outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: var(--shadow); }
.btn-red:hover { background: var(--red-2); }
.btn-line { border-color: var(--red); color: var(--red); background: transparent; }
.btn-line:hover { background: var(--red); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: .5em .9em; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; color: var(--red); text-decoration: underline; cursor: pointer; font-weight: 600; }

/* header */
.round-strip { background: var(--red-dark); color: var(--cream); font-size: .85rem; text-align: center; padding: 6px 12px; display: flex; gap: .5em; align-items: center; justify-content: center; }
.round-strip b { color: #fff; }
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(247, 234, 210, .93); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 20px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--red-dark); margin-right: auto; }
.brand img { border-radius: 50%; width: 52px; height: 52px; }
.brand b { font-family: var(--slab); font-size: 1.1rem; display: block; line-height: 1.1; }
.brand small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--red); }
.cart-btn { position: relative; background: var(--red); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -4px; right: -4px; background: #fff; color: var(--red); border: 2px solid var(--red); font-size: .72rem; font-weight: 800; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 4px; }
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 860px) { .nav { display: none; } .brand small { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 0; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 0%, #fff6e4 0, transparent 60%), radial-gradient(ellipse at 100% 30%, var(--cream-2) 0, transparent 55%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; padding-bottom: 40px; }
.hero h1 { color: var(--red-dark); }
.brush { display: inline-block; background: var(--red); color: #fff; padding: .05em .35em .12em; margin-top: .15em; transform: rotate(-1.2deg); clip-path: polygon(1% 8%, 6% 0, 30% 5%, 60% 0, 96% 4%, 100% 30%, 98% 70%, 100% 96%, 70% 100%, 40% 95%, 4% 100%, 0 70%, 2% 35%); }
.lede { font-size: 1.12rem; max-width: 36em; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta-row.center { justify-content: center; }
.round-card { background: var(--paper); border: 2px solid var(--red); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.rc-row { display: flex; gap: 14px; align-items: center; }
.rc-row small { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--muted); }
.rc-row b { font-family: var(--slab); font-size: 1.35rem; color: var(--red-dark); }
.rc-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.rc-ic svg { width: 26px; height: 26px; }
.rc-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.rc-count div { background: var(--red-dark); color: #fff; border-radius: 10px; padding: 8px 0; }
.rc-count b { font-family: var(--slab); font-size: 1.6rem; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rc-count span { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.hero-meat { width: 100%; height: clamp(120px, 20vw, 240px); object-fit: cover; object-position: center 40%; mask-image: linear-gradient(to bottom, transparent 0, #000 30%); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%); }
@media (max-width: 860px) { .hero { padding-top: 32px; } .hero-in { grid-template-columns: 1fr; } }

/* sections */
.section { padding: 72px 0; }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head h2 { margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; position: relative; }
.steps li > svg { width: 38px; height: 38px; color: var(--red); margin-bottom: 10px; }
.steps .num { position: absolute; top: 14px; right: 16px; font-family: var(--slab); font-weight: 800; font-size: 2.2rem; color: var(--cream-2); line-height: 1; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.weight { background: var(--paper); border-block: 1px solid var(--line); }
.weight-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.label-demo { background: #fdeef0; border-radius: 6px; padding: 22px; font-family: ui-monospace, Menlo, monospace; box-shadow: var(--shadow); transform: rotate(1.5deg); border: 1px solid #e9c9cd; }
.ld-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 12px; gap: 10px; }
.ld-top b { font-family: var(--sans); font-size: 1.1rem; }
.ld-top span { font-size: .7rem; text-transform: uppercase; color: var(--muted); }
.ld-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); }
.ld-grid div { padding: 8px 12px; border: 1px solid var(--ink); }
.ld-grid small { display: block; font-size: .72rem; }
.ld-grid b { font-size: 1.15rem; }
.ld-total { background: var(--ink); color: #fff; }
.ld-note { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 860px) { .weight-in { grid-template-columns: 1fr; } }

.sup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sup { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: transform .2s, box-shadow .2s; }
.sup:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sup h3 { margin: 0; }
.sup p { margin: 0; color: var(--muted); }
.sup .count { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--red); display: flex; align-items: center; gap: .4em; }
@media (max-width: 760px) { .sup-grid { grid-template-columns: 1fr; } }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; text-decoration: none; color: #fff; background: var(--red-dark); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat:hover img { transform: scale(1.06); }
.cat span { position: absolute; inset: auto 0 0; padding: 26px 12px 10px; font-family: var(--slab); font-weight: 700; background: linear-gradient(transparent, rgba(40, 6, 6, .88)); line-height: 1.2; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr 1fr; } }

.delivery { background: var(--red-dark); color: var(--cream); background-image: radial-gradient(ellipse at 10% 0, var(--red) 0, transparent 60%); }
.sec-head.light h2 { color: #fff; }
.sec-head.light .script { color: #f2b9a0; }
.fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.fee { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 24px; text-align: center; }
.fee small { display: block; font-weight: 700; color: var(--muted); }
.fee b { display: block; font-family: var(--slab); font-size: 2.6rem; color: var(--red); line-height: 1.1; margin-top: 6px; }
.fee.accent { background: #fff; outline: 3px dashed var(--red); outline-offset: -8px; }
.fee.accent > svg { width: 28px; height: 28px; color: var(--red); margin: 0 auto 4px; }
.fee-notes { max-width: 900px; margin: 28px auto 0; display: grid; gap: 10px; }
.fee-notes p { display: flex; gap: 12px; align-items: center; margin: 0; }
.fee-notes b { color: #fff; }
@media (max-width: 700px) { .fee-grid { grid-template-columns: 1fr; } }
.cta-end-in { text-align: center; }

/* footer */
.site-foot { background: #24120d; color: #e6d3b7; padding: 56px 0 24px; margin-top: 0; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-logo { border-radius: 50%; margin-bottom: 14px; }
.foot-tag { max-width: 30em; color: #c9b291; }
.site-foot h3 { color: #fff; font-size: 1rem; }
.site-foot a { color: #e6d3b7; display: flex; align-items: center; gap: .5em; text-decoration: none; padding: 3px 0; }
.site-foot a:hover { color: #fff; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid #4a2f24; margin-top: 32px; padding-top: 18px; font-size: .88rem; }
.foot-base a { display: inline; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

/* shop */
.shop-head { padding: 36px 0 12px; position: sticky; top: 68px; z-index: 20; background: var(--cream); border-bottom: 1px solid var(--line); }
.shop-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .1em; }
.shop-head .muted { margin-bottom: 12px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; }
.search svg { color: var(--muted); }
.search input { border: 0; outline: 0; background: none; padding: 10px 0; width: 100%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chips { margin-top: 10px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
@media (max-width: 860px) { .shop-head { position: static; } }
.shop-body { padding: 24px 0 90px; }
.cat-block { margin-bottom: 36px; scroll-margin-top: 230px; }
.cat-title { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cat-title img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.cat-title h2 { font-size: 1.5rem; margin: 0; }
.cat-title small { color: var(--muted); font-weight: 600; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.prod { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; transition: border-color .2s, box-shadow .2s; }
.prod.in-cart { border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
.prod-name { font-weight: 700; line-height: 1.3; }
.prod-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sup-tag { background: var(--cream-2); color: var(--red-dark); border-radius: 6px; padding: 1px 7px; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.price { font-family: var(--slab); font-weight: 800; color: var(--red); white-space: nowrap; text-align: right; }
.price small { font-family: var(--sans); font-weight: 600; color: var(--muted); font-size: .75rem; }
.prod .qty-row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.prod .est { font-size: .82rem; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.stepper button { width: 36px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; font-weight: 700; color: var(--red); }
.stepper button:hover { background: var(--cream); }
.stepper output { min-width: 64px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .92rem; }
.add-btn { border: 0; background: var(--red); color: #fff; border-radius: 999px; padding: 7px 16px; font-weight: 700; cursor: pointer; }
.add-btn:hover { background: var(--red-2); }
.empty { text-align: center; padding: 40px; color: var(--muted); }
.cart-bar { position: fixed; inset: auto 0 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 234, 210, .95); border-top: 1px solid var(--line); z-index: 30; }
@media (min-width: 861px) { .cart-bar { display: none; } }
.prod.sold { opacity: .55; }

/* drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(36, 18, 13, .5); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--cream); z-index: 61; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; box-shadow: -20px 0 40px rgba(0, 0, 0, .2); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.4rem; }
.x { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.line-name { font-weight: 700; line-height: 1.3; }
.line-sub { font-size: .8rem; color: var(--muted); }
.line .stepper button { width: 30px; height: 28px; }
.line .stepper output { min-width: 56px; font-size: .85rem; }
.line-ctl { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.rm { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .82rem; }
.totals { display: grid; gap: 4px; margin-bottom: 12px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: var(--slab); font-weight: 800; font-size: 1.2rem; color: var(--red-dark); border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
.free-bar { font-size: .85rem; margin-bottom: 12px; }
.free-bar .bar { height: 8px; background: var(--cream-2); border-radius: 4px; overflow: hidden; margin-top: 5px; }
.free-bar .bar i { display: block; height: 100%; background: var(--red); border-radius: 4px; transition: width .3s; }
.note-box { font-size: .82rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--muted); margin-bottom: 12px; }
.empty-cart { text-align: center; padding: 50px 10px; color: var(--muted); }
.empty-cart svg { width: 48px; height: 48px; color: var(--line); margin: 0 auto 10px; }

/* checkout & order */
.checkout, .order-page { padding: 36px 0 70px; }
.co-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.co-form label { display: block; font-weight: 600; margin-bottom: 14px; }
.co-form input:not([type=radio]), .co-form select, .co-form textarea { display: block; width: 100%; margin-top: 5px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 400; }
.co-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.co-form legend { font-weight: 600; padding: 0 6px; }
.co-form .radio { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.co-form small { color: var(--muted); font-weight: 400; }
.hint { background: #e7f2df; color: var(--ok); border-radius: 10px; padding: 8px 12px; font-weight: 600; display: flex; gap: 8px; align-items: center; margin: -6px 0 14px; }
.co-err { background: #fbe3e3; color: var(--red); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-weight: 600; }
.fine { font-size: .8rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.co-sum { position: sticky; top: 90px; }
.co-sum h2 { font-size: 1.3rem; }
.co-sum .line { grid-template-columns: 1fr auto; }
.deposit { background: #fff4e0; border: 1px solid #f0cf94; border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin-top: 12px; }
@media (max-width: 860px) { .co-grid { grid-template-columns: 1fr; } .co-sum { position: static; order: -1; } }
.order-card { max-width: 680px; margin: 0 auto; text-align: center; }
.order-card .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; }
.order-card .tick svg { width: 40px; height: 40px; }
.order-card .ref { font-family: var(--slab); font-size: 1.4rem; color: var(--red); }
.order-card .card { text-align: left; margin: 20px 0; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; text-align: left; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; }
.timeline li span { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--cream-2); color: var(--red-dark); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.timeline li.done span { background: var(--ok); color: #fff; }

/* legal */
.legal { max-width: 780px; padding: 44px 0 70px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal.center { text-align: center; }
.draft { background: #fff4e0; border: 1px solid #f0cf94; padding: 8px 12px; border-radius: 8px; font-size: .9rem; }

/* modal & toast */
.modal { border: 0; border-radius: 18px; padding: 26px; max-width: 460px; width: calc(100% - 32px); background: var(--paper); color: var(--ink); }
.modal::backdrop { background: rgba(36, 18, 13, .55); }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 80; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* motion */
.fade-up { opacity: 0; transform: translateY(18px); animation: up .7s forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .3s; }
@keyframes up { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
.label-demo.reveal.in { transform: rotate(1.5deg); }
@media (prefers-reduced-motion: reduce) { .fade-up, .reveal { opacity: 1; transform: none; animation: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- admin ---------- */
body[data-page="admin"] { background: #f3ece1; }
.adm { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.adm-side { background: var(--red-dark); color: var(--cream); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.adm-side .brand { color: #fff; margin: 0 0 18px; }
.adm-side .brand b { font-size: .98rem; }
.adm-side .brand img { width: 44px; height: 44px; }
.adm-tab { background: none; border: 0; color: var(--cream); text-align: left; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.adm-tab:hover { background: rgba(255, 255, 255, .08); }
.adm-tab[aria-current="true"] { background: var(--cream); color: var(--red-dark); }
.adm-tab .pill { background: #fff; color: var(--red); }
.adm-side .side-foot { margin-top: auto; font-size: .78rem; opacity: .8; display: grid; gap: 8px; }
.adm-side .side-foot a { color: var(--cream); }
.adm-main { padding: 26px 30px 60px; min-width: 0; }
.adm-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.adm-top h1 { font-size: 1.8rem; margin: 0; }
.adm-top p { margin: 2px 0 0; color: var(--muted); }
.demo-flag { background: #fff4e0; border: 1px solid #f0cf94; color: #7a4a06; font-size: .82rem; padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat small { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.stat b { display: block; font-family: var(--slab); font-size: 1.6rem; color: var(--red-dark); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.panel h2 { font-size: 1.2rem; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid #eee2cf; vertical-align: top; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #fbf4e6; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: .74rem; font-weight: 700; background: var(--cream-2); color: var(--red-dark); white-space: nowrap; }
.pill.new { background: #fde2c4; color: #8a4b05; }
.pill.confirmed { background: #e2e8fb; color: #2b4596; }
.pill.bought { background: #efe0f7; color: #6a2d8a; }
.pill.weighed { background: #dff1f1; color: #1d6363; }
.pill.out { background: #fff1b8; color: #6b5600; }
.pill.delivered { background: #dcefd7; color: var(--ok); }
.pill.cancelled { background: #eee; color: #777; }
.pill.paid { background: #dcefd7; color: var(--ok); }
.pill.due { background: #fbe3e3; color: var(--red); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 6px 14px; cursor: pointer; font-weight: 600; font-size: .88rem; }
.seg button[aria-pressed="true"] { background: var(--red); color: #fff; }
.adm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wt { width: 92px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; text-align: right; font-variant-numeric: tabular-nums; }
.wt.changed { border-color: var(--ok); background: #f1f9ee; }
.adm-input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.check { width: 20px; height: 20px; accent-color: var(--red); }
.tbl tr.ticked td { text-decoration: line-through; color: var(--muted); }
.back { background: none; border: 0; color: var(--red); font-weight: 700; cursor: pointer; padding: 0; margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.sup-section { border-left: 4px solid var(--red); }
.help { font-size: .85rem; color: var(--muted); margin: -4px 0 12px; }
.switch { position: relative; width: 40px; height: 22px; appearance: none; background: #d8c8b0; border-radius: 11px; cursor: pointer; transition: .2s; vertical-align: middle; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.switch:checked { background: var(--ok); }
.switch:checked::after { left: 21px; }
.price-in { width: 100px; }
.adm-menu { display: none; }
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: sticky; top: 0; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; z-index: 10; gap: 6px; }
  .adm-side .brand, .adm-side .side-foot { display: none; }
  .adm-tab { white-space: nowrap; }
  .adm-main { padding: 18px 16px 60px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .adm-grid2 { grid-template-columns: 1fr; }
}
@media print {
  .adm-side, .adm-top .row-actions, .no-print, .demo-flag { display: none !important; }
  .adm { display: block; }
  .panel { border: 0; break-inside: avoid; }
}
.totals.mt { margin-top: 12px; }
.note-box.tight { margin: 10px 0 0; }
.mt { margin-top: 12px; }
.mb { margin-bottom: 12px; }
