/* Pizzrella online ordering - "Night Oven" design (dark, deal posters, round photos, order panel on desktop) */
:root { --brand: #FF4500; --bg: #0f0d0c; --card: #1b1816; --card2: #221e1b; --ink: #f6f1ec; --muted: #a39b94; --line: #2c2724; --soft: #26201c; --ok: #4cd38a; --bad: #ff8f8f;
  --head: 'Anton', Impact, sans-serif; --body: 'Work Sans', system-ui, sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: radial-gradient(1200px 520px at 85% -10%, rgba(255,69,0,.22), transparent 60%), var(--bg); background-attachment: fixed; color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; }
button { font: inherit; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .grow { flex: 1; min-width: 0; }
.loading { padding: 40vh 16px; text-align: center; color: var(--muted); }
.nophoto { display: grid; place-items: center; background: var(--soft); font-size: 40px; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 3px 7px; border-radius: 999px; background: var(--brand); color: #fff; margin-left: 8px; vertical-align: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(15,13,12,.84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.top .logo { height: 42px; filter: drop-shadow(0 0 12px rgba(255,69,0,.35)); }
.status { font-size: 13px; color: var(--muted); display: none; } .status i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; margin-right: 7px; box-shadow: 0 0 8px #2ecc71; }
.status.off i { background: #ff6b6b; box-shadow: 0 0 8px #ff6b6b; }
@media (min-width: 700px) { .status { display: block; } }
.mode { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-left: auto; }
.mode button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.mode button.on { background: var(--brand); color: #fff; }

/* page */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px 120px; display: grid; gap: 28px; }
@media (min-width: 1000px) { .wrap { grid-template-columns: minmax(0, 1fr) 340px; } }
main { min-width: 0; }
.tools { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.where { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font-size: 13px; color: var(--muted); }
.where select { border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; padding: 11px 0; cursor: pointer; }
.where select option { background: var(--card); }
.search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.search input { flex: 1; border: 0; background: none; color: var(--ink); font: inherit; padding: 11px 0; outline: none; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.closed { margin-top: 14px; background: #3a2410; border: 1px solid #6b4518; color: #ffd08a; border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 14px; }

.hero { padding: 30px 0 4px; }
.hero small { color: var(--brand); font-weight: 700; letter-spacing: .2em; font-size: 12px; }
.hero h1 { font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: clamp(46px, 8vw, 92px); line-height: .92; margin: 10px 0 12px; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0; }

/* active order strip */
.track { margin-top: 14px; background: var(--card2); border: 1px solid var(--brand); color: var(--ink); border-radius: 16px; padding: 14px; display: flex; gap: 12px; align-items: center; text-decoration: none; }
.track .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-size: 20px; flex: none; animation: pulse 1.6s infinite; }
.track small { color: var(--muted); display: block; font-size: 12px; }
.steps { display: flex; gap: 4px; margin-top: 8px; } .steps i { height: 4px; flex: 1; border-radius: 4px; background: #3a3330; } .steps i.on { background: var(--brand); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,69,0,.25); } }

.again { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.again img, .again .nophoto { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; font-size: 24px; }
.again button { margin-left: auto; border: 1.5px solid var(--brand); background: none; color: var(--brand); font-weight: 700; border-radius: 999px; padding: 8px 14px; flex: none; }

/* section tabs */
.tabs-wrap { position: sticky; top: 63px; z-index: 10; margin: 18px -16px 0; padding: 10px 16px; background: rgba(15,13,12,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs a { white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); }
.tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* deal posters */
h2 { font-family: var(--head); font-weight: 400; font-size: 30px; text-transform: uppercase; margin: 22px 0 14px; display: flex; align-items: baseline; gap: 12px; }
h2 small { font-family: var(--body); font-size: 13px; color: var(--muted); text-transform: none; font-weight: 500; }
section, .rail { scroll-margin-top: 130px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
@media (min-width: 1000px) { .rail { grid-auto-columns: calc((100% - 28px) / 3); } }
.deal { scroll-snap-align: start; position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; cursor: pointer; background: var(--card); }
.deal img, .deal .nophoto { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.deal:hover img { transform: scale(1.05); }
.deal .tag { position: absolute; top: 14px; left: 14px; margin: 0; }
.deal .ov { position: absolute; inset: auto 0 0 0; padding: 60px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.92)); }
.deal .ov b { font-family: var(--head); font-weight: 400; font-size: 30px; text-transform: uppercase; display: block; line-height: 1; }
.deal .ov p { margin: 4px 0 10px; color: #ddd; font-size: 14px; }
.deal .ov .row { display: flex; justify-content: space-between; align-items: center; }
.deal .ov .price { font-weight: 800; font-size: 20px; color: var(--brand); }
.deal .ov .choose { background: var(--brand); color: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; }

/* menu rows with round photos */
.list { display: grid; gap: 12px; }
@media (min-width: 700px) { .list { grid-template-columns: 1fr 1fr; } }
.item { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 12px; cursor: pointer; transition: border-color .15s; }
.item:hover { border-color: var(--brand); }
.item .ph { width: 96px; height: 96px; flex: none; border-radius: 50%; overflow: hidden; background: var(--soft); box-shadow: 0 0 0 3px var(--soft), 0 10px 24px rgba(0,0,0,.5); }
.item .ph img, .item .ph .nophoto { width: 100%; height: 100%; object-fit: cover; }
.item .tx { flex: 1; min-width: 0; }
.item b { font-size: 17px; } .item p { margin: 3px 0 6px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .price { font-weight: 700; color: var(--brand); }
.item .add { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px solid var(--brand); color: var(--brand); font-size: 22px; display: grid; place-items: center; }

/* order panel (desktop) and order bar (phones) */
aside { display: none; }
@media (min-width: 1000px) { aside { display: block; } }
.panel { position: sticky; top: 84px; margin-top: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.panel h3 { font-family: var(--head); font-weight: 400; font-size: 26px; text-transform: uppercase; margin: 0 0 10px; }
.panel .pl { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.panel .pl small { display: block; color: var(--muted); font-size: 12px; }
.panel .ptot { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin-top: 12px; }
.panel .pnote { margin-top: 10px; }
.cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; border: 0; border-radius: 16px; background: var(--brand); color: #fff; padding: 15px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; box-shadow: 0 0 40px rgba(255,69,0,.45); }
.cartbar[hidden] { display: none; }
.cartbar b { margin-left: auto; } .cartbar .count { background: #fff; color: var(--brand); border-radius: 8px; padding: 1px 8px; }
@media (min-width: 1000px) { .cartbar { display: none; } }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; padding: 24px 16px 110px; line-height: 1.7; }

/* sheets (item choice, checkout) */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: flex; align-items: flex-end; justify-content: center; z-index: 50; animation: fade .15s; }
.sheet { position: relative; background: var(--card); color: var(--ink); border: 1px solid var(--line); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; } }
.sheet h3 { font-family: var(--head); font-size: 30px; margin: 6px 0 4px; font-weight: 400; text-transform: uppercase; }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; z-index: 2; }
.sheet-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px; background: var(--soft); }
.label { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 8px; color: var(--muted); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { border: 2px solid var(--line); background: var(--card2); border-radius: 14px; padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.opt span { font-size: 13px; color: var(--muted); }
.opt.on { border-color: var(--brand); background: rgba(255,69,0,.12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--card2); border-radius: 999px; padding: 8px 13px; font-size: 14px; }
.chip.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.cta { width: 100%; margin-top: 20px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; padding: 16px; font-weight: 700; font-size: 16px; display: block; text-align: center; text-decoration: none; }
.cta.ghost { background: var(--card2); color: var(--ink); border: 1px solid var(--line); margin-top: 10px; }
.cta:disabled { opacity: .4; cursor: not-allowed; }
.cline { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qty { display: flex; align-items: center; gap: 8px; } .qty button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card2); }
.amt { min-width: 76px; text-align: right; font-weight: 600; }
.field { width: 100%; padding: 13px 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: var(--card2); color: var(--ink); margin-bottom: 8px; }
.field::placeholder { color: var(--muted); }
.field:focus { outline: none; border-color: var(--brand); }
select.field option { background: var(--card); }
.sum { margin-top: 16px; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.sum > div { display: flex; justify-content: space-between; padding: 3px 0; }
.sum .big { font-weight: 800; font-size: 19px; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
.sum .save { color: var(--ok); font-weight: 600; font-size: 14px; justify-content: center; }
.err { color: var(--bad); font-weight: 600; font-size: 14px; margin-top: 10px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: #fff; color: #111; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; transition: .2s; z-index: 60; pointer-events: none; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } } @keyframes fade { from { opacity: 0; } }

/* order tracking page */
.tpage { max-width: 640px; margin: 0 auto; padding: 18px 16px 40px; }
.tback { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-weight: 600; }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin-bottom: 12px; }
.tcard h1 { font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: 38px; margin: 2px 0 4px; line-height: 1.02; }
.tsub { margin: 0; }
.tl { list-style: none; margin: 18px 0 0; padding: 0; }
.tl li { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 16px; position: relative; color: var(--muted); }
.tl li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); flex: none; margin-top: 3px; z-index: 1; }
.tl li::after { content: ''; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl li.done { color: var(--ink); } .tl li.done::before { background: var(--brand); border-color: var(--brand); }
.tl li.now { color: var(--ink); font-weight: 700; } .tl li.now::before { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,69,0,.25); }
.tline { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.tline.total { font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.bad { color: var(--bad); }

/* practice payment page */
.simpay { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.simbox { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; max-width: 420px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.simbox h1 { font-family: var(--head); font-weight: 400; font-size: 40px; margin: 6px 0; }
.simtag { display: inline-block; background: #3a2410; color: #ffd08a; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; margin: 0; }
