:root {
  --wine: #701c34;
  --wine-dark: #40101f;
  --wine-deep: #250b13;
  --orange: #f07d16;
  --orange-dark: #d86206;
  --cream: #fff8ed;
  --cream-deep: #f6ead8;
  --paper: #fffdf9;
  --ink: #24191b;
  --muted: #75696b;
  --line: #e9ddd4;
  --green: #257a51;
  --red: #c63d3d;
  --yellow: #f4b83c;
  --shadow: 0 20px 60px rgba(65, 20, 32, .12);
  --soft-shadow: 0 8px 30px rgba(65, 20, 32, .08);
  --radius: 24px;
  --radius-sm: 14px;
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; transform: translateY(-140%); padding: 10px 14px; border-radius: 8px; background: white; color: var(--wine); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 70; height: 82px; display: flex; align-items: center; background: rgba(255,253,249,.92); border-bottom: 1px solid rgba(112,28,52,.09); backdrop-filter: blur(18px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: max-content; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { color: var(--wine); font-family: Georgia, serif; font-size: 1.6rem; letter-spacing: -.04em; }
.brand-copy small { margin-top: 6px; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .13em; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.contact-link { display: flex; align-items: center; gap: 10px; padding-right: 12px; text-decoration: none; }
.contact-link > span:last-child { display: grid; }
.contact-link small { color: var(--muted); font-size: .72rem; }
.contact-link strong { font-size: .88rem; }
.icon-circle { display: grid; place-items: center; width: 35px; height: 35px; color: var(--wine); background: var(--cream-deep); border-radius: 50%; }
.ghost-button, .dashboard-button { border: 1px solid var(--line); border-radius: 12px; padding: 11px 15px; background: white; font-size: .82rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: .2s ease; }
.ghost-button:hover, .dashboard-button:hover { border-color: var(--wine); color: var(--wine); transform: translateY(-1px); }
.cart-pill { min-width: 164px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 0; border-radius: 15px; color: white; background: var(--wine); cursor: pointer; box-shadow: 0 8px 20px rgba(112,28,52,.22); }
.cart-pill > span:nth-child(2) { display: grid; text-align: left; }
.cart-pill small { opacity: .76; font-size: .69rem; }
.cart-pill strong { font-size: .84rem; }
.cart-icon { font-size: 1.15rem; }
.cart-count { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 50px; color: var(--wine-dark); background: var(--orange); font-weight: 900; font-size: .76rem; }

.hero { padding-top: 24px; }
.hero-card { min-height: 590px; display: grid; grid-template-columns: 1.04fr .96fr; overflow: hidden; border-radius: 34px; color: white; background: linear-gradient(135deg, var(--wine) 0%, #5b1228 62%, #3f0b1b 100%); position: relative; }
.hero-card::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: radial-gradient(circle at 20% 30%, white 0 1px, transparent 1.5px); background-size: 24px 24px; mask-image: linear-gradient(90deg, black, transparent 70%); }
.hero-copy { z-index: 1; align-self: center; padding: clamp(42px, 6vw, 80px); padding-right: 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #ffd9bd; font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.warm { color: var(--orange-dark); }
.status-dot, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ae3a1; box-shadow: 0 0 0 5px rgba(90,227,161,.12); }
.hero h1 { max-width: 700px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 5.25vw, 5.25rem); font-weight: 600; line-height: .98; letter-spacing: -.055em; }
.hero-copy > p { max-width: 650px; margin: 28px 0 30px; color: rgba(255,255,255,.78); font-size: 1.04rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 13px; color: #321009; background: var(--orange); box-shadow: 0 8px 24px rgba(240,125,22,.24); font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.primary-button:hover { background: #ff902e; transform: translateY(-2px); }
.primary-button.full { width: 100%; }
.primary-button.danger { color: white; background: var(--red); box-shadow: none; }
.text-button { color: white; text-underline-offset: 5px; font-weight: 700; font-size: .9rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 36px; color: rgba(255,255,255,.68); font-size: .73rem; }
.trust-row b { color: #73e5aa; }
.hero-art { min-height: 590px; display: grid; place-items: center; position: relative; overflow: hidden; }
.hero-art::before { content: ""; width: 540px; height: 540px; position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12), rgba(255,255,255,.025) 68%, transparent 69%); }
.hero-pizza-photo { width: min(500px, 94%); height: auto; display: block; position: relative; z-index: 2; border-radius: 50%; object-fit: contain; transform: rotate(-2deg); filter: drop-shadow(-24px 30px 34px rgba(18,3,8,.42)); }
.pizza-illustration { width: min(430px, 86%); aspect-ratio: 1; border: 18px solid #d9943b; border-radius: 50%; background: radial-gradient(circle at 45% 48%, #ffda65 0 39%, #f5bb3c 40% 55%, #dc8b29 56% 66%, #a94822 67% 100%); position: relative; transform: rotate(-8deg); box-shadow: -24px 30px 55px rgba(18,3,8,.42), inset 0 0 30px rgba(134,46,18,.45); }
.pizza-illustration::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; opacity: .7; background-image: radial-gradient(ellipse at center, #fff0a6 0 30%, transparent 34%); background-size: 36px 28px; }
.pepperoni { width: 64px; aspect-ratio: 1; position: absolute; z-index: 2; border-radius: 50%; background: radial-gradient(circle at 36% 35%, #e9703f 0 15%, #bd3e25 16% 100%); box-shadow: inset -5px -7px 9px rgba(94,22,15,.25); }
.pepperoni::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; border: 3px dotted rgba(255,183,112,.65); }
.p1 { top: 17%; left: 24%; } .p2 { top: 25%; right: 17%; } .p3 { bottom: 24%; left: 18%; } .p4 { right: 25%; bottom: 18%; }
.leaf { width: 28px; height: 55px; z-index: 3; position: absolute; border-radius: 100% 0 100% 0; background: #307e3e; box-shadow: 38px 28px 0 #3d994d; }
.l1 { top: 42%; left: 41%; transform: rotate(40deg); } .l2 { top: 19%; left: 47%; transform: rotate(-50deg); }
.hero-stamp { width: 118px; height: 118px; display: grid; place-content: center; z-index: 4; position: absolute; right: 8%; bottom: 9%; border: 2px dashed rgba(112,28,52,.4); border-radius: 50%; color: var(--wine); background: #ffefd7; text-align: center; transform: rotate(8deg); box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.hero-stamp strong { font-family: Georgia, serif; font-size: 1.28rem; }
.hero-stamp span { font-size: .64rem; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.service-strip { width: calc(100% - 80px); min-height: 90px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; margin: -24px auto 0; padding: 16px 30px; position: relative; z-index: 5; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--soft-shadow); }
.service-strip > div { min-height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 22px; border-right: 1px solid var(--line); }
.service-strip > div:last-child { border: 0; }
.service-strip span:last-child { display: grid; }
.service-strip small { color: var(--muted); font-size: .68rem; }
.service-strip strong { margin-top: 3px; font-size: .82rem; }
.service-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; color: var(--orange-dark); border-radius: 10px; background: var(--cream); font-size: 1.12rem; }

.menu-section { padding: 96px 0 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h2, .callout-card h2 { margin: 0; color: var(--wine-dark); font-family: Georgia, serif; font-size: clamp(2.25rem, 4vw, 3.6rem); font-weight: 600; letter-spacing: -.045em; }
.search-box { width: min(370px, 100%); min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: white; }
.search-box:focus-within { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(112,28,52,.08); }
.search-box input, .compact-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.category-nav { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 9px; padding: 4px 2px 14px; }
.category-list { min-width: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.category-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: .82rem; font-weight: 800; cursor: pointer; transition: .2s; }
.category-all { position: sticky; left: 0; box-shadow: 8px 0 18px rgba(255,250,245,.95); }
.category-chip b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 30px; color: var(--muted); background: var(--cream-deep); font-size: .65rem; }
.category-chip:hover, .category-chip.active { color: white; border-color: var(--wine); background: var(--wine); }
.category-chip.active b { color: var(--wine); background: white; }
.results-meta { min-height: 38px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .78rem; }
.clear-search { padding: 4px; border: 0; color: var(--wine); background: none; text-decoration: underline; cursor: pointer; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.menu-card { min-height: 245px; display: flex; flex-direction: column; overflow: hidden; position: relative; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 6px 20px rgba(58,20,29,.04); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.menu-card:hover { transform: translateY(-4px); border-color: rgba(112,28,52,.32); box-shadow: var(--soft-shadow); }
.menu-card::before { content: attr(data-number); position: absolute; top: 18px; right: 18px; color: #d9ceca; font-family: Georgia, serif; font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.menu-card-top { flex: 1; padding: 24px 24px 16px; }
.menu-card-tag { display: inline-flex; padding: 5px 8px; margin-bottom: 15px; border-radius: 7px; color: var(--orange-dark); background: var(--cream); font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.menu-card h3 { max-width: 88%; margin: 0 0 10px; color: var(--wine-dark); font-family: Georgia, serif; font-size: 1.36rem; line-height: 1.16; letter-spacing: -.02em; }
.menu-card p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: .79rem; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.menu-card-bottom { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px 13px 24px; border-top: 1px solid var(--line); background: #fffcf8; }
.menu-price { display: grid; }
.menu-price small { color: var(--muted); font-size: .62rem; }
.menu-price strong { margin-top: 2px; color: var(--wine); font-size: 1.02rem; }
.add-button { width: 38px; height: 38px; border: 0; border-radius: 11px; color: white; background: var(--wine); font-size: 1.35rem; cursor: pointer; transition: .2s; }
.add-button:hover { background: var(--orange-dark); transform: rotate(4deg) scale(1.05); }
.empty-menu { grid-column: 1/-1; padding: 60px 20px; border: 1px dashed var(--line); border-radius: 20px; text-align: center; color: var(--muted); }
.empty-menu strong { display: block; margin-bottom: 7px; color: var(--wine); font-family: Georgia, serif; font-size: 1.6rem; }

.callout-section { padding: 10px 0 90px; }
.callout-card { min-height: 220px; display: grid; grid-template-columns: 160px 1fr auto; align-items: center; gap: 30px; padding: 34px 48px; overflow: hidden; border-radius: 26px; background: var(--cream); position: relative; }
.callout-card::after { content: ""; width: 290px; height: 290px; position: absolute; right: -90px; top: -150px; border: 50px solid rgba(240,125,22,.08); border-radius: 50%; }
.callout-card img { width: 130px; height: 130px; object-fit: contain; }
.callout-card .eyebrow { margin-bottom: 7px; }
.callout-card h2 { font-size: 2.25rem; }
.callout-card p { max-width: 700px; margin: 10px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.callout-card .primary-button { z-index: 2; white-space: nowrap; }

.site-footer { padding: 60px 0 18px; color: rgba(255,255,255,.76); background: var(--wine-deep); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 70px; }
.footer-grid h3 { margin: 8px 0 17px; color: white; font-family: Georgia, serif; font-size: 1.1rem; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: .8rem; line-height: 1.7; }
.footer-grid a { color: white; text-underline-offset: 4px; }
.footer-brand img { width: 92px; height: 92px; object-fit: contain; filter: brightness(1.2); }
.footer-brand p { max-width: 310px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .7rem; }
.mobile-cart-bar { display: none; }

.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(38,9,19,.58); backdrop-filter: blur(5px); }
.overlay.dark { background: rgba(0,0,0,.7); }
.modal { max-height: min(90vh, 820px); position: fixed; z-index: 100; top: 50%; left: 50%; transform: translate(-50%,-50%); overflow: auto; border-radius: 24px; background: white; box-shadow: 0 35px 100px rgba(20,4,9,.38); }
.product-modal { width: min(870px, calc(100% - 28px)); }
.modal-close { width: 38px; height: 38px; display: grid; place-items: center; position: absolute; z-index: 5; top: 15px; right: 15px; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.9); box-shadow: 0 3px 14px rgba(0,0,0,.12); cursor: pointer; font-size: 1.4rem; }
.modal-close.static { flex: 0 0 38px; position: static; box-shadow: none; background: var(--cream); }
.product-head { min-height: 175px; padding: 35px 70px 30px 38px; color: white; background: linear-gradient(125deg, var(--wine), var(--wine-dark)); position: relative; }
.product-head::after { content: attr(data-number); position: absolute; right: 70px; bottom: 18px; color: rgba(255,255,255,.09); font-family: Georgia, serif; font-size: 5rem; font-weight: 800; }
.product-head .eyebrow { margin-bottom: 10px; }
.product-head h2 { max-width: 85%; margin: 0; font-family: Georgia, serif; font-size: 2.25rem; line-height: 1.05; }
.product-head p { max-width: 650px; margin: 11px 0 0; color: rgba(255,255,255,.68); font-size: .82rem; line-height: 1.5; }
.product-body { padding: 30px 38px 34px; }
.builder-section { padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.builder-section:last-of-type { border-bottom: 0; }
.builder-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.builder-title h3 { margin: 0; font-size: .95rem; }
.builder-title small { color: var(--muted); font-size: .7rem; }
.option-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.option-card { min-height: 70px; display: grid; place-content: center; gap: 3px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: center; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card:has(input:checked) { color: var(--wine); border: 2px solid var(--wine); background: var(--cream); }
.option-card strong { font-size: .77rem; }
.option-card small { color: var(--muted); font-size: .68rem; }
.mode-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.mode-card { min-height: 68px; display: flex; align-items: center; gap: 12px; text-align: left; }
.mode-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: .85rem; }
.mode-card > span:last-child { display: grid; }
.flavor-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.half-price-summary { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr 1.1fr; align-items: center; gap: 10px; margin-top: 13px; padding: 13px; border: 1px solid #f0d2b4; border-radius: 12px; background: var(--cream); }
.half-price-summary > span { display: grid; gap: 3px; }
.half-price-summary small { color: var(--muted); font-size: .58rem; text-transform: uppercase; letter-spacing: .05em; }
.half-price-summary strong { color: var(--wine-dark); font-size: .7rem; }
.half-price-summary > b { color: var(--orange-dark); font-size: .8rem; }
.half-price-total { align-self: stretch; justify-content: center; padding-left: 12px; border-left: 1px solid #e7c8a8; }
.half-price-total strong { color: var(--wine); font-size: .86rem; }
.form-field { display: grid; gap: 7px; color: var(--ink); font-size: .74rem; font-weight: 800; }
.form-field select, .form-field input, .form-field textarea, .checkout-form input, .checkout-form textarea, .checkout-form select, .access-card input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; outline: none; color: var(--ink); background: white; font-weight: 500; }
.form-field textarea, .checkout-form textarea { min-height: 82px; resize: vertical; }
.form-field select:focus, .form-field input:focus, .form-field textarea:focus, .checkout-form input:focus, .checkout-form textarea:focus, .access-card input:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(112,28,52,.08); }
.toppings-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.removal-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.removal-grid.one-removal-side { grid-template-columns: 1fr; }
.removal-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fffdfb; }
.removal-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 13px; border-bottom: 1px solid var(--line); background: var(--cream); }
.removal-panel-head > span { display: grid; gap: 2px; }
.removal-panel-head small { color: var(--orange-dark); font-size: .56rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.removal-panel-head strong { color: var(--wine-dark); font-size: .78rem; }
.removal-panel-head em { color: var(--muted); font-size: .58rem; font-style: normal; }
.removal-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px; }
.removal-chip { position: relative; cursor: pointer; }
.removal-chip input { position: absolute; opacity: 0; pointer-events: none; }
.removal-chip span { min-height: 31px; display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-size: .63rem; font-weight: 800; transition: .18s ease; }
.removal-chip:hover span { color: var(--wine); border-color: rgba(112,28,52,.38); }
.removal-chip input:checked + span { color: white; border-color: var(--wine); background: var(--wine); box-shadow: 0 4px 12px rgba(112,28,52,.16); }
.removal-chip input:focus-visible + span { outline: 3px solid rgba(240,125,22,.3); outline-offset: 2px; }
.topping-row { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 13px; border: 1px solid var(--line); border-radius: 11px; }
.topping-row > span:first-child { display: grid; }
.topping-row strong { font-size: .73rem; }
.topping-row small { color: var(--muted); font-size: .62rem; }
.topping-checks { display: flex; gap: 6px; }
.tiny-check { display: grid; place-items: center; width: 31px; height: 31px; position: relative; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); cursor: pointer; font-size: .62rem; font-weight: 900; }
.tiny-check input { position: absolute; opacity: 0; }
.tiny-check:has(input:checked) { color: white; border-color: var(--wine); background: var(--wine); }
.builder-footer { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; position: sticky; bottom: -34px; margin: 25px -38px -34px; padding: 15px 38px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.quantity-control { display: flex; align-items: center; gap: 12px; }
.quantity-control button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; font-weight: 900; }
.quantity-control strong { min-width: 20px; text-align: center; }
.add-to-cart { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 18px; border: 0; border-radius: 12px; color: white; background: var(--wine); cursor: pointer; font-weight: 900; }
.add-to-cart:hover { background: var(--orange-dark); }
.allergen-note { display: flex; gap: 8px; margin-top: 14px; color: var(--muted); font-size: .68rem; line-height: 1.5; }

.drawer { width: min(520px, 100%); height: 100dvh; position: fixed; z-index: 110; top: 0; right: 0; display: flex; flex-direction: column; background: white; box-shadow: -20px 0 70px rgba(24,5,11,.22); animation: drawer-in .25s ease; }
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer-head { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.drawer-head .eyebrow { margin: 0 0 4px; }
.drawer-head h2 { margin: 0; color: var(--wine-dark); font-family: Georgia, serif; font-size: 1.75rem; }
.drawer-body { flex: 1; overflow: auto; padding: 22px 26px 110px; }
.empty-cart { display: grid; justify-items: center; padding: 75px 25px; color: var(--muted); text-align: center; }
.empty-cart-icon { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 50%; background: var(--cream); font-size: 2rem; }
.empty-cart h3 { margin: 0 0 8px; color: var(--wine); font-family: Georgia, serif; font-size: 1.5rem; }
.empty-cart p { max-width: 280px; margin: 0 0 22px; font-size: .82rem; line-height: 1.6; }
.cart-list { display: grid; gap: 12px; }
.cart-item { padding: 15px; border: 1px solid var(--line); border-radius: 14px; }
.cart-item-head { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.cart-item h3 { margin: 0; color: var(--wine-dark); font-family: Georgia, serif; font-size: 1.05rem; }
.cart-item-price { color: var(--wine); font-weight: 900; font-size: .88rem; }
.cart-item-config { display: grid; gap: 3px; margin: 7px 0 12px; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.config-indent { margin-left: 10px; padding-left: 9px; border-left: 2px solid var(--line); }
.cart-item-notes { padding: 7px 9px; border-left: 3px solid var(--orange); background: var(--cream); color: var(--ink); font-style: italic; }
.cart-item-actions { display: flex; align-items: center; justify-content: space-between; }
.cart-item-actions > div { display: flex; gap: 13px; }
.link-button { padding: 2px; border: 0; color: var(--wine); background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .68rem; font-weight: 800; }
.link-button.danger { color: var(--red); }
.cart-summary { display: grid; gap: 9px; margin-top: 20px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary-line { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }
.summary-line.total { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--ink); font-size: 1rem; font-weight: 900; }
.drawer-checkout { position: absolute; right: 0; bottom: 0; left: 0; padding: 14px 26px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: white; }
.drawer-checkout .primary-button { width: 100%; justify-content: space-between; }
.checkout-intro { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.back-button { border: 0; color: var(--wine); background: none; cursor: pointer; font-size: .78rem; font-weight: 800; }
.checkout-intro span { color: var(--muted); font-size: .7rem; }
.checkout-form { display: grid; gap: 21px; }
.checkout-block { display: grid; gap: 10px; }
.checkout-block h3 { margin: 0; font-size: .88rem; }
.checkout-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.checkout-form label { display: grid; gap: 6px; color: var(--muted); font-size: .68rem; font-weight: 800; }
.checkout-form label.full { grid-column: 1/-1; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.choice-card { min-height: 66px; display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.choice-card input { width: auto; min-height: auto; accent-color: var(--wine); }
.choice-card:has(input:checked) { color: var(--wine); border: 2px solid var(--wine); background: var(--cream); }
.choice-card span { display: grid; }
.choice-card strong { font-size: .75rem; }
.choice-card small { margin-top: 2px; color: var(--muted); font-size: .6rem; font-weight: 500; }
.field-error { min-height: 18px; margin: 0; color: var(--red); font-size: .7rem; }
.confirmation { display: grid; justify-items: center; padding: 35px 5px; text-align: center; }
.confirmation-check { width: 86px; height: 86px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 50%; color: white; background: var(--green); box-shadow: 0 0 0 12px rgba(37,122,81,.09); font-size: 2.4rem; }
.confirmation-email { width: 100%; display: grid; gap: 4px; margin-top: 16px; padding: 13px 14px; border-radius: 11px; text-align: left; font-size: .72rem; line-height: 1.45; }
.confirmation-email.success { color: #175d3d; border: 1px solid rgba(37,122,81,.22); background: rgba(37,122,81,.08); }
.confirmation-email.warning { color: #7a4314; border: 1px solid rgba(240,125,22,.28); background: #fff5e8; }
.confirmation-email strong, .confirmation-email span { display: block; }
.confirmation h3 { margin: 0; color: var(--wine); font-family: Georgia, serif; font-size: 2rem; }
.confirmation > p { max-width: 380px; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.order-number-box { width: 100%; margin: 18px 0; padding: 18px; border: 1px dashed var(--wine); border-radius: 14px; background: var(--cream); }
.order-number-box small { display: block; color: var(--muted); }
.order-number-box strong { display: block; margin-top: 5px; color: var(--wine); font-size: 1.25rem; letter-spacing: .04em; }
.confirmation-actions { width: 100%; display: grid; gap: 9px; margin-top: 15px; }
.toast-region { display: grid; gap: 8px; position: fixed; z-index: 200; right: 20px; bottom: 20px; }
.toast { min-width: 270px; padding: 13px 16px; border-radius: 11px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: .78rem; animation: toast-in .22s ease; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

/* Restaurant dashboard */
.dashboard-body { min-height: 100vh; color: #f7f3f0; background: #171315; }
.access-gate { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 50% 0, #4c1728, #171315 55%); }
.access-card { width: min(420px, 100%); display: grid; justify-items: center; padding: 40px; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; color: var(--ink); background: white; box-shadow: 0 30px 100px rgba(0,0,0,.35); text-align: center; }
.access-card img { width: 100px; height: 100px; object-fit: contain; }
.access-card .eyebrow { margin: 8px 0 8px; }
.access-card h1 { margin: 0; color: var(--wine); font-family: Georgia, serif; font-size: 2rem; }
.access-card > p:not(.field-error) { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.access-card label { width: 100%; display: grid; gap: 7px; margin-top: 10px; color: var(--muted); text-align: left; font-size: .7rem; font-weight: 800; }
.access-card > a { margin: 18px 0 10px; color: var(--wine); font-size: .75rem; }
.access-card > small { color: #a09496; font-size: .62rem; }
.dashboard-app { min-height: 100vh; }
.dashboard-header { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 8px 24px; border-bottom: 1px solid rgba(255,255,255,.08); background: #211b1e; }
.dashboard-brand { display: flex; align-items: center; gap: 10px; }
.dashboard-brand img { width: 52px; height: 52px; object-fit: contain; }
.dashboard-brand > span, .dashboard-status > span:last-child { display: grid; }
.dashboard-brand strong { font-family: Georgia, serif; font-size: 1.2rem; }
.dashboard-brand small, .dashboard-status small { color: #9d9296; font-size: .66rem; }
.dashboard-status { display: flex; align-items: center; gap: 11px; }
.dashboard-status strong { font-size: .76rem; }
.live-dot { animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(90,227,161,0); } }
.dashboard-status[data-state="connecting"] .live-dot { background: #f2c45f; box-shadow: 0 0 0 5px rgba(242,196,95,.12); }
.dashboard-status[data-state="error"] .live-dot { background: #ff5454; box-shadow: 0 0 0 5px rgba(255,84,84,.12); }
.dashboard-status[data-state="local"] .live-dot { background: #9d9296; box-shadow: 0 0 0 5px rgba(157,146,150,.12); }
.dashboard-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dashboard-body .dashboard-button { color: #ddd4d7; border-color: rgba(255,255,255,.13); background: #2b2427; }
.dashboard-body .dashboard-button:hover { color: white; border-color: rgba(255,255,255,.4); }
.dashboard-button.icon-only { width: 42px; padding-inline: 0; }
.new-order-alert { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; position: sticky; z-index: 85; top: 0; min-height: 108px; margin: 0; padding: 15px 24px; color: white; border-top: 3px solid #ffd25a; border-bottom: 3px solid #ffd25a; background: linear-gradient(100deg,#8b0017,#d20b20 48%,#7a0014); box-shadow: 0 14px 45px rgba(0,0,0,.52); animation: emergency-flash .55s steps(2,end) infinite; }
.new-order-alert[hidden] { display: none; }
.new-order-alert-copy { display: grid; gap: 3px; }
.new-order-alert-copy small { color: #ffe3a1; font-size: .65rem; font-weight: 1000; letter-spacing: .16em; }
.new-order-alert-copy strong { font-size: clamp(1.3rem,3vw,2.15rem); letter-spacing: .04em; }
.new-order-alert-copy strong b { color: #ffd25a; }
.new-order-alert-copy > span { font-size: .8rem; font-weight: 800; }
.new-order-alert-actions { display: flex; gap: 8px; }
.new-order-alert-actions button { min-height: 48px; padding: 0 17px; border: 2px solid white; border-radius: 9px; color: #78000f; background: white; cursor: pointer; font-size: .72rem; font-weight: 1000; }
.new-order-alert-actions button:last-child { color: white; background: rgba(35,0,5,.35); }
.siren-beacon { width: 64px; height: 64px; display: grid; place-items: end center; overflow: hidden; position: relative; border-radius: 50%; background: #360007; box-shadow: 0 0 0 6px rgba(255,255,255,.13); }
.siren-beacon::before { content: ""; width: 32px; height: 31px; border-radius: 18px 18px 5px 5px; border: 3px solid #ffbd85; border-bottom: 0; background: #ff2b20; box-shadow: inset 9px 0 10px rgba(255,255,255,.5), 0 0 22px #ff2b20; animation: beacon-glow .38s steps(2,end) infinite; }
.siren-beacon::after { content: ""; width: 45px; height: 7px; margin-bottom: 9px; position: absolute; border-radius: 3px; background: #201719; }
body.siren-sounding .dashboard-app { box-shadow: inset 0 0 0 7px #ff2538; }
@keyframes emergency-flash { 50% { filter: brightness(1.45); background: linear-gradient(100deg,#d20b20,#7a0014 48%,#d20b20); } }
@keyframes beacon-glow { 50% { background: white; box-shadow: inset -9px 0 10px rgba(255,255,255,.7), 0 0 35px #fff, 0 0 55px #ff2b20; } }
.dashboard-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px 24px; }
.summary-card { min-height: 100px; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 17px 19px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: #211b1e; }
.summary-card span { color: #9d9296; font-size: .62rem; font-weight: 900; letter-spacing: .1em; }
.summary-card strong { grid-row: span 2; font-size: 2.15rem; }
.summary-card small { color: #82767a; font-size: .63rem; }
.summary-card.new { border-left: 4px solid var(--orange); }
.summary-card.new strong { color: var(--orange); }
.summary-card.ready { border-left: 4px solid #4bc388; }
.summary-card.ready strong { color: #66dda0; }
.summary-card.total { border-left: 4px solid #dba63c; }
.summary-card.total strong { color: #f2c45f; font-size: 1.45rem; }
.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 4px 24px 16px; }
.status-filters { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: #211b1e; overflow-x: auto; }
.status-filters button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 8px; color: #9d9296; background: transparent; white-space: nowrap; cursor: pointer; font-size: .68rem; font-weight: 800; }
.status-filters button.active { color: white; background: var(--wine); }
.status-filters b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; border-radius: 50%; color: var(--wine); background: white; font-size: .6rem; }
.board-tools { display: flex; gap: 8px; }
.compact-search { width: 220px; min-height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #8d8285; background: #211b1e; }
.compact-search input { color: white; font-size: .72rem; }
.order-board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; padding: 0 24px 30px; }
.order-card { min-height: 340px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: #241e21; box-shadow: 0 12px 35px rgba(0,0,0,.18); }
.order-card.is-new { border: 2px solid var(--orange); animation: new-order-glow 1.6s ease-in-out infinite alternate; }
@keyframes new-order-glow { to { box-shadow: 0 0 0 5px rgba(240,125,22,.08), 0 12px 35px rgba(0,0,0,.25); } }
.order-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
.order-id { display: grid; }
.order-id small { color: #8c8084; font-size: .58rem; }
.order-id strong { margin-top: 3px; font-size: 1.2rem; letter-spacing: .03em; }
.order-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.status-badge, .fulfillment-badge { padding: 5px 7px; border-radius: 6px; font-size: .55rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.status-badge { color: #20120a; background: var(--orange); }
.status-badge.preparation { color: #17100b; background: #eabb53; }
.status-badge.ready { color: #0d281b; background: #65d99e; }
.status-badge.completed { color: #d5cdd0; background: #494045; }
.status-badge.canceled { color: white; background: #9d3333; }
.fulfillment-badge { color: #c9bbc0; border: 1px solid rgba(255,255,255,.15); }
.order-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 13px 17px; border-bottom: 1px solid rgba(255,255,255,.06); }
.order-meta span { display: grid; }
.order-meta small { color: #7f7377; font-size: .57rem; text-transform: uppercase; }
.order-meta strong { margin-top: 3px; font-size: .72rem; }
.order-items-preview { flex: 1; display: grid; align-content: start; gap: 9px; padding: 13px 17px; }
.preview-line { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; font-size: .7rem; }
.preview-line > b:first-child { color: var(--orange); }
.preview-line span { color: #d4cbce; }
.preview-line small { grid-column: 2/-1; color: #82767a; line-height: 1.4; }
.order-note-alert { margin: 0 17px 12px; padding: 9px 10px; border-left: 3px solid var(--orange); color: #f5d9c5; background: rgba(240,125,22,.1); font-size: .65rem; line-height: 1.4; }
.order-card-bottom { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 12px 17px; border-top: 1px solid rgba(255,255,255,.08); }
.order-total { display: grid; }
.order-total small { color: #83777b; font-size: .56rem; }
.order-total strong { margin-top: 2px; color: #fff; font-size: 1.05rem; }
.order-card-actions { display: flex; gap: 6px; }
.detail-button, .advance-button { min-height: 36px; padding: 0 11px; border-radius: 8px; cursor: pointer; font-size: .62rem; font-weight: 900; }
.detail-button { color: #cfc4c8; border: 1px solid rgba(255,255,255,.14); background: transparent; }
.advance-button { color: white; border: 0; background: var(--wine); }
.advance-button:hover { background: var(--orange-dark); }
.empty-board { grid-column: 1/-1; display: grid; justify-items: center; padding: 80px 20px; border: 1px dashed rgba(255,255,255,.12); border-radius: 15px; color: #807579; text-align: center; }
.empty-board span { font-size: 2.5rem; }
.empty-board h2 { margin: 14px 0 5px; color: #d7cdd0; font-family: Georgia, serif; }
.empty-board p { max-width: 390px; margin: 0; font-size: .75rem; line-height: 1.6; }
.order-drawer { width: min(610px,100%); color: var(--ink); }
.order-detail-header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.order-detail-header h3 { margin: 2px 0; color: var(--wine); font-size: 1.35rem; }
.order-detail-header p { margin: 3px 0 0; color: var(--muted); font-size: .72rem; }
.detail-section { padding: 19px 0; border-bottom: 1px solid var(--line); }
.detail-section h4 { margin: 0 0 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.customer-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.customer-detail div { display: grid; padding: 10px; border-radius: 9px; background: var(--cream); }
.customer-detail div.full { grid-column: 1/-1; }
.customer-detail small { color: var(--muted); font-size: .58rem; text-transform: uppercase; }
.customer-detail strong { margin-top: 3px; font-size: .75rem; }
.detail-item { margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.detail-item-top { display: flex; justify-content: space-between; gap: 10px; }
.detail-item-top strong { color: var(--wine); font-size: .8rem; }
.detail-item p { margin: 6px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.detail-config { display: grid; gap: 3px; margin-top: 7px; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.detail-actions .primary-button { min-height: 44px; padding: 0 12px; font-size: .72rem; }
.status-history { display: grid; gap: 8px; }
.history-line { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; color: var(--muted); font-size: .65rem; }
.history-line::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wine); }

/* Printable order ticket */
.ticket-body { min-height: 100vh; padding: 24px 12px 50px; color: #000; background: #d9dadd; }
.ticket-actions { width: min(760px,100%); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin: 0 auto 10px; font-family: Arial,sans-serif; }
.ticket-customer-label { justify-self: center; color: #333; font-size: .78rem; }
.ticket-mode-switch { display: flex; justify-content: center; gap: 5px; }
.ticket-mode-switch a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid #bbb; border-radius: 9px; color: #333; background: white; font-size: .72rem; font-weight: 800; }
.ticket-mode-switch a.active { color: white; border-color: var(--wine); background: var(--wine); }
.thermal-print-help { width: min(760px,100%); margin: 0 auto 14px; color: #555; text-align: center; font-family: Arial,sans-serif; font-size: .68rem; }
.thermal-page { width: 80mm; max-width: 80mm; min-height: 120mm; margin: 0 auto; padding: 4mm; color: #000; background: #fff; box-shadow: 0 8px 26px rgba(0,0,0,.2); font-family: "Arial Narrow",Arial,Helvetica,sans-serif; font-size: 11.5px; font-weight: 700; line-height: 1.3; overflow: hidden; overflow-wrap: anywhere; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.thermal-page, .thermal-page * { color: #000; font-family: "Arial Narrow",Arial,Helvetica,sans-serif; text-shadow: none; }
.thermal-header { text-align: center; }
.thermal-header h1 { margin: 0; font-size: 17px; font-weight: 900; line-height: 1.15; }
.thermal-header small { display: block; margin-top: 2px; font-size: 10px; font-weight: 800; }
.thermal-header h2 { margin: 7px 0 4px; font-size: 14px; font-weight: 900; line-height: 1.15; }
.thermal-separator { margin: 8px 0; text-align: center; }
.thermal-separator.solid { border-top: 3px solid #000; }
.thermal-separator.cut { padding-top: 8px; border-top: 2px dashed #000; font-size: 9px; font-weight: 800; white-space: nowrap; }
.thermal-order-heading { display: grid; gap: 3px; padding: 3px 0 8px; text-align: center; border-bottom: 2px dashed #000; }
.thermal-order-heading strong { font-size: 24px; font-weight: 900; line-height: 1; }
.thermal-order-heading span { font-size: 10px; font-weight: 800; }
.thermal-order-heading b { margin-top: 2px; padding: 4px; border: 3px solid #000; font-size: 13px; font-weight: 900; }
.thermal-customer { display: grid; gap: 3px; padding: 9px 0; border-bottom: 2px dashed #000; font-size: 11.5px; font-weight: 800; }
.thermal-customer > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.thermal-customer.compact { font-size: 11.5px; }
.thermal-general-note { display: grid; gap: 3px; margin: 8px 0; padding: 7px; border: 3px solid #000; font-size: 12px; }
.thermal-general-note b { font-size: 13px; text-align: center; }
.thermal-section-title { margin-top: 9px; padding: 5px 3px; color: #000; border: 3px solid #000; background: #fff; text-align: center; font-size: 12.5px; font-weight: 900; letter-spacing: .04em; }
.thermal-items { border-right: 2px solid #000; border-left: 2px solid #000; }
.thermal-item { padding: 7px 6px; border-bottom: 2px solid #000; break-inside: avoid; }
.thermal-item-main { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 7px; width: 100%; max-width: 100%; font-size: 12.5px; font-weight: 900; line-height: 1.22; }
.thermal-item-name { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
.thermal-item-price { white-space: nowrap; }
.kot-item .thermal-item-main { display: block; font-size: 14px; }
.kot-item .thermal-item-name { display: block; width: 100%; }
.thermal-config { margin-top: 3px; padding-left: 8px; font-size: 10.5px; font-weight: 800; }
.thermal-config.indent { margin-left: 9px; padding-left: 6px; border-left: 3px solid #000; }
.thermal-config.urgent { margin: 4px 0 0; padding: 3px 4px; border: 3px solid #000; font-size: 11.5px; font-weight: 900; }
.thermal-config.indent.urgent { margin-left: 9px; }
.thermal-item-note { margin-top: 5px; padding: 5px; border: 3px solid #000; font-size: 11.5px; font-weight: 900; }
.kot-ticket .pizza-item { padding: 9px 7px 10px; }
.kot-ticket .pizza-item .thermal-item-main { margin-bottom: 7px; padding-bottom: 7px; border-bottom: 4px solid #000; font-size: 20px; font-weight: 900; line-height: 1.08; text-transform: uppercase; }
.kot-ticket .pizza-item .thermal-config { max-width: 100%; overflow-wrap: anywhere; }
.kot-ticket .pizza-item .thermal-config.kind-size { margin: 0 0 7px; padding: 6px 5px; border: 4px solid #000; font-size: 16px; font-weight: 900; line-height: 1.12; text-align: center; }
.kot-ticket .pizza-item .thermal-config.kind-flavor { margin: 7px 0 0; padding: 6px 3px 4px; border-top: 3px solid #000; font-size: 16px; font-weight: 900; line-height: 1.12; text-transform: uppercase; }
.kot-ticket .pizza-item .thermal-config.kind-removal { margin: 3px 0 0; padding: 3px; border: 0; font-size: 16px; font-weight: 900; line-height: 1.12; }
.kot-ticket .pizza-item .thermal-config.kind-addition { margin: 2px 0 0; padding: 3px; border: 0; font-size: 15px; font-weight: 900; line-height: 1.14; }
.kot-ticket .pizza-item .thermal-config.kind-crust { margin: 7px 0 0; padding: 5px; border: 3px solid #000; font-size: 15px; font-weight: 900; line-height: 1.14; }
.kot-ticket .pizza-item .thermal-config.indent { margin-left: 0; }
.kot-ticket .pizza-item .thermal-item-note { margin-top: 7px; padding: 7px; border-width: 4px; font-size: 15px; line-height: 1.14; }
.thermal-quantity { display: flex; justify-content: space-between; padding: 10px 5px; border: 3px solid #000; border-top: 0; font-size: 13px; font-weight: 900; }
.thermal-quantity strong { font-size: 18px; }
.thermal-totals { display: grid; gap: 4px; padding: 10px 2px 4px; font-size: 11.5px; font-weight: 800; }
.thermal-totals div { display: flex; justify-content: space-between; gap: 10px; }
.thermal-totals .grand { margin-top: 3px; padding-top: 7px; border-top: 3px solid #000; font-size: 18px; font-weight: 900; }
.delivery-check { display: grid; gap: 18px; margin-top: 13px; padding: 10px 0; border-top: 1px dashed #000; font-size: 9px; }
.thermal-footer { margin-top: 8px; text-align: center; font-size: 10px; font-weight: 800; }
.thermal-error { padding-top: 20mm; text-align: center; }
.thermal-error h1 { font-size: 18px; }

@media (max-width: 1020px) {
  .desktop-only { display: none; }
  .hero-card { grid-template-columns: 1.1fr .9fr; min-height: 520px; }
  .hero-copy { padding: 48px; }
  .hero-art { min-height: 520px; }
  .pizza-illustration { width: 350px; }
  .hero-pizza-photo { width: min(400px, 94%); }
  .service-strip { width: calc(100% - 36px); }
  .service-strip > div { padding: 0 12px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .callout-card { grid-template-columns: 120px 1fr; }
  .callout-card .primary-button { grid-column: 2; justify-self: start; }
  .dashboard-header { grid-template-columns: 1fr 1fr; }
  .dashboard-status { display: none; }
  .dashboard-summary { grid-template-columns: repeat(2,1fr); }
  .board-toolbar { align-items: stretch; flex-direction: column; }
  .order-board { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  body.storefront-body { padding-bottom: 76px; }
  .shell { width: min(100% - 24px, var(--shell)); }
  .site-header { height: 68px; }
  .brand img { width: 46px; height: 46px; }
  .brand-copy strong { font-size: 1.3rem; }
  .brand-copy small { font-size: .53rem; }
  .cart-pill { min-width: 46px; width: 46px; height: 46px; padding: 0; justify-content: center; }
  .cart-pill > span:not(.cart-icon) { display: none; }
  .cart-icon { font-size: 1.25rem; }
  .hero { padding-top: 10px; }
  .hero-card { min-height: auto; grid-template-columns: 1fr; border-radius: 22px; }
  .hero-copy { padding: 38px 25px 32px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-copy > p { margin: 21px 0 25px; font-size: .88rem; line-height: 1.65; }
  .hero-art { min-height: 315px; }
  .pizza-illustration { width: 295px; border-width: 13px; }
  .hero-pizza-photo { width: 315px; max-width: 94%; }
  .pepperoni { width: 48px; }
  .hero-stamp { width: 94px; height: 94px; right: 5%; }
  .trust-row { display: grid; gap: 8px; margin-top: 27px; }
  .service-strip { width: calc(100% - 20px); grid-template-columns: 1fr; margin-top: -12px; padding: 7px 18px; }
  .service-strip > div { min-height: 64px; border-right: 0; border-bottom: 1px solid var(--line); }
  .menu-section { padding: 70px 0 60px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .section-heading h2 { font-size: 2.4rem; }
  .search-box { width: 100%; }
  .category-nav { grid-template-columns: 1fr; gap: 10px; }
  .category-all { justify-self: start; position: static; box-shadow: none; }
  .category-list { width: 100%; }
  .category-chip { padding: 9px 12px; font-size: .75rem; }
  .menu-grid { grid-template-columns: 1fr; gap: 12px; }
  .menu-card { min-height: 215px; }
  .callout-section { padding-bottom: 65px; }
  .callout-card { grid-template-columns: 1fr; justify-items: center; gap: 14px; padding: 30px 24px; text-align: center; }
  .callout-card img { width: 100px; height: 100px; }
  .callout-card .primary-button { grid-column: 1; justify-self: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { margin-bottom: 10px; }
  .mobile-cart-bar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; position: fixed; z-index: 80; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; padding: 0 18px; border: 0; border-radius: 14px; color: white; background: var(--wine); box-shadow: 0 12px 35px rgba(57,12,25,.35); cursor: pointer; font-size: .75rem; }
  .mobile-cart-bar strong { font-size: .82rem; }
  .mobile-cart-bar b { display: inline-grid; place-items: center; min-width: 23px; height: 23px; margin-right: 4px; border-radius: 50%; color: var(--wine); background: var(--orange); }
  .modal { max-height: calc(100dvh - 20px); top: auto; bottom: 0; left: 0; transform: none; border-radius: 22px 22px 0 0; }
  .product-modal { width: 100%; }
  .product-head { min-height: 155px; padding: 32px 58px 25px 24px; }
  .product-head h2 { font-size: 1.8rem; }
  .product-head::after { right: 50px; font-size: 4rem; }
  .product-body { padding: 24px 20px 28px; }
  .option-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .flavor-grid, .toppings-list, .removal-grid { grid-template-columns: 1fr; }
  .half-price-summary { grid-template-columns: 1fr; }
  .half-price-summary > b { display: none; }
  .half-price-total { grid-column: 1; padding: 10px 0 0; border-top: 1px solid #e7c8a8; border-left: 0; }
  .builder-footer { bottom: -28px; margin: 20px -20px -28px; padding: 13px 20px max(13px,env(safe-area-inset-bottom)); }
  .drawer-head { min-height: 82px; padding: 15px 18px; }
  .drawer-body { padding: 17px 18px 105px; }
  .drawer-checkout { padding-inline: 18px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-form label.full { grid-column: 1; }
  .toast-region { right: 12px; bottom: 80px; left: 12px; }
  .toast { min-width: 0; }
  .dashboard-header { grid-template-columns: 1fr auto; padding-inline: 14px; }
  .dashboard-actions .dashboard-button:not(.icon-only) { width: 42px; overflow: hidden; padding: 0; font-size: 0; }
  .dashboard-actions .dashboard-button:not(.icon-only) span { font-size: 1rem; }
  .dashboard-summary { grid-template-columns: 1fr 1fr; padding: 12px; gap: 8px; }
  .summary-card { min-height: 86px; padding: 13px; }
  .summary-card strong { font-size: 1.65rem; }
  .summary-card.total strong { font-size: 1rem; }
  .board-toolbar { padding: 2px 12px 12px; }
  .status-filters { width: 100%; }
  .board-tools { display: grid; grid-template-columns: 1fr auto; }
  .compact-search { width: 100%; }
  .order-board { grid-template-columns: 1fr; padding: 0 12px 22px; }
  .order-card { min-height: 320px; }
  .new-order-alert { grid-template-columns: auto 1fr; gap: 12px; padding: 13px 12px; }
  .new-order-alert-actions { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; }
  .new-order-alert-actions button { padding: 0 8px; }
  .siren-beacon { width: 50px; height: 50px; }
  .access-gate { padding: 14px; }
  .access-card { padding: 30px 22px; }
  .ticket-body { padding: 10px; }
  .ticket-actions { grid-template-columns: 1fr; }
  .ticket-actions > .ghost-button, .ticket-actions > .primary-button { width: 100%; }
  .ticket-mode-switch { display: grid; grid-template-columns: 1fr 1fr; }
  .ticket-mode-switch a { justify-content: center; padding: 0 8px; }
  .thermal-print-help { line-height: 1.5; }
}

@page { size: 80mm 210mm; margin: 0; }

@media print {
  html, body.ticket-body { width: 80mm !important; min-width: 80mm !important; max-width: 80mm !important; margin: 0 !important; padding: 0 !important; background: white !important; }
  #ticket-root { width: 80mm !important; max-width: 80mm !important; margin: 0 !important; padding: 0 !important; }
  .ticket-actions, .thermal-print-help { display: none !important; }
  .thermal-page { width: 80mm !important; max-width: 80mm !important; min-height: 0; margin: 0 !important; padding: 4mm !important; box-shadow: none !important; overflow: hidden !important; font-size: 11.5px !important; font-weight: 700 !important; line-height: 1.3 !important; -webkit-font-smoothing: none; }
}
