/* Pizza Order — כיף של מקום */
:root {
  --red: #c8231a;
  --red-d: #9e1a12;
  --red-l: #fdecea;
  --gold: #f4b31a;
  --gold-l: #fff4d6;
  --ink: #1f1714;
  --ink-2: #4a3f3a;
  --muted: #7b6f68;
  --cream: #fbf5ec;
  --card: #ffffff;
  --line: #ecdfcd;
  --green: #2f7d32;
  --r: 18px;
  --shadow: 0 1px 2px rgba(60, 30, 10, .06), 0 8px 24px rgba(60, 30, 10, .08);
  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --display: 'Rubik', 'Heebo', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
html.pz-lock, html.pz-lock body { overflow: hidden; }
body.pzo-body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.pzo button { font: inherit; color: inherit; cursor: pointer; }
.pzo img { max-width: 100%; }
.pzo a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.pz-boot { min-height: 100vh; display: grid; place-items: center; }
.pz-boot img { animation: pzPulse 1.2s ease-in-out infinite; }
@keyframes pzPulse { 50% { transform: scale(.92); opacity: .7; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red); color: #fff !important; box-shadow: 0 6px 16px rgba(200, 35, 26, .28); }
.btn-primary:hover { background: var(--red-d); }
.btn-primary:disabled { background: #cdbfb6; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn.loading { opacity: .8; }
.link { background: none; border: 0; padding: 4px 6px; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--red); }
.x { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #f4ece1; display: grid; place-items: center; flex: none; }
.x:hover { background: #ebdfd0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(251, 245, 236, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd-in { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { width: 56px; height: 56px; object-fit: contain; }
.logo-txt b { display: block; font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1.05; color: var(--red); }
.logo-txt small { display: block; font-size: 12.5px; color: var(--muted); }
.mode-pill { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 420px; margin-inline-start: auto; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 500; font-size: 14.5px; }
.mode-pill svg { color: var(--red); flex: none; }
.mode-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-phone { display: flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.hd-phone svg { color: var(--red); }
.cart-btn { position: relative; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--ink); color: #fff !important; font-weight: 700; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff3; display: grid; place-items: center; font-size: 13px; }
.cart-count.on { background: var(--gold); color: var(--ink); }
.cart-btn.bump { animation: bump .45s; }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }
.cats { border-top: 1px solid var(--line); }
.cats-in { max-width: 1240px; margin: 0 auto; padding: 0 14px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cats-in::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 12px 14px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink-2); border-bottom: 3px solid transparent; }
.cats a.on, .cats a:hover { color: var(--red); border-color: var(--red); }

/* ---------- hero ---------- */
.hero { background: radial-gradient(circle at 15% 50%, #ffd9a0 0, transparent 40%), linear-gradient(135deg, var(--red) 0%, #a5180f 100%); color: #fff; overflow: hidden; }
.hero-in { max-width: 1240px; margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px; }
.hero-kicker { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 14px; padding: 4px 12px; border-radius: 999px; transform: rotate(-2deg); }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.02; margin: 14px 0 12px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 18px; max-width: 520px; opacity: .95; margin: 0 0 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--gold); color: var(--ink) !important; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.hero .btn-primary:hover { background: #ffc53d; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #ffffff80; }
.hero-art { position: relative; }
.hero-pizza { width: 100%; max-width: 440px; display: block; margin: -20px auto -60px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- menu ---------- */
.menu { max-width: 1240px; margin: 0 auto; padding: 12px 20px 60px; }
.cat { padding-top: 26px; }
.cat h2 { font-family: var(--display); font-weight: 900; font-size: 30px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.cat h2::after { content: ''; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { position: relative; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(60, 30, 10, .06), 0 16px 34px rgba(60, 30, 10, .14); }
.card-hit { position: absolute; inset: 0; z-index: 2; background: transparent; border: 0; border-radius: var(--r); }
.card-art { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 60%, #fff4e1 0, #f6e7d2 70%); display: grid; place-items: center; overflow: hidden; }
.card-pizza { width: 78%; height: auto; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-pizza { transform: rotate(25deg) scale(1.04); }
.card-icon { width: 46%; height: auto; }
.card--deal .card-art { background: radial-gradient(circle at 50% 60%, #ffe7a3 0, #f7c948 90%); }
.deal-art { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.deal-art .card-pizza { width: 66%; }
.deal-art.two .card-pizza { position: absolute; width: 56%; right: 6%; top: 8%; }
.deal-art.two .card-pizza.b { right: auto; left: 10%; top: 22%; }
.deal-drink { position: absolute; width: 22%; left: 6%; bottom: 4%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .2)); }
.badge { position: absolute; top: 12px; right: 12px; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--display); font-weight: 800; font-size: 19px; margin: 0 0 4px; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 800; font-size: 17px; }
.go-btn { background: var(--red-l); color: var(--red); font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px; }
.card:hover .go-btn { background: var(--red); color: #fff; }
.add-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--red); color: #fff !important; font-size: 24px; line-height: 1; display: grid; place-items: center; }
.stepper, .qty-mini { display: inline-flex; align-items: center; background: #f4ece1; border-radius: 999px; padding: 3px; }
.stepper button, .qty-mini button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; font-size: 20px; line-height: 1; font-weight: 700; display: grid; place-items: center; }
.stepper span, .qty-mini span { min-width: 30px; text-align: center; font-weight: 800; }

/* ---------- footer ---------- */
.ft { background: var(--ink); color: #f5ede4; }
.ft-in { max-width: 1240px; margin: 0 auto; padding: 36px 20px 20px; display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 28px; align-items: start; }
.ft b { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 8px; color: var(--gold); }
.ft p { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; color: #e2d6c9; font-size: 14.5px; justify-content: space-between; max-width: 280px; }
.ft-in > div:nth-child(2) p { justify-content: flex-start; }
.ft-in > img { background: #fff; border-radius: 50%; }
.ft-credit { text-align: center; color: #9d8f84; font-size: 13px; padding: 0 20px 24px; margin: 0; }

/* ---------- mobile cart bar ---------- */
.mbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(251, 245, 236, .95) 30%); display: none; }
.mbar .btn { width: 100%; justify-content: space-between; min-height: 54px; font-size: 17px; }
.mbar-count { background: #fff3; min-width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; }

/* ---------- layers ---------- */
#pz-layer .layer { position: fixed; inset: 0; z-index: 100; display: flex; }
.scrim { position: absolute; inset: 0; background: rgba(31, 18, 12, .55); opacity: 0; transition: opacity .25s; }
.layer.in .scrim { opacity: 1; }
.panel { position: relative; background: var(--cream); outline: none; }
.layer-modal { align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; border-radius: 24px; padding: 28px 24px 24px; transform: translateY(20px) scale(.97); opacity: 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s; text-align: center; }
.layer.in .modal { transform: none; opacity: 1; }
.modal > .x { position: absolute; top: 14px; left: 14px; }
.modal-logo { display: block; margin: -6px auto 4px; }
.modal h2 { font-family: var(--display); font-weight: 900; font-size: 26px; margin: 0 0 16px; }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.mode-tabs button { border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink-2); transition: border-color .15s, background .15s; }
.mode-tabs button b { font-size: 17px; }
.mode-tabs button small { color: var(--muted); font-size: 13px; }
.mode-tabs button.on { border-color: var(--red); background: var(--red-l); color: var(--red); }
.mode-form { text-align: right; }
.row { display: flex; gap: 10px; margin-bottom: 10px; }
.f { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.f.num { flex: 0 0 96px; }
.f span, .lbl { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.lbl { display: block; margin: 12px 0 8px; }
.f input, .f select, .f textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--ink); outline: none; }
.f .bad, .f input.bad { border-color: var(--red); background: #fff6f5; }
.hint { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.radio-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; margin-bottom: 8px; text-align: right; }
.radio-card input { accent-color: var(--red); width: 20px; height: 20px; margin: 0; flex: none; }
.radio-card b { display: block; }
.radio-card small { color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--red); background: var(--red-l); }
.field-group { margin-bottom: 14px; }

/* ---------- builder ---------- */
.layer-builder .builder { position: absolute; inset: 0; display: flex; flex-direction: column; transform: translateY(30px); opacity: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.layer-builder.in .builder { transform: none; opacity: 1; }
.bd-top { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.bd-title h2 { font-family: var(--display); font-weight: 900; font-size: 22px; margin: 0; }
.bd-sub { margin: 0; color: var(--muted); font-size: 14px; }
.bd-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr minmax(420px, 560px); }
.bd-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(circle at 50% 45%, #fff7e9 0, #f3e2c8 75%); overflow: hidden; order: 2; }
.bd-visual::before { content: ''; position: absolute; width: min(70vh, 90%); aspect-ratio: 1; border-radius: 50%; background: #6b4426; opacity: .08; }
.bd-stage { position: relative; width: min(64vh, 100%); aspect-ratio: 1; }
.bd-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pz-scale { transform-origin: 200px 200px; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.pz-drop .pz-piece { animation: drop .45s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes drop { from { transform: translateY(-40px) scale(1.8); opacity: 0; } to { transform: none; opacity: 1; } }
.side-tag { position: absolute; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 13px; color: var(--muted); background: #fff; padding: 3px 10px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s; }
.side-tag.r { right: -6px; }
.side-tag.l { left: -6px; }
.has-half .side-tag { opacity: 1; }
.bd-chips { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; max-width: 560px; min-height: 34px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: #fff; border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); }
.chip i { font-style: normal; color: var(--red); font-size: 12.5px; }
.chip button { width: 24px; height: 24px; border: 0; background: #f4ece1; border-radius: 50%; display: grid; place-items: center; }
.chip button svg { width: 12px; height: 12px; }
.chip-empty { color: var(--muted); font-size: 14px; }
.bd-controls { overflow-y: auto; background: var(--cream); padding: 0 22px 30px; border-inline-start: 1px solid var(--line); order: 1; overscroll-behavior: contain; }
.bd-tabs { position: sticky; top: 0; z-index: 3; display: flex; gap: 4px; background: var(--cream); padding: 10px 0; margin: 0 -4px; overflow-x: auto; scrollbar-width: none; }
.bd-tabs a { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; text-decoration: none; }
.bd-tabs a:hover { border-color: var(--ink); }
.bd-sec { padding: 14px 0 6px; }
.sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.sec-h h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 20px; }
.sec-n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.free-left { margin-inline-start: auto; background: var(--gold-l); color: #8a5a00; font-weight: 700; font-size: 13.5px; padding: 4px 10px; border-radius: 999px; }
.locked { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 12px 14px; margin: 0; font-weight: 600; }
.locked svg { color: var(--green); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.opt { position: relative; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 14px 12px; text-align: right; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, background .15s, transform .15s; }
.opt:hover:not(:disabled) { border-color: #cdb79c; }
.opt b { font-size: 16.5px; }
.opt small { color: var(--muted); font-size: 13px; }
.opt em { font-style: normal; font-weight: 800; color: var(--ink); margin-top: 4px; }
.opt.on { border-color: var(--red); background: var(--red-l); }
.opt.on::after { content: ''; position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.opt:disabled { opacity: .45; cursor: not-allowed; }
.opt.drink { align-items: center; text-align: center; }
.sizes .opt { align-items: center; text-align: center; padding-top: 12px; }
.size-dot { width: calc(54px * var(--s)); height: calc(54px * var(--s)); border-radius: 50%; background: radial-gradient(circle, #f7da84 55%, #e0a55c 58%, #c98a3d 100%); margin-bottom: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill, .pill-r span { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; display: inline-flex; gap: 4px; align-items: center; }
.pill em { font-style: normal; color: var(--muted); font-size: 13px; }
.pill.on { border-color: var(--red); background: var(--red-l); color: var(--red); }
.pill-r { cursor: pointer; }
.pill-r input { position: absolute; opacity: 0; pointer-events: none; }
.pill-r input:checked + span { border-color: var(--red); background: var(--red-l); color: var(--red); }
.pill-r input:focus-visible + span { outline: 3px solid var(--gold); }
.tops { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tp { background: #fff; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.tp.on { border-color: var(--red); box-shadow: 0 4px 14px rgba(200, 35, 26, .14); }
.tp-main { position: relative; width: 100%; border: 0; background: none; padding: 12px 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tp-ico { width: 52px; height: 52px; border-radius: 50%; background: #f8eedf; display: grid; place-items: center; transition: transform .2s; }
.tp.on .tp-ico { background: var(--red-l); transform: scale(1.06); }
.tp-name { font-weight: 700; font-size: 15px; }
.tp-price { color: var(--muted); font-size: 13px; font-weight: 600; }
.tp-check { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.tp.on .tp-check { transform: scale(1); }
.tp-check svg { width: 14px; height: 14px; }
.tp-parts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--line); }
.tp-parts button { border: 0; background: none; padding: 8px 0; display: grid; place-items: center; color: #c4b4a2; transition: color .15s, background .15s; }
.tp-parts button + button { border-inline-start: 1.5px solid var(--line); }
.tp-parts button:hover { color: var(--ink-2); background: #faf4ea; }
.tp-parts button.on { color: #fff; background: var(--red); }
.bd-foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.bd-prev { min-height: 52px; }
.bd-prev svg { transform: none; }
.bd-next { flex: 1; max-width: 420px; margin-inline-start: auto; min-height: 54px; justify-content: space-between; font-size: 17px; }
.bd-total { background: #ffffff26; padding: 4px 12px; border-radius: 999px; }
.deal-review { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.dr-row { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 10px; }
.dr-row small { display: block; color: var(--muted); font-size: 13px; }
svg.mini { width: 64px; height: 64px; flex: none; }

/* ---------- options modal ---------- */
.options { text-align: right; }
.opt-head { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.opt-head svg { background: #f6e7d2; border-radius: 18px; flex: none; }
.opt-head h2 { margin: 0; text-align: right; }
.opt-head p { margin: 2px 0 0; color: var(--muted); }
.opt-foot { display: flex; gap: 12px; align-items: center; margin-top: 22px; }
.grow { flex: 1; }

/* ---------- drawer (cart) ---------- */
.drawer { width: min(460px, 100%); height: 100%; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
.layer-drawer { justify-content: flex-start; flex-direction: row-reverse; }
.layer.in .drawer { transform: none; }
.dr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.dr-head h2 { font-family: var(--display); font-weight: 900; font-size: 22px; margin: 0; flex: 1; }
.dr-mode { display: flex; align-items: center; gap: 8px; margin: 12px 18px 0; padding: 10px 14px; border: 0; background: #fff; border-radius: 12px; text-align: right; font-size: 14.5px; }
.dr-mode svg { color: var(--red); flex: none; }
.dr-mode span { flex: 1; }
.dr-mode u { color: var(--red); font-weight: 700; }
.dr-body { flex: 1; overflow-y: auto; padding: 12px 18px; }
.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ci { display: flex; gap: 12px; background: #fff; border-radius: 16px; padding: 12px; }
.ci-art { flex: none; }
.ci-main { flex: 1; min-width: 0; }
.ci-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.ci-top b { font-size: 16px; }
.ci-price { font-weight: 800; white-space: nowrap; }
.ci small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.ci-actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ci .qty-mini button { width: 30px; height: 30px; font-size: 18px; }
.dr-foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.sum > div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--ink-2); }
.sum .total { font-weight: 800; font-size: 19px; color: var(--ink); padding-top: 8px; margin-top: 4px; border-top: 1.5px dashed var(--line); }
.warn { background: var(--gold-l); color: #7a4f00; border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 600; margin: 10px 0 0; }
.dr-foot .btn { margin-top: 12px; min-height: 54px; font-size: 17px; }
.empty { text-align: center; padding: 30px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty b { font-size: 19px; font-family: var(--display); }
.empty p { color: var(--muted); margin: 0 0 10px; }

/* ---------- checkout ---------- */
.layer-sheet { justify-content: center; align-items: stretch; }
.sheet { width: min(1060px, 100%); margin: 24px auto; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 48px); transform: translateY(24px); opacity: 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.layer.in .sheet { transform: none; opacity: 1; }
.checkout .dr-head .back svg { transform: none; }
.co-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1fr 380px; gap: 22px; padding: 20px; align-items: start; }
.co-form fieldset { border: 0; background: #fff; border-radius: 18px; padding: 16px 16px 8px; margin: 0 0 14px; min-width: 0; }
.co-form legend { float: right; width: 100%; display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.co-form legend svg { width: 28px; height: 28px; color: var(--red); }
.co-form legend .link { margin-inline-start: auto; font-family: var(--font); }
.co-form fieldset > *:not(legend) { clear: both; }
.addr { margin: 0 0 12px; font-weight: 600; background: var(--cream); border-radius: 10px; padding: 10px 12px; }
.when-time { margin-top: 10px; max-width: 200px; }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay .radio-card { flex-direction: column; align-items: flex-start; gap: 6px; }
.co-sum { position: sticky; top: 0; background: #fff; border-radius: 18px; padding: 18px; }
.co-sum h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: 19px; }
.co-sum ul { list-style: none; margin: 0 0 10px; padding: 0; }
.co-sum li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.co-sum li small { display: block; color: var(--muted); font-size: 12.5px; }
.co-sum li b { white-space: nowrap; }
.co-submit { margin-top: 14px; min-height: 56px; font-size: 17px; }
.fine { color: var(--muted); font-size: 13px; text-align: center; margin: 10px 0 0; }

/* ---------- success ---------- */
.success .ok-art { width: 170px; margin: -10px auto 0; }
.success .spin { width: 100%; animation: spin 14s linear infinite; }
.ok-num { font-size: 18px; margin: 0 0 8px; }
.ok-num b { color: var(--red); font-size: 22px; }
.success .btn { margin-top: 16px; }

/* ---------- toast ---------- */
#pz-toast { position: fixed; z-index: 200; bottom: 24px; left: 50%; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
#pz-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hd-phone span { display: none; }
  .ft-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 170px; }
  .hd-in { flex-wrap: wrap; padding: 8px 14px; gap: 8px 10px; }
  .logo img { width: 46px; height: 46px; }
  .logo-txt b { font-size: 19px; }
  .logo-txt small { font-size: 11.5px; }
  .hd-phone { margin-inline-start: auto; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); justify-content: center; }
  .cart-btn { height: 42px; padding: 0 12px; }
  .cart-total { display: none; }
  .mode-pill { order: 5; flex: 1 1 100%; max-width: none; margin: 0; padding: 7px 12px; font-size: 14px; }
  .hero-in { grid-template-columns: 1fr; padding: 26px 16px 0; gap: 0; }
  .hero p { font-size: 16px; }
  .hero-pizza { max-width: 300px; margin: 10px auto -110px; }
  .hero { padding-bottom: 0; }
  .menu { padding: 70px 14px 110px; }
  .cat h2 { font-size: 25px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { flex-direction: row; }
  .card-art { aspect-ratio: auto; width: 128px; flex: none; }
  .card-pizza { width: 112px; }
  .deal-art .card-pizza, .deal-art.two .card-pizza { width: 84px; position: static; }
  .deal-art.two { display: flex; flex-direction: column; justify-content: center; gap: 0; }
  .deal-art.two .card-pizza.b { margin-top: -30px; margin-right: 30px; }
  .deal-drink { width: 30px; left: 6px; bottom: 6px; }
  .card-icon { width: 70%; }
  .badge { top: 8px; right: 8px; font-size: 11.5px; padding: 2px 8px; }
  .card-body { padding: 12px 14px; }
  .card h3 { font-size: 17px; }
  .card p { font-size: 13.5px; margin-bottom: 8px; }
  .go-btn { padding: 6px 12px; font-size: 13px; }
  .mbar { display: block; }
  .mbar[hidden] { display: none; }
  body.has-cart #pz-toast { bottom: 88px; }
  .ft-in { grid-template-columns: 1fr; padding-bottom: 90px; }

  /* builder on mobile: pizza on top, controls scroll beneath */
  .bd-top { padding: 8px 12px; }
  .bd-title h2 { font-size: 19px; }
  .bd-sub { font-size: 13px; }
  .bd-body { display: flex; flex-direction: column; }
  .bd-visual { order: 0; flex: none; padding: 10px 12px 8px; }
  .bd-visual::before { width: 46vw; }
  .bd-stage { width: min(38vh, 70vw); }
  .bd-chips { margin-top: 6px; max-height: 64px; overflow-y: auto; min-height: 0; }
  .chip { font-size: 12.5px; }
  .side-tag { font-size: 11px; }
  .side-tag.r { right: -30px; }
  .side-tag.l { left: -30px; }
  .bd-controls { flex: 1; min-height: 0; border: 0; border-top: 1px solid var(--line); padding: 0 14px 20px; }
  .opt-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tops { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tp-main { padding: 10px 4px 6px; }
  .tp-ico { width: 44px; height: 44px; }
  .tp-ico svg { width: 32px; height: 32px; }
  .tp-name { font-size: 13.5px; }
  .tp-price { font-size: 12px; }
  .tp-parts button { padding: 7px 0; }
  .tp-parts svg { width: 19px; height: 19px; }
  .bd-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
  .bd-foot .qty-mini button { width: 30px; height: 30px; }
  .bd-foot .qty-mini span { min-width: 22px; }
  .bd-prev { padding: 0 12px; font-size: 14px; }
  .bd-next { font-size: 16px; padding: 0 16px; }

  /* sheets go full screen */
  .layer-modal { align-items: flex-end; padding: 0; }
  .modal { border-radius: 24px 24px 0 0; max-height: 92vh; padding: 24px 18px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); }
  .sheet { margin: 0; border-radius: 0; max-height: none; height: 100%; }
  .co-grid { grid-template-columns: 1fr; padding: 14px; gap: 0; }
  .co-sum { position: static; margin-bottom: 20px; }
  .pay { grid-template-columns: 1fr; }
  .pay .radio-card { flex-direction: row; align-items: center; }
  .drawer { width: 100%; }
}
@media (max-width: 380px) {
  .tops { grid-template-columns: repeat(2, 1fr); }
  .logo-txt small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* logo has a white background: blend it into the cream surfaces */
.logo img, .modal-logo, .pz-boot img { mix-blend-mode: multiply; }
.pzo [hidden] { display: none !important; }
.bd-next, .bd-next span, .mbar .btn span { white-space: nowrap; }
@media (max-width: 860px) {
  .bd-stage { width: min(30vh, 62vw); }
  .bd-visual { padding: 6px 12px 6px; }
  .bd-chips { max-height: 58px; }
  .bd-next { gap: 8px; }
}
/* RTL alignment for the phone field even though digits run LTR */
.f input[type=tel] { text-align: right; }
.f input[type=tel]::placeholder { text-align: right; }
@media (max-width: 860px) {
  .bd-prev { width: 48px; padding: 0; font-size: 0; flex: none; }
  .bd-prev svg { width: 22px; height: 22px; }
  .bd-next { min-width: 0; padding: 0 14px; font-size: 15.5px; }
  .bd-total { padding: 3px 9px; }
}

.price, .go-btn { white-space: nowrap; }
/* footer bottom: copyright + Space Stage credit */
.ft-bottom { max-width: 1240px; margin: 0 auto; padding: 14px 20px 24px; border-top: 1px solid #ffffff1f; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ft-bottom .ft-credit { padding: 0; text-align: right; }
.agency { display: inline-flex; align-items: center; gap: 8px; color: #9d8f84 !important; font-size: 13px; text-decoration: none; opacity: .85; transition: opacity .15s; }
.agency:hover { opacity: 1; }
.agency img { height: 28px; width: auto; display: block; }
@media (max-width: 860px) {
  .ft-in { padding-bottom: 20px; }
  .ft-bottom { flex-direction: column; justify-content: center; text-align: center; padding-bottom: 100px; }
  .ft-bottom .ft-credit { text-align: center; }
}
/* show the whole pizza inside the card (no cropping) */
.card-art { padding: 12px; }
.card--pizza .card-pizza { width: auto; height: 100%; max-width: 100%; aspect-ratio: 1; }
.card-art img.card-photo { width: 100%; height: 100%; object-fit: contain; display: block; }
.deal-art .card-pizza { width: auto; height: 92%; aspect-ratio: 1; }
.deal-art.two .card-pizza { height: 80%; width: auto; right: 8%; top: 4%; }
.deal-art.two .card-pizza.b { left: 12%; top: 16%; }
@media (max-width: 860px) {
  .card-art { padding: 8px; }
  .card--pizza .card-pizza { height: auto; width: 100%; }
  .deal-art .card-pizza, .deal-art.two .card-pizza { height: auto; width: 84px; }
}

@media (max-width: 860px) { .logo img { width: 58px; height: 58px; } }

/* =====================================================================
   Design v2: bolder ordering feel in the client's brand
   ===================================================================== */

/* header: solid brand red, white category bar under it */
.hd { background: var(--red); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 4px 18px rgba(120, 20, 10, .18); }
.logo img { mix-blend-mode: normal; background: #fff; border-radius: 50%; padding: 2px; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.logo-txt b { color: #fff; }
.logo-txt small { color: #ffd98a; }
.mode-pill { background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .28); color: #fff; }
.mode-pill:hover { background: rgba(255, 255, 255, .22); }
.mode-pill svg { color: var(--gold); }
.hd-phone { color: #fff; }
.hd-phone svg { color: var(--gold); }
.cart-btn { background: var(--gold); color: var(--ink) !important; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.cart-btn:hover { background: #ffc53d; }
.cart-count { background: rgba(0, 0, 0, .12); }
.cart-count.on { background: var(--ink); color: #fff; }
.cats { background: #fff; border-top: 0; }
.cats-in { gap: 2px; padding: 0 10px; }
.cats a { display: flex; align-items: center; gap: 7px; padding: 13px 14px 11px; color: var(--ink-2); }
.cats a svg { width: 21px; height: 21px; flex: none; }
.cats a.on, .cats a:hover { color: var(--red); }

/* promo slider */
.promo { position: relative; }
.promo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.promo-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; overflow: hidden; position: relative; color: #fff; }
.slide-in { max-width: 1240px; height: 100%; margin: 0 auto; padding: 44px 20px 56px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; }
.t-red { background: radial-gradient(circle at 15% 55%, #ff9a5a55 0, transparent 45%), linear-gradient(135deg, #d42a1f 0%, #9e1a12 100%); }
.t-dark { background: radial-gradient(circle at 20% 50%, #c8231a66 0, transparent 50%), #1f1714; }
.t-gold { background: radial-gradient(circle at 20% 50%, #fff3c4 0, transparent 50%), linear-gradient(135deg, #f8c93a, #f0a812); color: var(--ink); }
.slide .kicker { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 14px; padding: 4px 14px; border-radius: 999px; transform: rotate(-2deg); }
.t-gold .kicker { background: var(--red); color: #fff; }
.slide h1, .slide h2 { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 5.4vw, 66px); line-height: 1.02; margin: 14px 0 10px; letter-spacing: -.5px; }
.slide h1 em { font-style: normal; color: var(--gold); }
.slide p { font-size: 18px; max-width: 480px; margin: 0 0 18px; opacity: .92; }
.promo-price { display: flex; align-items: flex-start; gap: 4px; font-family: var(--display); margin: 0 0 18px; line-height: 1; }
.promo-price small { font-size: 18px; font-weight: 700; align-self: center; margin-left: 6px; }
.promo-price b { font-size: clamp(64px, 8vw, 96px); font-weight: 900; color: var(--gold); text-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.t-gold .promo-price b { color: var(--red); text-shadow: none; }
.promo-price span { font-size: 32px; font-weight: 800; margin-top: 8px; }
.slide-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-gold { background: var(--gold); color: var(--ink) !important; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); font-size: 17px; min-height: 52px; padding: 0 28px; }
.btn-gold:hover { background: #ffc53d; }
.t-gold .btn-gold { background: var(--red); color: #fff !important; }
.btn-line { background: transparent; color: #fff !important; border: 2px solid rgba(255, 255, 255, .55); }
.btn-line:hover { border-color: #fff; }
.slide-art { position: relative; display: grid; place-items: center; height: 100%; min-height: 300px; }
.slide-art > svg { width: min(440px, 100%); height: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .3)); }
.spin-slow { animation: spin 70s linear infinite; }
.slide-art .deal-art { width: min(440px, 100%); aspect-ratio: 1; }
.slide-art .deal-art .card-pizza { width: 78%; height: auto; }
.slide-art .deal-art.two .card-pizza { position: absolute; width: 62%; height: auto; right: 2%; top: 4%; }
.slide-art .deal-art.two .card-pizza.b { right: auto; left: 6%; top: 30%; }
.slide-art .deal-drink { width: 24%; left: 0; bottom: 4%; }
.promo-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.promo-dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .5); transition: width .25s, background .25s; }
.promo-dots button.on { width: 26px; background: #fff; }

/* USP strip */
.usp { background: #fff; border-bottom: 1px solid var(--line); }
.usp-in { max-width: 1240px; margin: 0 auto; padding: 14px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.usp-in > div { display: flex; align-items: center; gap: 12px; justify-content: center; }
.usp-in svg { width: 34px; height: 34px; color: var(--red); flex: none; }
.usp-in b { display: block; font-size: 15.5px; }
.usp-in small { color: var(--muted); font-size: 13px; }

/* menu + cards */
.menu { padding-top: 8px; }
.cat h2 { font-size: 32px; }
.cat h2::before { content: ""; width: 8px; height: 30px; border-radius: 4px; background: var(--red); }
.card { border: 1px solid #f0e6d8; box-shadow: 0 1px 2px rgba(60, 30, 10, .05), 0 6px 18px rgba(60, 30, 10, .06); }
.card-art { background: radial-gradient(circle at 50% 55%, #fffaf1 0, #f7ead6 75%); }
.card h3 { font-size: 19.5px; }
.price { font-size: 18px; color: var(--ink); }
.go-btn { background: var(--red); color: #fff; padding: 8px 16px; box-shadow: 0 4px 10px rgba(200, 35, 26, .22); }
.card:hover .go-btn { background: var(--red-d); }
.add-btn { box-shadow: 0 4px 10px rgba(200, 35, 26, .25); }
.card--deal { border-color: #f5d27a; }

/* builder: collapsing pizza on mobile */
.bd-stage { transition: width .3s cubic-bezier(.2, .8, .2, 1); }
.bd-visual { transition: padding .3s; }
@media (max-width: 860px) {
  .builder.compact .bd-visual { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 6px 12px; }
  .builder.compact .bd-visual::before, .builder.compact .side-tag { display: none; }
  .builder.compact .bd-stage { width: 84px; cursor: pointer; flex: none; }
  .builder.compact .bd-chips { margin: 0; flex: 1; justify-content: flex-start; max-height: 80px; }

  .hd { box-shadow: 0 2px 10px rgba(120, 20, 10, .2); }
  .hd-phone { background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .28); }
  .cats a { flex-direction: column; gap: 3px; padding: 9px 12px 7px; font-size: 13px; }
  .cats a svg { width: 22px; height: 22px; }
  .slide-in { grid-template-columns: 1fr; padding: 26px 18px 44px; gap: 0; align-content: start; }
  .slide h1, .slide h2 { font-size: 38px; margin: 12px 0 8px; }
  .slide p { font-size: 15.5px; margin-bottom: 14px; }
  .promo-price { margin-bottom: 14px; }
  .promo-price b { font-size: 64px; }
  .slide-art { min-height: 0; margin-top: 14px; }
  .slide-art > svg, .slide-art .deal-art { width: 230px; }
  .btn-gold { min-height: 48px; font-size: 16px; padding: 0 22px; }
  .usp-in { grid-template-columns: repeat(3, 1fr); padding: 12px 10px; gap: 6px; }
  .usp-in > div { flex-direction: column; text-align: center; gap: 4px; }
  .usp-in svg { width: 28px; height: 28px; }
  .usp-in b { font-size: 13px; }
  .usp-in small { font-size: 11.5px; }
  .menu { padding-top: 6px; }
  .cat h2 { font-size: 26px; }
  .cat h2::before { height: 24px; width: 6px; }
}

/* =====================================================================
   Design v3: dark look taken from the printed menu
   (black backdrop, parchment cards, red brush headings, gold accents)
   ===================================================================== */
body.pzo-body {
  background-color: #15100d;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(200, 35, 26, .20), transparent 38%),
    radial-gradient(circle at 92% 35%, rgba(244, 179, 26, .07), transparent 32%),
    radial-gradient(circle at 10% 80%, rgba(200, 35, 26, .10), transparent 35%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

/* category bar + USP: dark wood instead of white */
.cats { background: #1d1512; border-top: 1px solid rgba(255, 255, 255, .06); }
.cats a { color: #e9dcc6; }
.cats a.on, .cats a:hover { color: var(--gold); border-color: var(--gold); }
.usp { background: #1d1512; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.usp-in b { color: #f6ead6; }
.usp-in small { color: #b7a690; }
.usp-in svg { color: var(--gold); }

/* red brush-stroke category headings */
.cat { padding-top: 34px; }
.cat h2 { display: flex; align-items: center; gap: 14px; color: #fff; margin-bottom: 18px; }
.cat h2::before { display: none; }
.cat h2 .brush { position: relative; display: inline-block; padding: 6px 30px 9px; background: var(--red); clip-path: polygon(1.5% 12%, 30% 4%, 70% 7%, 98.5% 0, 100% 46%, 97.5% 100%, 60% 94%, 25% 98%, 2.5% 92%, 0 50%); box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.cat h2::after { background: repeating-linear-gradient(90deg, rgba(244, 179, 26, .35) 0 10px, transparent 10px 18px); height: 2px; }

/* parchment cards */
.card { background: linear-gradient(180deg, #fbf2de 0%, #f1e0bf 100%); border: 1px solid #e3c99b; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.card:hover { box-shadow: 0 16px 34px rgba(0, 0, 0, .45); }
.card-art { background: radial-gradient(circle at 50% 55%, #fff7e6 0, #ecd5aa 80%); border-bottom: 1px dashed #d9bb85; }
.card h3 { color: #1f1714; }
.card p { color: #6e5d4c; }
.price { color: var(--red); font-family: var(--display); font-weight: 900; font-size: 21px; }
.card--deal { border-color: var(--gold); }

/* footer + mobile cart bar on dark */
.ft { background: #0f0b09; border-top: 3px solid var(--red); }
.mbar { background: linear-gradient(transparent, rgba(21, 16, 13, .95) 35%); }

/* ---------- builder: new scrolling ---------- */
.bd-side { order: 1; overflow-y: auto; overscroll-behavior: contain; background: var(--cream); border-inline-start: 1px solid var(--line); position: relative; }
.bd-controls { order: unset; overflow: visible; border: 0; padding: 0 22px 30px; background: transparent; }
.bd-bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 22px; background: var(--cream); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.bd-bar .bd-tabs { position: static; flex: 1; min-width: 0; padding: 0; margin: 0; background: none; }
.bd-mini { display: none; align-items: center; gap: 6px; flex: none; border: 0; background: #fff; border-radius: 999px; padding: 3px 10px 3px 3px; box-shadow: var(--shadow); }
.bd-mini svg { width: 44px; height: 44px; display: block; }
.bd-mini b { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--red); white-space: nowrap; }
@media (max-width: 860px) {
  .bd-body { display: block; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--cream); }
  .bd-visual { order: unset; padding: 14px 12px 10px; }
  .bd-stage { width: min(64vw, 36vh); }
  .bd-chips { max-height: none; overflow: visible; }
  .side-tag.r { right: -34px; }
  .side-tag.l { left: -34px; }
  .bd-side { overflow: visible; border: 0; }
  .bd-bar { padding: 8px 12px; }
  .bd-controls { padding: 0 14px 24px; }
  .builder.mini-on .bd-bar { border-color: var(--line); box-shadow: 0 6px 14px rgba(60, 30, 10, .1); }
  .builder.mini-on .bd-mini { display: flex; animation: miniIn .25s cubic-bezier(.3, 1.4, .5, 1); }
  @keyframes miniIn { from { transform: scale(.6); opacity: 0; } }

  .cat h2 { font-size: 24px; }
  .cat h2 .brush { padding: 5px 22px 7px; }
  .price { font-size: 19px; }
}

.slide-art .slide-icon { width: min(340px, 80%); height: auto; filter: drop-shadow(0 18px 26px rgba(0,0,0,.25)); }
@media (max-width: 860px) { .slide-art .slide-icon { width: 200px; } }

/* =====================================================================
   Photo layer: real/generated photos replace the drawings
   ===================================================================== */

/* pizza builder: photo base + topping layers */
.pz-base.spicy { filter: saturate(1.25) hue-rotate(-6deg) brightness(.97); }
.pz-base.light { filter: saturate(.9) brightness(1.03); }
.pz-anim { transform-box: view-box; transform-origin: 200px 200px; }
.pz-drop { animation: layerDrop .55s cubic-bezier(.25, 1.35, .45, 1) both; }
@keyframes layerDrop { from { transform: scale(1.18) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* builder stage on dark wood */
.bd-visual.photo-bg { background-color: #1a120d; background-size: cover; background-position: center; }
.bd-visual.photo-bg::before { display: none; }
.bd-visual.photo-bg .bd-svg { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); }
.bd-visual.photo-bg .bd-svg g[filter] { filter: none; }
.bd-visual.photo-bg .side-tag { background: rgba(255, 255, 255, .92); }
.bd-visual.photo-bg .chip-empty { color: #e9dcc6; }

/* topping thumbnails in the grid and chips */
.tp-ico { overflow: hidden; }
.tp-thumb { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.7); border-radius: 50%; }
.tp-ico .tp-thumb { width: 52px; height: 52px; }
.chip .tp-thumb { width: 22px; height: 22px; border-radius: 50%; transform: none; object-fit: cover; }
.tp.on .tp-ico { transform: scale(1.08); box-shadow: 0 0 0 3px var(--red); }
@media (max-width: 860px) { .tp-ico .tp-thumb { width: 44px; height: 44px; } }

/* product photos on cards */
.card-art .card-photo { width: 92%; height: 92%; object-fit: contain; display: block; filter: drop-shadow(0 12px 14px rgba(60, 30, 10, .28)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-photo { transform: scale(1.06) rotate(-2deg); }
img.mini-photo { width: 64px; height: 64px; object-fit: contain; }
.opt-photo { width: 120px; height: 120px; object-fit: contain; flex: none; filter: drop-shadow(0 8px 10px rgba(60, 30, 10, .25)); }

/* photo pizza on cards and slides */
.card-pizza, .spin-slow { overflow: visible; }

/* slider with banner photos */
.slide.has-photo { background-image: linear-gradient(to left, rgba(16, 10, 8, .94) 0%, rgba(16, 10, 8, .82) 32%, rgba(16, 10, 8, .25) 58%, rgba(16, 10, 8, 0) 75%), var(--bg-d); background-size: cover; background-position: left center; color: #fff; }
.slide.has-photo .slide-in { grid-template-columns: minmax(0, 1fr); min-height: clamp(420px, 42vw, 620px); }
.slide.has-photo .slide-txt { max-width: 560px; }
.slide.has-photo .kicker { background: var(--gold); color: var(--ink); }
.slide.has-photo .promo-price b { color: var(--gold); }
.slide.has-photo .btn-gold { background: var(--gold); color: var(--ink) !important; }
.slide.has-photo h1, .slide.has-photo h2 { text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
@media (max-width: 860px) {
  .slide.has-photo { background-image: linear-gradient(to top, rgba(16, 10, 8, .97) 0%, rgba(16, 10, 8, .85) 42%, rgba(16, 10, 8, .15) 72%, rgba(16, 10, 8, .05) 100%), var(--bg-m); background-position: 22% top; background-size: auto 62%; background-repeat: no-repeat; background-color: #100a08; }
  .slide.has-photo .slide-in { min-height: 560px; align-content: end; padding-top: 0; padding-bottom: 52px; }
}

/* size cards with the real pizza photo */
.sizes .size-pic { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 4px; }
.sizes .size-pic img { display: block; height: auto; filter: drop-shadow(0 6px 8px rgba(60, 30, 10, .3)); transition: transform .3s; }
.sizes .opt.on .size-pic img { transform: rotate(-12deg) scale(1.04); }

/* sauce / cheese photo cards */
.opt-grid.pics { grid-template-columns: repeat(3, 1fr); }
.opt.pic { align-items: center; text-align: center; padding: 10px 6px 10px; }
.opt-pic { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: block; margin-bottom: 6px; box-shadow: 0 4px 10px rgba(60, 30, 10, .22); }
.opt-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); display: block; }
.opt-pic.spicy img { filter: saturate(1.5) hue-rotate(-10deg) brightness(.9) contrast(1.1); }
.opt-pic.light img { filter: brightness(1.05) saturate(.85); opacity: .85; }
.opt.pic b { font-size: 14.5px; }
.opt.pic small { font-size: 11.5px; }
.opt.pic.on::after { top: 6px; left: 6px; }
@media (max-width: 860px) { .opt-pic { width: 54px; height: 54px; } .opt.pic b { font-size: 13.5px; } }
@media (max-width: 860px) {
  .builder.mini-on .bd-tabs a { padding: 7px 10px; font-size: 13px; }
}

.card-art .card-photo[data-p="bottle05"] { width: 72%; height: 72%; }

/* footer: delivery fee per area */
.ft .ft-area { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; max-width: 340px; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); margin: 0; }
.ft .ft-area span { color: #e2d6c9; }
.ft .ft-area em { font-style: normal; font-weight: 800; color: var(--gold); white-space: nowrap; }
.ft .ft-area + p:not(.ft-area) { margin-top: 10px; }

/* sauce/cheese photo cards: one row whatever the count */
.opt-grid.pics { grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); }

/* pizza hero photos on menu cards: a touch bigger, they are wide 4:3 shots */
.card--pizza .card-art .card-photo { width: 100%; height: 100%; }
.card--pizza .card-art { padding: 6px 8px; }
