:root {
  --brand: #d94f2b;
  --brand-2: #f4b942;
  --surface: #fff4e6;
  --surface-2: #fffaf3;
  --ink: #24211f;
  --muted: #6f665f;
  --green: #1f382b;
  --olive: #718742;
  --danger: #b42318;
  --success: #247a46;
  --radius: 22px;
  --shadow: 0 16px 40px rgba(57, 29, 17, .14), 0 4px 10px rgba(57, 29, 17, .08);
  --shadow-small: 0 8px 20px rgba(57, 29, 17, .10);
  --max: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: radial-gradient(circle at 10% 0%, rgba(244,185,66,.18), transparent 25rem), var(--surface-2); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 9999; top: 8px; left: 8px; transform: translateY(-150%); background: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; }
.shell { width: min(var(--max), calc(100% - 28px)); margin-inline: auto; }
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); background: rgba(255,250,243,.86); border-bottom: 1px solid rgba(36,33,31,.08); }
.nav { min-height: 76px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; letter-spacing: -.03em; }
.brand-mark { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, var(--brand-2), var(--brand)); box-shadow: inset 2px 2px 6px rgba(255,255,255,.45), 0 8px 20px rgba(217,79,43,.25); transform: rotate(-4deg); }
.brand-mark svg { width: 31px; height: 31px; }
.nav-links { display: flex; gap: 8px; margin-left: auto; }
.nav-link, .icon-button { border: 0; background: transparent; padding: 11px 13px; border-radius: 14px; text-decoration: none; color: var(--muted); font-weight: 750; }
.nav-link:hover, .icon-button:hover { background: rgba(217,79,43,.08); color: var(--brand); }
.cart-button { position: relative; border: 0; border-radius: 16px; padding: 12px 16px; background: var(--green); color: white; font-weight: 850; box-shadow: var(--shadow-small); }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--brand-2); color: var(--ink); }
.hero { padding: 58px 0 34px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; min-height: 560px; overflow: hidden; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid rgba(217,79,43,.18); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--brand); font-weight: 800; }
h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); line-height: .94; letter-spacing: -.065em; margin: 18px 0; }
.hero p { max-width: 620px; color: var(--muted); font-size: 1.14rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { border: 0; border-radius: 16px; padding: 14px 20px; background: var(--brand); color: white; font-weight: 850; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; box-shadow: 0 12px 26px rgba(217,79,43,.24); }
.button:hover { transform: translateY(-2px); }
.button.secondary { background: white; color: var(--ink); box-shadow: var(--shadow-small); }
.button.green { background: var(--green); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1px solid rgba(36,33,31,.15); }
.button.danger { background: var(--danger); }
.hero-scene { perspective: 900px; min-height: 430px; display: grid; place-items: center; position: relative; }
.pizza-stage { width: min(440px, 86vw); aspect-ratio: 1; position: relative; transform-style: preserve-3d; transform: rotateX(54deg) rotateZ(-18deg); animation: float-stage 7s ease-in-out infinite; }
.pizza-disc { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 44% 38%, #ffd486 0 8%, #eaa94a 9% 69%, #c67a2a 70% 76%, #91511f 77% 81%, transparent 82%), radial-gradient(circle, #d94f2b 0 52%, #bc321b 53% 68%, transparent 69%); box-shadow: 0 44px 45px rgba(48,24,10,.32), inset 10px -12px 25px rgba(107,43,12,.22), inset -8px 10px 18px rgba(255,255,255,.28); transform: translateZ(30px); }
.topping { position: absolute; border-radius: 50%; transform: translateZ(58px); box-shadow: inset 2px 2px 4px rgba(255,255,255,.35), 2px 4px 7px rgba(0,0,0,.22); }
.topping.pepperoni { width: 14%; aspect-ratio:1; background: radial-gradient(circle at 35% 30%, #ed8063, #a72115); }
.topping.olive { width: 8%; aspect-ratio:1; border: 7px solid #303c25; background: transparent; box-shadow: 2px 4px 7px rgba(0,0,0,.22); }
.topping.basil { width: 16%; height: 8%; border-radius: 100% 0 100% 0; background: linear-gradient(135deg, #6cae43, #1c632d); }
.hero-badge { position: absolute; right: 2%; bottom: 8%; z-index: 4; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); transform: rotate(5deg); font-weight: 850; }
@keyframes float-stage { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.045em; }
.section-head p { color: var(--muted); max-width: 560px; margin: 8px 0 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.chip { flex: 0 0 auto; border: 1px solid rgba(36,33,31,.12); background: white; border-radius: 999px; padding: 10px 15px; font-weight: 780; }
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.product-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 370px; border: 1px solid rgba(36,33,31,.08); border-radius: var(--radius); background: rgba(255,255,255,.88); box-shadow: var(--shadow-small); transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-5px) rotateX(1deg); box-shadow: var(--shadow); }
.product-media { height: 190px; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgba(244,185,66,.45), transparent 42%), linear-gradient(145deg, #fff5df, #f3d5b6); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-emoji { font-size: 5.4rem; filter: drop-shadow(0 18px 12px rgba(90,44,19,.22)); transform: rotate(-7deg); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge { background: var(--green); color: #fff; padding: 6px 9px; border-radius: 999px; font-size: .76rem; font-weight: 850; }
.badge.hot { background: var(--brand); }
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin: 0 0 8px; font-size: 1.28rem; }
.product-body p { margin: 0 0 14px; color: var(--muted); line-height: 1.55; }
.allergens { color: var(--muted); font-size: .8rem; margin-top: auto; }
.product-footer { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-weight: 950; font-size: 1.35rem; }
.icon-add { width: 44px; height: 44px; border: 0; border-radius: 15px; background: var(--brand); color: #fff; font-size: 1.45rem; box-shadow: 0 8px 18px rgba(217,79,43,.25); }
.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(26,17,13,.48); backdrop-filter: blur(6px); display: grid; }
.drawer { justify-self: end; width: min(480px, 100%); height: 100%; background: var(--surface-2); padding: 22px; overflow: auto; box-shadow: -18px 0 40px rgba(0,0,0,.18); }
.drawer-head, .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.close-button { border: 0; background: rgba(36,33,31,.08); width: 42px; height: 42px; border-radius: 14px; font-size: 1.3rem; }
.cart-list { display: grid; gap: 12px; margin: 22px 0; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 15px; border-radius: 18px; background: white; box-shadow: var(--shadow-small); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 32px; height: 32px; border: 0; border-radius: 10px; background: var(--surface); }
.total-row { display: flex; justify-content: space-between; padding: 8px 0; }
.total-row.grand { margin-top: 8px; padding-top: 15px; border-top: 1px solid rgba(36,33,31,.12); font-size: 1.3rem; font-weight: 900; }
.modal-card { place-self: center; width: min(720px, calc(100% - 24px)); max-height: calc(100vh - 30px); overflow: auto; padding: 24px; border-radius: 26px; background: var(--surface-2); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1/-1; }
label { font-weight: 780; }
input, select, textarea { width: 100%; border: 1px solid rgba(36,33,31,.16); border-radius: 14px; background: white; padding: 12px 13px; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
.help { font-size: .83rem; color: var(--muted); }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; color: var(--muted); }
.checkbox input { width: auto; margin-top: 4px; }
.notice { padding: 13px 15px; border-radius: 14px; background: rgba(244,185,66,.18); border: 1px solid rgba(244,185,66,.35); }
.notice.error { background: rgba(180,35,24,.08); border-color: rgba(180,35,24,.25); color: var(--danger); }
.notice.success { background: rgba(36,122,70,.09); border-color: rgba(36,122,70,.25); color: var(--success); }
.campaign-popup { position: fixed; z-index: 120; left: 50%; bottom: 24px; translate: -50% 0; width: min(560px, calc(100% - 24px)); padding: 18px; border-radius: 22px; background: linear-gradient(135deg, var(--green), #31543e); color: white; box-shadow: 0 24px 70px rgba(0,0,0,.35); display: grid; grid-template-columns: 1fr auto; gap: 12px; animation: pop-in .35s ease both; }
.campaign-popup .button { align-self: end; background: var(--brand-2); color: var(--ink); box-shadow: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.builder-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; }
.pizza-canvas-wrap { min-height: 360px; display: grid; place-items: center; border-radius: 24px; background: radial-gradient(circle, rgba(244,185,66,.2), transparent 62%), #f4eadf; perspective: 900px; }
#pizza-canvas { width: min(100%, 390px); height: auto; transform: rotateX(12deg); filter: drop-shadow(0 24px 20px rgba(63,31,13,.22)); }
.option-list { display: grid; gap: 10px; }
.option { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px; border: 1px solid rgba(36,33,31,.1); border-radius: 14px; background: white; }
.option input { width: auto; }
.social-strip { display: flex; gap: 10px; flex-wrap: wrap; padding: 20px; border-radius: var(--radius); background: var(--green); color: white; }
.social-strip a { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.12); text-decoration: none; font-weight: 800; }
.footer { padding: 46px 0 90px; color: var(--muted); }
.skeleton { min-height: 280px; border-radius: var(--radius); background: linear-gradient(90deg,#eee 25%,#f8f8f8 37%,#eee 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:0 0} }
.offline { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 24px; }
/* Admin */
.admin-body { background: #f5f6f3; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 20px; background: #18251d; color: white; }
.sidebar .brand { margin-bottom: 28px; }
.side-nav { display: grid; gap: 7px; }
.side-nav button { text-align: left; border: 0; background: transparent; color: rgba(255,255,255,.7); padding: 12px 14px; border-radius: 12px; font-weight: 760; }
.side-nav button.active, .side-nav button:hover { background: rgba(255,255,255,.1); color: white; }
.admin-main { padding: 28px; min-width: 0; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.admin-header h1 { font-size: clamp(2rem,4vw,3.2rem); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 18px; border-radius: 18px; background: white; box-shadow: var(--shadow-small); }
.stat small { color: var(--muted); font-weight: 700; }
.stat strong { display: block; margin-top: 8px; font-size: 1.8rem; }
.panel { padding: 20px; border-radius: 20px; background: white; box-shadow: var(--shadow-small); margin-bottom: 18px; overflow: auto; }
.panel h2 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #eceee9; vertical-align: top; }
th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.status { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: #eceee9; font-size: .78rem; font-weight: 850; }
.status.confirmed, .status.preparing { background: #fff0cc; color: #7a5000; }
.status.ready, .status.delivered { background: #dcf5e6; color: #17633a; }
.status.cancelled, .status.customer_absent { background: #fde6e2; color: #8f2418; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, rgba(244,185,66,.28), transparent 30rem), #f8f4ed; }
.login-card { width: min(430px,100%); padding: 28px; border-radius: 26px; background: white; box-shadow: var(--shadow); }
.login-card h1 { font-size: 2.6rem; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; }
  .hero-scene { min-height: 340px; order: -1; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .builder-layout { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .side-nav { display: flex; overflow-x: auto; }
  .side-nav button { flex: 0 0 auto; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .brand span:last-child { display: none; }
  h1 { font-size: 3.25rem; }
  .hero-scene { min-height: 290px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 330px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .admin-main { padding: 16px; }
  th:nth-child(3), td:nth-child(3) { display:none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .pizza-stage { animation: none; }
}

/* Cloudflare Pages demo */
.demo-public-banner{position:relative;z-index:50;display:flex;align-items:center;justify-content:center;gap:14px;min-height:44px;padding:8px 18px;background:linear-gradient(90deg,var(--green,#1f382b),#294d3c);color:#fff;font-size:.9rem;text-align:center}.demo-public-banner strong{letter-spacing:.08em;text-transform:uppercase;font-size:.75rem}.demo-public-banner span{opacity:.9}.demo-public-banner a{color:#fff4e6;font-weight:800;text-decoration:underline;text-underline-offset:3px}.demo-credentials{display:grid;gap:4px;margin:18px 0;padding:14px 16px;border:1px dashed rgba(217,79,43,.45);border-radius:16px;background:#fff4e6;color:#24211f}.demo-credentials strong{color:#d94f2b}.demo-credentials span{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.demo-side-label{margin:16px 0 4px;padding:7px 10px;border-radius:999px;background:rgba(244,185,66,.16);color:#ffd879;font-size:.7rem;font-weight:900;letter-spacing:.12em;text-align:center}.demo-admin-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:-6px 0 22px;padding:12px 16px;border-radius:16px;background:#fff4e6;border:1px solid rgba(217,79,43,.22);color:#24211f}.demo-admin-banner strong{color:#d94f2b}.demo-admin-banner span{font-size:.9rem;color:#5f554f}.sidebar a.button{display:block;text-align:center;text-decoration:none}
@media(max-width:720px){.demo-public-banner{flex-wrap:wrap;gap:6px;padding:9px 12px}.demo-public-banner span{width:100%;font-size:.8rem}.demo-admin-banner{align-items:flex-start;flex-direction:column;gap:4px}}


/* V2 realistic refinement */
:root {
  --brand: #b9482b;
  --brand-2: #d9a15a;
  --surface: #f7efe5;
  --surface-2: #fbf7f1;
  --ink: #231d1a;
  --muted: #695f58;
  --green: #23362b;
  --olive: #6b7a4a;
  --radius: 20px;
  --shadow: 0 24px 60px rgba(54,33,22,.12), 0 8px 18px rgba(54,33,22,.08);
  --shadow-small: 0 10px 26px rgba(54,33,22,.08);
}
body { background: radial-gradient(circle at 10% 0%, rgba(217,161,90,.14), transparent 24rem), linear-gradient(180deg,#fbf8f3,#f5efe7 40%, #f8f3ed 100%); }
.topbar { background: rgba(251,247,241,.82); border-bottom: 1px solid rgba(35,29,26,.07); }
.brand-mark { border-radius: 13px; background: linear-gradient(145deg, #dda564, #b9482b); box-shadow: inset 1px 1px 4px rgba(255,255,255,.45), 0 8px 18px rgba(111,53,28,.18); }
.hero { min-height: 620px; gap: 30px; }
.hero p { max-width: 560px; }
.hero-scene { min-height: 470px; }
.hero-platter { position: relative; width: min(500px, 92vw); aspect-ratio: 1 / 1; border-radius: 44px; background: linear-gradient(145deg, #f0e4d4, #f9f5ee); box-shadow: 0 34px 70px rgba(73,46,29,.16), inset 0 1px 0 rgba(255,255,255,.8); overflow: hidden; }
.hero-platter::before { content: ''; position: absolute; inset: 26px; border-radius: 36px; background: radial-gradient(circle at 50% 34%, rgba(255,255,255,.95), rgba(245,236,227,.94) 62%, rgba(232,219,205,.92)); box-shadow: inset 0 -14px 30px rgba(115,83,56,.08); }
.hero-platter::after { content: ''; position: absolute; inset: auto 44px 30px; height: 20px; border-radius: 999px; background: rgba(109,77,53,.10); filter: blur(8px); }
.hero-food { position: absolute; inset: 84px 66px 78px; width: calc(100% - 132px); height: calc(100% - 162px); object-fit: contain; filter: drop-shadow(0 22px 18px rgba(71,43,25,.18)); }
.hero-badge { right: 20px; bottom: 22px; background: rgba(255,250,243,.95); border: 1px solid rgba(35,29,26,.07); box-shadow: var(--shadow-small); transform: none; }
.hero-note { position: absolute; max-width: 190px; display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.78); border: 1px solid rgba(35,29,26,.07); backdrop-filter: blur(12px); box-shadow: var(--shadow-small); }
.hero-note strong { font-size: .9rem; }
.hero-note span { color: var(--muted); font-size: .83rem; line-height: 1.35; }
.hero-note-top { left: 18px; top: 18px; }
.hero-note-bottom { left: 18px; bottom: 24px; }
.product-grid { gap: 22px; }
.product-card { min-height: 430px; border: 1px solid rgba(35,29,26,.06); background: rgba(255,255,255,.92); box-shadow: 0 18px 42px rgba(58,39,25,.08); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(58,39,25,.12); }
.product-media { position: relative; height: 220px; background: linear-gradient(180deg, #f0e2d0, #e9d3b7); }
.product-media img { position: relative; z-index: 1; object-fit: contain; padding: 18px; }
.product-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(58,39,25,.10)); pointer-events: none; }
.product-body { padding: 20px; gap: 14px; }
.product-copy p { font-size: .96rem; }
.ingredient-list { display: grid; gap: 4px; padding: 12px 14px; border-radius: 16px; background: #faf6f0; border: 1px solid rgba(35,29,26,.06); }
.ingredient-list strong { font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; color: var(--green); }
.ingredient-list span { color: var(--muted); line-height: 1.45; font-size: .9rem; }
.badge { background: rgba(35,54,43,.92); backdrop-filter: blur(6px); }
.badge.hot { background: rgba(185,72,43,.95); }
.price { letter-spacing: -.02em; }
.icon-add { width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(145deg,var(--brand),#9f3720); box-shadow: 0 10px 20px rgba(185,72,43,.20); }
.social-strip { background: linear-gradient(135deg, #213329, #30463a); box-shadow: var(--shadow-small); }
.login-card,.panel,.modal-card,.drawer { box-shadow: var(--shadow); }
.sidebar { background: linear-gradient(180deg, #162019, #223126); }
.thumb { width: 72px; height: 56px; object-fit: cover; border-radius: 12px; background: #f6efe6; border: 1px solid rgba(35,29,26,.08); flex: 0 0 72px; }
.product-admin-row { display: flex; gap: 12px; align-items: flex-start; }
.preview-image { width: 100%; max-width: 320px; border-radius: 18px; border: 1px solid rgba(35,29,26,.08); background: #f6efe6; padding: 8px; }
@media (max-width: 900px) {
  .hero-platter { width: min(430px, 92vw); }
  .hero-note { max-width: 160px; }
}
@media (max-width: 620px) {
  .hero { min-height: auto; }
  .hero-platter { aspect-ratio: 1 / 1.04; }
  .hero-food { inset: 92px 38px 88px; width: calc(100% - 76px); height: calc(100% - 180px); }
  .hero-note { position: static; margin: 12px 14px 0; }
  .hero-badge { right: 14px; bottom: 14px; }
}


/* V3 deployment-safe realistic template */
.version-pill{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#efe2d1;color:#8a3e25;font-size:.7rem;font-weight:950;letter-spacing:.09em;white-space:nowrap}.admin-nav-link{background:#231d1a!important;color:#fff!important}.admin-nav-link:hover{background:#b9482b!important;color:#fff!important}.hero-platter{background:linear-gradient(135deg,#261b16,#573521 48%,#b16f34);border:1px solid rgba(255,255,255,.08)}.hero-platter::before{inset:22px;background:radial-gradient(circle at 48% 35%,rgba(255,255,255,.12),rgba(37,24,18,.35) 62%,rgba(15,10,8,.55));box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),inset 0 -20px 40px rgba(0,0,0,.25)}.hero-food{inset:34px;width:calc(100% - 68px);height:calc(100% - 68px);object-fit:cover;border-radius:32px;filter:saturate(1.05) contrast(1.03) drop-shadow(0 28px 24px rgba(0,0,0,.28))}.hero-platter::after{inset:auto 52px 18px;background:rgba(0,0,0,.35)}.hero-note{background:rgba(24,18,14,.78);border-color:rgba(255,255,255,.12);color:#fff}.hero-note span{color:rgba(255,255,255,.72)}.hero-badge{background:rgba(255,250,243,.96)}.product-media{height:240px;background:#241a15}.product-media img{padding:0;object-fit:cover;transition:transform .45s ease}.product-card:hover .product-media img{transform:scale(1.035)}.product-overlay{background:linear-gradient(180deg,transparent 58%,rgba(20,12,8,.24))}.demo-public-banner{background:linear-gradient(90deg,#7d2f1e,#b9482b,#7d2f1e)}
@media(max-width:900px){.version-pill{display:none}.admin-nav-link{display:inline-flex!important}}
@media(max-width:620px){.nav-links{display:flex;margin-left:auto}.nav-links .nav-link:not(.admin-nav-link){display:none}.admin-nav-link{padding:9px 11px}.hero-food{inset:28px;width:calc(100% - 56px);height:calc(100% - 56px)}}

/* V4 menu completo, catalogo ingredienti e note */
.badge.customizable{background:rgba(217,161,90,.96);color:#241d18}
.footer-story{position:relative;min-height:420px;display:grid;align-items:end;overflow:hidden;background:#231710;color:#fff}
.footer-story>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.86}
.footer-story::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(25,14,9,.88),rgba(25,14,9,.34) 58%,rgba(25,14,9,.12)),linear-gradient(0deg,rgba(25,14,9,.72),transparent 55%)}
.footer-story-copy{position:relative;z-index:2;padding-block:72px;max-width:1180px}
.footer-story-copy h2{max-width:700px;margin:16px 0 10px;font-size:clamp(2.2rem,5vw,4.6rem);line-height:.96;letter-spacing:-.055em}
.footer-story-copy p{max-width:650px;color:rgba(255,255,255,.78);font-size:1.05rem;line-height:1.65}
.footer-grid{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:28px}
.builder-card{width:min(1080px,calc(100% - 24px))}
.builder-controls{display:grid;align-content:start;gap:18px;min-width:0}
.builder-section{display:grid;gap:10px;padding-bottom:18px;border-bottom:1px solid rgba(35,29,26,.08)}
.builder-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px}
.builder-section h3,.builder-section h4{margin:0}
.builder-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.builder-option-grid .option{padding:10px 12px;font-size:.92rem}
.extra-groups{display:grid;gap:16px;max-height:310px;overflow:auto;padding-right:4px}
.extra-group{display:grid;gap:8px}
.pizza-canvas-wrap{position:sticky;top:10px;align-self:start;grid-template-rows:1fr auto;padding:20px}
.builder-live-summary{width:100%;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.82);color:var(--muted);font-size:.88rem;line-height:1.45;box-shadow:var(--shadow-small)}
.catalog-editor{padding:18px;border-radius:18px;background:#f8f3ec;border:1px solid rgba(35,29,26,.08)}
.catalog-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.catalog-title h3,.catalog-editor>h3{margin:0 0 5px}
.ingredient-fieldset{margin:0 0 14px;padding:12px;border:1px solid rgba(35,29,26,.10);border-radius:16px;background:#fff}
.ingredient-fieldset legend{padding:0 8px;font-weight:900;color:var(--green)}
.catalog-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.catalog-check{display:flex;align-items:flex-start;gap:9px;padding:10px;border-radius:12px;background:#faf7f2;border:1px solid rgba(35,29,26,.06)}
.catalog-check input{width:auto;margin-top:3px}
.catalog-check span{display:grid;gap:2px}
.catalog-check small{color:var(--muted);font-weight:500;line-height:1.35}
.catalog-check.disabled{opacity:.48}
.product-editor{width:min(1040px,calc(100% - 24px))}
.ingredient-swatch{display:inline-block;width:14px;height:14px;margin-right:8px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}
.section-head.compact{align-items:center;margin-bottom:18px}
.section-head.compact h2{font-size:2rem}
@media(max-width:900px){.footer-grid{grid-template-columns:1fr 1fr}.builder-option-grid,.catalog-check-grid{grid-template-columns:1fr}.pizza-canvas-wrap{position:relative;top:auto}.builder-card{width:min(760px,calc(100% - 20px))}}
@media(max-width:620px){.footer-story{min-height:360px}.footer-story-copy{padding-block:44px}.footer-grid{grid-template-columns:1fr}.catalog-title{display:grid}.builder-section-head{display:grid;gap:4px}.product-media{height:230px}}


/* V5 responsive and usability system */
.button,.cart-button,.chip,.icon-add,.close-button,.side-nav button,.mobile-tabbar a,.mobile-tabbar button,.admin-menu-button,.sidebar-close{min-height:44px}

html,body{max-width:100%;overflow-x:clip}
body{min-width:320px}
#top,#menu,#novita,#social{scroll-margin-top:90px}
button,input,select,textarea,a{-webkit-tap-highlight-color:transparent}
button:disabled{cursor:not-allowed;opacity:.55}
.mobile-tabbar,.admin-mobile-bar,.admin-nav-backdrop,.sidebar-close{display:none}
.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sidebar-actions{display:grid;gap:10px;margin-top:24px}
.admin-account{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-nav-backdrop{border:0;padding:0}
@media (hover:none),(pointer:coarse){
  .button,.chip,.nav-link,.cart-button,.icon-add,.close-button,.qty button,.side-nav button,.admin-menu-button,.sidebar-close{min-height:44px}
  .button:hover,.product-card:hover{transform:none}
}
@media (max-width:1024px){
  :root{--max:940px}
  .shell{width:min(var(--max),calc(100% - 32px))}
  .hero{grid-template-columns:1fr 1fr;gap:24px;min-height:540px;padding-top:38px}
  h1{font-size:clamp(3rem,7vw,4.8rem)}
  .hero-platter{width:min(430px,100%)}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-shell{grid-template-columns:220px minmax(0,1fr)}
  .sidebar{padding:18px 14px}
  .admin-main{padding:24px 20px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .panel{padding:18px}
  .responsive-table{min-width:760px}
}
@media (max-width:860px){
  body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .demo-public-banner{padding-inline:14px}
  .topbar{top:0}
  .nav{min-height:66px;gap:10px}
  .nav-links{display:none}
  .cart-button{margin-left:auto;padding:10px 13px}
  .hero{grid-template-columns:1fr;min-height:auto;padding:28px 0 42px;gap:24px}
  .hero-scene{order:-1;min-height:350px}
  .hero-platter{width:min(430px,88vw)}
  .hero>div:first-child{text-align:center}
  .hero p{margin-inline:auto}
  .hero-actions{justify-content:center}
  .section{padding:44px 0}
  .section-head{align-items:start}
  #menu .chips{position:sticky;top:65px;z-index:30;margin-inline:-16px;padding:10px 16px;background:rgba(251,247,241,.94);backdrop-filter:blur(14px);border-block:1px solid rgba(35,29,26,.06);scroll-snap-type:x proximity}
  .chip{scroll-snap-align:start}
  .mobile-tabbar{position:fixed;z-index:80;left:10px;right:10px;bottom:max(8px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);min-height:62px;padding:7px;border:1px solid rgba(35,29,26,.09);border-radius:22px;background:rgba(255,252,248,.94);backdrop-filter:blur(18px);box-shadow:0 16px 44px rgba(34,22,15,.20)}
  .mobile-tabbar a,.mobile-tabbar button{display:grid;place-items:center;gap:2px;border:0;border-radius:15px;background:transparent;color:var(--ink);text-decoration:none;font-weight:800;min-width:0}
  .mobile-tabbar span{font-size:1.1rem;line-height:1}
  .mobile-tabbar small{font-size:.68rem;white-space:nowrap}
  .mobile-tabbar b{display:inline-grid;place-items:center;min-width:18px;height:18px;padding-inline:4px;border-radius:999px;background:var(--brand-2);font-size:.65rem}
  .campaign-popup{bottom:calc(86px + env(safe-area-inset-bottom));width:calc(100% - 24px)}
  .footer{padding-bottom:40px}

  /* Admin becomes an off-canvas mobile workspace */
  .admin-body{padding-bottom:0}
  .admin-shell{display:block;min-height:100dvh}
  .admin-mobile-bar{position:sticky;top:0;z-index:55;display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:12px;min-height:64px;margin:-16px -16px 16px;padding:8px 14px;background:rgba(245,246,243,.94);backdrop-filter:blur(16px);border-bottom:1px solid rgba(35,29,26,.08)}
  .admin-mobile-bar div{display:grid;min-width:0}
  .admin-mobile-bar small{color:var(--muted);font-size:.72rem}
  .admin-mobile-bar strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem}
  .admin-menu-button,.sidebar-close{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:14px;background:#fff;box-shadow:var(--shadow-small);font-weight:900;font-size:1.15rem}
  .admin-mobile-app{padding:10px 12px;border-radius:13px;background:var(--green);color:#fff;text-decoration:none;font-weight:850}
  .sidebar{position:fixed;z-index:110;inset:0 auto 0 0;width:min(330px,88vw);height:100dvh;padding:18px;overflow:auto;transform:translateX(-105%);transition:transform .24s ease;box-shadow:20px 0 60px rgba(0,0,0,.25)}
  .sidebar .brand{margin-bottom:0}
  .side-nav{display:grid;gap:7px;margin-top:18px;overflow:visible}
  .side-nav button{width:100%;flex:none;text-align:left;padding:13px 14px}
  .sidebar-actions{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
  .admin-nav-backdrop{position:fixed;z-index:105;inset:0;display:block;background:rgba(20,14,11,.48);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .2s ease}
  .admin-nav-open{overflow:hidden}
  .admin-nav-open .sidebar{transform:translateX(0)}
  .admin-nav-open .admin-nav-backdrop{opacity:1;pointer-events:auto}
  .admin-main{padding:16px;min-width:0}
  .admin-header{display:none}
  .demo-admin-banner{margin:0 0 16px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .stat{padding:15px}
  .stat strong{font-size:1.55rem}
  .panel{padding:16px;border-radius:17px;margin-bottom:14px;overflow-x:auto}
  .toolbar{align-items:stretch}
  .toolbar input,.toolbar select,.toolbar .button,.toolbar button{width:100%;min-width:0}
  .form-grid{grid-template-columns:1fr}
  .field.full{grid-column:auto}
  .product-editor,.builder-card{width:100%;max-width:none}
  .catalog-check-grid,.builder-option-grid{grid-template-columns:1fr}
}

@media (min-width:721px) and (max-width:860px){
  .responsive-table{display:block;min-width:0;width:100%;border:0}
  .responsive-table thead{display:none}
  .responsive-table tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .responsive-table tr{display:block;padding:14px;border:1px solid #eceee9;border-radius:15px;background:#fff;box-shadow:0 7px 18px rgba(40,28,20,.05)}
  .responsive-table td{display:grid;grid-template-columns:minmax(90px,.42fr) minmax(0,1fr);gap:10px;align-items:start;width:100%;padding:8px 0;border:0;border-bottom:1px solid #f0f1ed;overflow-wrap:anywhere}
  .responsive-table td:last-child{border-bottom:0}
  .responsive-table td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:.7rem;font-weight:850;text-transform:uppercase;letter-spacing:.05em}
  .responsive-table td[data-label="Azioni"]{display:flex;flex-wrap:wrap;gap:8px;padding-top:12px}
  .responsive-table td[data-label="Azioni"]::before{width:100%}
  .responsive-table td[data-label="Azioni"] .button{flex:1;min-width:100px;padding:10px}
  .responsive-table select{width:100%}
}

@media (max-width:720px){
  .shell{width:calc(100% - 24px)}
  .demo-public-banner{gap:5px;min-height:auto;padding-block:8px;font-size:.76rem}
  .demo-public-banner span{display:none}
  .brand-mark{width:42px;height:42px}
  .brand span:last-child{display:block;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .cart-label{display:none}
  .cart-button{padding:9px 10px}
  .hero-scene{min-height:290px}
  .hero-platter{width:min(340px,90vw);border-radius:30px}
  .hero-food{inset:20px;width:calc(100% - 40px);height:calc(100% - 40px);border-radius:23px}
  .hero-note{display:none}
  .hero-badge{right:10px;bottom:10px;padding:10px 12px;font-size:.78rem}
  h1{font-size:clamp(2.55rem,13vw,3.7rem);line-height:.98;letter-spacing:-.055em;margin:14px 0}
  .hero p{font-size:1rem;line-height:1.55}
  .hero-actions{display:grid;grid-template-columns:1fr;width:100%;margin-top:20px}
  .hero-actions .button{width:100%}
  .section{padding:38px 0}
  .section-head{display:grid;gap:8px;margin-bottom:18px}
  .section-head h2{font-size:2.15rem}
  .section-head p{margin:0;font-size:.94rem}
  .product-grid{grid-template-columns:1fr;gap:16px}
  .product-card{min-height:0;border-radius:18px}
  .product-media{height:210px}
  .product-body{padding:17px;gap:11px}
  .product-body h3{font-size:1.2rem}
  .ingredient-list{padding:10px 12px}
  .footer-story{min-height:320px}
  .footer-story-copy{padding-block:40px}
  .footer-story-copy h2{font-size:2.35rem}
  .footer-grid{gap:16px}
  .social-strip{display:grid;padding:17px}
  .social-strip>div{display:flex;flex-wrap:wrap}

  .drawer-backdrop{align-items:end}
  .drawer{justify-self:stretch;width:100%;height:auto;max-height:92dvh;padding:18px 16px calc(18px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0}
  .modal-backdrop{align-items:end;padding-top:20px}
  .modal-card{place-self:end stretch;width:100%;max-width:none;max-height:94dvh;margin:0;padding:18px 16px calc(22px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0}
  .modal-head{position:sticky;top:-18px;z-index:5;margin:-18px -16px 14px;padding:16px;background:rgba(251,247,241,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(35,29,26,.07)}
  .modal-head h2{margin:.25rem 0;font-size:1.65rem}
  input,select,textarea{font-size:16px;min-height:46px}
  .checkbox{padding:10px;border-radius:12px;background:#fff}
  .cart-item{grid-template-columns:1fr;gap:10px}
  .qty{justify-content:flex-end}
  .builder-layout{gap:14px}
  .pizza-canvas-wrap{min-height:0;padding:12px;border-radius:18px}
  #pizza-canvas{width:min(230px,72vw)}
  .builder-live-summary{font-size:.8rem}
  .extra-groups{max-height:none;overflow:visible}
  .builder-controls{gap:14px}
  .builder-section{padding-bottom:14px}
  .option{align-items:flex-start}
  .campaign-popup{grid-template-columns:1fr;padding:15px}
  .campaign-popup>div:last-child{display:flex;justify-content:space-between;align-items:center}

  .responsive-table{display:block;min-width:0;width:100%;border:0}
  .responsive-table thead{display:none}
  .responsive-table tbody{display:grid;gap:12px}
  .responsive-table tr{display:block;padding:14px;border:1px solid #eceee9;border-radius:15px;background:#fff;box-shadow:0 7px 18px rgba(40,28,20,.05)}
  .responsive-table td{display:grid;grid-template-columns:minmax(88px,.42fr) minmax(0,1fr);gap:10px;align-items:start;width:100%;padding:8px 0;border:0;border-bottom:1px solid #f0f1ed;overflow-wrap:anywhere}
  .responsive-table td:last-child{border-bottom:0;padding-bottom:0}
  .responsive-table td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:.7rem;font-weight:850;text-transform:uppercase;letter-spacing:.05em}
  .responsive-table td[data-label="Azioni"]{display:flex;flex-wrap:wrap;gap:8px;padding-top:12px}
  .responsive-table td[data-label="Azioni"]::before{width:100%}
  .responsive-table td[data-label="Azioni"] .button{flex:1;min-width:110px;padding:11px 12px}
  .responsive-table select{width:100%}
  .product-admin-row{align-items:center}
  .thumb{width:64px;height:52px}
  .catalog-editor{padding:14px}
  .catalog-title{display:grid;gap:10px}
  .catalog-title .button{width:100%}
  .login-screen{align-items:start;padding:20px 12px}
  .login-card{padding:22px 18px;border-radius:20px}
  .login-card h1{font-size:2.25rem}
}
@media (max-width:400px){
  .brand span:last-child{max-width:92px}
  .stats{grid-template-columns:1fr}
  .mobile-tabbar{left:6px;right:6px}
  .mobile-tabbar small{font-size:.64rem}
  .responsive-table td{grid-template-columns:1fr;gap:3px}
  .responsive-table td[data-label="Azioni"]{display:grid;grid-template-columns:1fr}
  .responsive-table td[data-label="Azioni"] .button{width:100%}
  .admin-mobile-bar{grid-template-columns:44px minmax(0,1fr) auto}
}
@media (orientation:landscape) and (max-height:560px) and (max-width:960px){
  .hero{grid-template-columns:1fr 1fr;text-align:left}
  .hero-scene{order:0;min-height:280px}
  .hero>div:first-child{text-align:left}
  .hero-actions{display:flex;justify-content:flex-start}
  .hero-actions .button{width:auto}
  .mobile-tabbar{min-height:54px}
  .modal-card,.drawer{max-height:96dvh}
}
@supports not (overflow:clip){html,body{overflow-x:hidden}}


/* V6 ultra-realistic photographic content */
.product-media { background: #16130f; }
.product-media img { width:100%; height:100%; object-fit:cover; padding:0; transform:scale(1.002); transition:transform .45s ease, filter .45s ease; }
.product-card:hover .product-media img { transform:scale(1.045); filter:saturate(1.05) contrast(1.03); }
.product-overlay { background:linear-gradient(180deg,rgba(0,0,0,0) 48%,rgba(25,15,9,.28)); }
.hero-platter { background:#1b1510; overflow:hidden; }
.hero-platter::before,.hero-platter-rim { display:none; }
.hero-food { inset:0; width:100%; height:100%; object-fit:cover; filter:none; }
.hero-platter::after { inset:auto 6% 2%; height:18%; background:linear-gradient(180deg,transparent,rgba(0,0,0,.35)); filter:none; }
.hero-note,.hero-badge { z-index:3; }
.footer-story img { filter:saturate(1.04) contrast(1.04); }
.photo-source-note { font-size:.76rem; color:var(--muted); }
@media (max-width:620px){.hero-food{inset:0;width:100%;height:100%;}.hero-platter{min-height:360px;}}


/* V7 dark premium storefront — inspired by the approved visual direction */
.storefront-v7{
  --v7-bg:#080b0d;
  --v7-panel:#101417;
  --v7-panel-2:#151a1e;
  --v7-line:rgba(255,255,255,.09);
  --v7-text:#f7f4ef;
  --v7-muted:#a9a5a0;
  --v7-orange:#f16522;
  --v7-orange-2:#ff8a2a;
  background:var(--v7-bg);
  color:var(--v7-text);
}
.storefront-v7 .demo-public-banner{display:none}
.storefront-v7 .v7-topbar{position:sticky;top:0;z-index:70;background:rgba(7,9,10,.94);border-bottom:1px solid var(--v7-line);backdrop-filter:blur(18px)}
.storefront-v7 .v7-nav{min-height:72px;display:flex;align-items:center;gap:28px}
.storefront-v7 .v7-brand{color:#fff;min-width:max-content}
.storefront-v7 .v7-brand>span:last-child{display:grid;line-height:1.05}
.storefront-v7 .v7-brand strong{font-size:1.04rem;letter-spacing:.02em}
.storefront-v7 .v7-brand small{margin-top:4px;color:#9f9993;font-size:.58rem;letter-spacing:.12em;text-transform:uppercase}
.storefront-v7 .brand-mark{background:linear-gradient(145deg,#ff7a2d,#b83218);box-shadow:0 10px 24px rgba(241,101,34,.2)}
.storefront-v7 .v7-nav-links{display:flex;align-items:center;gap:26px;margin-left:auto}
.storefront-v7 .v7-nav-links a{color:#e8e3dd;text-decoration:none;font-size:.9rem;font-weight:750}
.storefront-v7 .v7-nav-links a:hover{color:var(--v7-orange-2)}
.storefront-v7 .v7-admin-link{padding:9px 13px;border:1px solid var(--v7-line);border-radius:11px}
.storefront-v7 .v7-cart-button{display:flex;align-items:center;gap:8px;margin-left:8px;padding:11px 16px;border-radius:12px;background:linear-gradient(135deg,var(--v7-orange),var(--v7-orange-2));box-shadow:0 12px 28px rgba(241,101,34,.24)}
.storefront-v7 .cart-count{margin:0;background:#111;color:#fff}
.storefront-v7 .v7-main{background:var(--v7-bg)}
.storefront-v7 .v7-hero{position:relative;min-height:620px;display:grid;align-items:center;overflow:hidden;background:#120b08}
.storefront-v7 .v7-hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 50%;filter:saturate(1.04) contrast(1.05)}
.storefront-v7 .v7-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,6,7,.96) 0%,rgba(5,6,7,.82) 33%,rgba(5,6,7,.28) 68%,rgba(5,6,7,.10)),linear-gradient(0deg,rgba(5,6,7,.72),transparent 45%)}
.storefront-v7 .v7-hero-content{position:relative;z-index:2;padding-block:86px 116px}
.storefront-v7 .v7-status-pill{display:inline-flex;align-items:center;padding:9px 13px;border:1px solid rgba(255,255,255,.20);border-radius:10px;background:rgba(8,10,11,.58);color:#fff;font-size:.85rem;font-weight:750;backdrop-filter:blur(10px)}
.storefront-v7 .v7-status-pill::first-letter{color:var(--v7-orange)}
.storefront-v7 .v7-status-pill b{margin-inline:7px;color:#d6d1ca}
.storefront-v7 .v7-hero h1{max-width:650px;margin:22px 0 18px;color:#fff;font-size:clamp(3.5rem,7vw,6.5rem);line-height:.91;letter-spacing:-.065em;text-shadow:0 5px 30px rgba(0,0,0,.28)}
.storefront-v7 .v7-hero p{max-width:560px;margin:0;color:#e2ddd7;font-size:1.14rem;line-height:1.65}
.storefront-v7 .v7-hero-actions{display:flex;gap:12px;margin-top:30px}
.storefront-v7 .v7-primary{background:linear-gradient(135deg,var(--v7-orange),#db3f15);box-shadow:0 16px 34px rgba(241,101,34,.26)}
.storefront-v7 .v7-secondary{background:rgba(9,11,12,.55);color:#fff;border:1px solid rgba(255,255,255,.42);box-shadow:none;backdrop-filter:blur(10px)}
.storefront-v7 .v7-benefits{position:relative;z-index:5;display:grid;grid-template-columns:repeat(3,1fr);margin-top:-60px;padding:0;border:1px solid var(--v7-line);border-radius:20px;background:rgba(10,13,15,.94);box-shadow:0 28px 80px rgba(0,0,0,.38);overflow:hidden;backdrop-filter:blur(18px)}
.storefront-v7 .v7-benefits article{display:flex;align-items:center;gap:13px;padding:20px 24px;border-right:1px solid var(--v7-line)}
.storefront-v7 .v7-benefits article:last-child{border-right:0}
.storefront-v7 .v7-benefits article>span{display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(241,101,34,.35);border-radius:50%;background:rgba(241,101,34,.10);font-size:1.15rem}
.storefront-v7 .v7-benefits div{display:grid;gap:3px}
.storefront-v7 .v7-benefits strong{font-size:.92rem}
.storefront-v7 .v7-benefits small{color:var(--v7-muted);font-size:.76rem}
.storefront-v7 .v7-category-dock{position:relative;z-index:6;display:grid;grid-template-columns:repeat(6,1fr);margin-top:22px;padding:8px;border-radius:17px;background:#f8f6f2;box-shadow:0 18px 54px rgba(0,0,0,.20)}
.storefront-v7 .v7-category-dock button{display:grid;place-items:center;gap:7px;min-height:82px;border:0;border-right:1px solid rgba(20,20,20,.09);background:transparent;color:#141414}
.storefront-v7 .v7-category-dock button:last-child{border-right:0}
.storefront-v7 .v7-category-dock button:hover{color:var(--v7-orange)}
.storefront-v7 .v7-category-dock button span{font-size:1.5rem}
.storefront-v7 .v7-category-dock button strong{font-size:.78rem}
.storefront-v7 .v7-section{padding:70px 0}
.storefront-v7 .v7-featured{padding-top:72px;background:linear-gradient(180deg,#080b0d,#0c1013)}
.storefront-v7 .v7-menu-section{background:#0a0d0f}
.storefront-v7 .v7-section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:26px}
.storefront-v7 .v7-section-head>div>span{color:var(--v7-orange-2);font-size:.82rem;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
.storefront-v7 .v7-section-head h2{margin:6px 0 0;color:#fff;font-size:clamp(2rem,4vw,3.4rem);letter-spacing:-.045em}
.storefront-v7 .v7-section-head p{max-width:540px;margin:0;color:var(--v7-muted);line-height:1.55}
.storefront-v7 .v7-section-head>a{color:var(--v7-orange-2);text-decoration:none;font-weight:800}
.storefront-v7 .v7-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.storefront-v7 .v7-product-card{min-height:0;border:1px solid var(--v7-line);border-radius:16px;background:var(--v7-panel);box-shadow:0 18px 44px rgba(0,0,0,.22);overflow:hidden}
.storefront-v7 .v7-product-card:hover{transform:translateY(-4px);border-color:rgba(241,101,34,.32);box-shadow:0 24px 60px rgba(0,0,0,.32)}
.storefront-v7 .v7-product-media{height:205px;background:#17110e}
.storefront-v7 .v7-product-media img{object-fit:cover}
.storefront-v7 .v7-product-body{padding:16px;gap:10px}
.storefront-v7 .v7-product-body h3{margin:0;color:#fff;font-size:1.08rem}
.storefront-v7 .v7-product-body .product-copy p{display:-webkit-box;margin:7px 0 0;overflow:hidden;color:#aaa5a0;font-size:.84rem;line-height:1.45;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.storefront-v7 .v7-ingredients-line{display:-webkit-box;margin:0;overflow:hidden;color:#d2ccc5;font-size:.76rem;line-height:1.45;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.storefront-v7 .v7-card-bottom{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:auto;padding-top:8px;border-top:1px solid var(--v7-line)}
.storefront-v7 .v7-card-bottom>div{display:grid;gap:4px}
.storefront-v7 .v7-card-bottom .price{color:#fff;font-size:1.15rem}
.storefront-v7 .v7-card-bottom small{color:#7f7c78;font-size:.64rem}
.storefront-v7 .v7-add-button{width:42px;height:42px;min-height:42px;border-radius:50%;background:var(--v7-orange);box-shadow:none}
.storefront-v7 .badges{top:10px;left:10px}
.storefront-v7 .badge{padding:5px 8px;background:rgba(10,12,13,.82);border:1px solid rgba(255,255,255,.12);font-size:.66rem;backdrop-filter:blur(8px)}
.storefront-v7 .badge.hot{background:rgba(202,52,24,.9)}
.storefront-v7 .badge.customizable{background:rgba(240,121,37,.94);color:#111}
.storefront-v7 .v7-chips{position:sticky;top:72px;z-index:35;margin:0 0 24px;padding:10px;border:1px solid var(--v7-line);border-radius:14px;background:rgba(10,13,15,.92);backdrop-filter:blur(16px)}
.storefront-v7 .v7-chips .chip{border:1px solid var(--v7-line);background:#171c20;color:#d7d2cc}
.storefront-v7 .v7-chips .chip.active{background:var(--v7-orange);color:#fff;border-color:var(--v7-orange)}
.storefront-v7 .v7-promo-row{padding:18px 0 70px;background:#0c1013}
.storefront-v7 .v7-promo-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.storefront-v7 .v7-promo-card{position:relative;min-height:250px;display:grid;grid-template-columns:1fr 48%;align-items:center;overflow:hidden;border-radius:18px}
.storefront-v7 .v7-promo-card>div{position:relative;z-index:2;padding:28px}
.storefront-v7 .v7-promo-card span{color:var(--v7-orange-2);font-size:.78rem;font-weight:850;text-transform:uppercase}
.storefront-v7 .v7-promo-card h3{margin:8px 0;color:#fff;font-size:1.7rem;line-height:1.08}
.storefront-v7 .v7-promo-card strong{display:block;margin:10px 0;color:var(--v7-orange-2);font-size:1.45rem}
.storefront-v7 .v7-promo-card a{display:inline-flex;margin-top:12px;padding:10px 13px;border-radius:9px;background:var(--v7-orange);color:#fff;text-decoration:none;font-weight:800}
.storefront-v7 .v7-promo-card img{width:100%;height:100%;object-fit:cover}
.storefront-v7 .v7-promo-dark{background:#080a0b;border:1px solid var(--v7-line)}
.storefront-v7 .v7-promo-light{background:#2d211a;border:1px solid rgba(255,255,255,.10)}
.storefront-v7 .v7-promo-light p{color:#c8c0b8}
.storefront-v7 .v7-social-section{padding:56px 0;background:#11161a;border-top:1px solid var(--v7-line)}
.storefront-v7 .v7-social-inner{display:flex;align-items:center;justify-content:space-between;gap:26px}
.storefront-v7 .v7-social-inner span{color:var(--v7-orange-2);font-size:.78rem;font-weight:850;text-transform:uppercase}
.storefront-v7 .v7-social-inner h2{margin:7px 0 0;color:#fff;font-size:clamp(1.8rem,3vw,2.8rem)}
.storefront-v7 .v7-social-inner>div:last-child{display:flex;gap:9px;flex-wrap:wrap}
.storefront-v7 .v7-social-inner a{padding:11px 15px;border:1px solid var(--v7-line);border-radius:999px;background:#1b2227;color:#fff;text-decoration:none;font-weight:800}
.storefront-v7 .v7-footer{position:relative;min-height:330px;display:grid;align-items:end;overflow:hidden;background:#050708}
.storefront-v7 .v7-footer>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.34}
.storefront-v7 .v7-footer-overlay{position:absolute;inset:0;background:linear-gradient(90deg,#050708 5%,rgba(5,7,8,.90),rgba(5,7,8,.72))}
.storefront-v7 .v7-footer-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:34px;padding-block:70px;color:#fff}
.storefront-v7 .v7-footer-grid h3{margin:0 0 14px;color:#fff;font-size:.9rem}
.storefront-v7 .v7-footer-grid>div{display:grid;align-content:start;gap:8px}
.storefront-v7 .v7-footer-grid a,.storefront-v7 .v7-footer-grid span,.storefront-v7 .v7-footer-grid p{color:#aaa5a0;text-decoration:none;font-size:.82rem;line-height:1.5}
.storefront-v7 .v7-footer-brand{display:flex!important;grid-auto-flow:column;justify-content:start;gap:13px!important}
.storefront-v7 .v7-footer-brand strong{font-size:1.1rem}
.storefront-v7 .v7-mobile-tabbar{background:rgba(10,13,15,.96);border-color:rgba(255,255,255,.12);box-shadow:0 18px 55px rgba(0,0,0,.55)}
.storefront-v7 .v7-mobile-tabbar a,.storefront-v7 .v7-mobile-tabbar button{color:#f3eee8}
.storefront-v7 .v7-mobile-tabbar b{background:var(--v7-orange);color:#fff}

/* Toast is always above the mobile navigation and never covers its labels */
.app-toast{position:fixed;z-index:400;right:18px;bottom:18px;display:flex;align-items:center;gap:10px;max-width:min(390px,calc(100vw - 28px));padding:13px 16px;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(15,19,21,.96);color:#fff;box-shadow:0 20px 60px rgba(0,0,0,.38);opacity:0;transform:translateY(14px);transition:opacity .2s ease,transform .2s ease;backdrop-filter:blur(18px)}
.app-toast.visible{opacity:1;transform:translateY(0)}
.app-toast.error{background:rgba(108,22,16,.97)}
.app-toast-icon{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:50%;background:#278550;color:#fff;font-weight:950}
.app-toast.error .app-toast-icon{background:#fff;color:#9d2519}

@media(max-width:1100px){
  .storefront-v7 .v7-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:860px){
  .storefront-v7 .v7-nav-links{display:none}
  .storefront-v7 .v7-nav{min-height:64px}
  .storefront-v7 .v7-hero{min-height:570px}
  .storefront-v7 .v7-hero-content{padding-block:78px 118px}
  .storefront-v7 .v7-benefits{margin-top:-45px}
  .storefront-v7 .v7-category-dock{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}
  .storefront-v7 .v7-category-dock button{flex:0 0 118px;border-right:1px solid rgba(20,20,20,.09);scroll-snap-align:start}
  .storefront-v7 .v7-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .storefront-v7 .v7-promo-grid{grid-template-columns:1fr}
  .storefront-v7 .v7-footer-grid{grid-template-columns:1.5fr 1fr 1fr}
  .storefront-v7 .v7-footer-grid>div:last-child{grid-column:2/4}
  .app-toast{left:50%;right:auto;bottom:calc(88px + env(safe-area-inset-bottom));width:calc(100% - 24px);transform:translate(-50%,14px)}
  .app-toast.visible{transform:translate(-50%,0)}
}
@media(max-width:620px){
  .storefront-v7{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  .storefront-v7 .v7-nav{width:calc(100% - 24px);min-height:62px}
  .storefront-v7 .v7-brand small{display:none}
  .storefront-v7 .v7-cart-button{width:48px;padding:8px;justify-content:center;border-radius:15px}
  .storefront-v7 .v7-hero{min-height:520px;align-items:end}
  .storefront-v7 .v7-hero-bg{object-position:63% center}
  .storefront-v7 .v7-hero-shade{background:linear-gradient(0deg,rgba(5,6,7,.98) 3%,rgba(5,6,7,.82) 44%,rgba(5,6,7,.20) 82%),linear-gradient(90deg,rgba(5,6,7,.52),transparent)}
  .storefront-v7 .v7-hero-content{padding-block:210px 92px;text-align:left}
  .storefront-v7 .v7-status-pill{font-size:.73rem;padding:7px 9px}
  .storefront-v7 .v7-hero h1{max-width:340px;margin:15px 0 12px;font-size:clamp(2.65rem,14vw,4rem);line-height:.92}
  .storefront-v7 .v7-hero p{max-width:340px;font-size:.92rem;line-height:1.5}
  .storefront-v7 .v7-hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}
  .storefront-v7 .v7-hero-actions .button{width:100%;padding:12px 10px;font-size:.82rem}
  .storefront-v7 .v7-benefits{grid-template-columns:1fr;margin-top:-52px;border-radius:16px}
  .storefront-v7 .v7-benefits article{padding:13px 15px;border-right:0;border-bottom:1px solid var(--v7-line)}
  .storefront-v7 .v7-benefits article:last-child{border-bottom:0}
  .storefront-v7 .v7-benefits article>span{width:36px;height:36px;font-size:.95rem}
  .storefront-v7 .v7-category-dock{margin-top:16px;border-radius:14px}
  .storefront-v7 .v7-category-dock button{flex-basis:98px;min-height:70px}
  .storefront-v7 .v7-section{padding:48px 0}
  .storefront-v7 .v7-section-head{display:grid;gap:9px;margin-bottom:20px}
  .storefront-v7 .v7-section-head h2{font-size:2rem}
  .storefront-v7 .v7-section-head p{font-size:.88rem}
  .storefront-v7 .v7-product-grid{grid-template-columns:1fr;gap:14px}
  .storefront-v7 .v7-product-card{display:grid;grid-template-columns:132px minmax(0,1fr);border-radius:14px}
  .storefront-v7 .v7-product-media{height:100%;min-height:178px}
  .storefront-v7 .v7-product-body{padding:14px;gap:8px}
  .storefront-v7 .v7-product-body h3{font-size:1rem}
  .storefront-v7 .v7-product-body .product-copy p{font-size:.76rem;-webkit-line-clamp:2}
  .storefront-v7 .v7-ingredients-line{font-size:.69rem;-webkit-line-clamp:1}
  .storefront-v7 .v7-card-bottom{padding-top:6px}
  .storefront-v7 .v7-card-bottom small{display:none}
  .storefront-v7 .v7-add-button{width:38px;height:38px;min-height:38px}
  .storefront-v7 .badges{display:none}
  .storefront-v7 .v7-chips{top:62px;margin-inline:-12px;border-radius:0;border-inline:0}
  .storefront-v7 .v7-promo-row{padding-bottom:48px}
  .storefront-v7 .v7-promo-card{min-height:210px;grid-template-columns:1fr 42%}
  .storefront-v7 .v7-promo-card>div{padding:20px}
  .storefront-v7 .v7-promo-card h3{font-size:1.35rem}
  .storefront-v7 .v7-social-inner{display:grid}
  .storefront-v7 .v7-social-inner h2{font-size:1.7rem}
  .storefront-v7 .v7-footer{min-height:auto}
  .storefront-v7 .v7-footer-grid{grid-template-columns:1fr 1fr;padding-block:48px 110px}
  .storefront-v7 .v7-footer-brand{grid-column:1/-1}
  .storefront-v7 .v7-footer-grid>div:last-child{grid-column:auto}
}
@media(max-width:390px){
  .storefront-v7 .v7-product-card{grid-template-columns:112px minmax(0,1fr)}
  .storefront-v7 .v7-product-media{min-height:170px}
  .storefront-v7 .v7-hero-actions{grid-template-columns:1fr}
}

/* V8 overlay contrast and mobile readability fixes */
body.storefront-v7 .modal-backdrop,
body.storefront-v7 .drawer-backdrop{
  background:rgba(0,0,0,.78);
  backdrop-filter:blur(10px);
}
body.storefront-v7 .modal-card,
body.storefront-v7 .drawer{
  --ink:#f7f4ef;
  --muted:#b6afa8;
  --surface:#11161a;
  --surface-2:#0e1215;
  color-scheme:dark;
  color:#f7f4ef;
  background:linear-gradient(180deg,#151a1e,#0d1114 72%);
  border:1px solid rgba(255,255,255,.11);
  box-shadow:0 28px 90px rgba(0,0,0,.72);
}
body.storefront-v7 .modal-card h1,
body.storefront-v7 .modal-card h2,
body.storefront-v7 .modal-card h3,
body.storefront-v7 .drawer h1,
body.storefront-v7 .drawer h2,
body.storefront-v7 .drawer h3,
body.storefront-v7 .builder-section-head strong,
body.storefront-v7 .builder-section-head span,
body.storefront-v7 .builder-card label,
body.storefront-v7 .drawer label{
  color:#fff;
}
body.storefront-v7 .modal-head{
  position:sticky;
  top:-24px;
  z-index:12;
  margin:-24px -24px 20px;
  padding:22px 24px 18px;
  background:rgba(16,20,23,.96);
  border-bottom:1px solid rgba(255,255,255,.09);
  backdrop-filter:blur(18px);
}
body.storefront-v7 .modal-card .eyebrow{
  color:#ff8a45;
  background:rgba(241,101,34,.10);
  border-color:rgba(241,101,34,.35);
}
body.storefront-v7 .close-button{
  flex:0 0 46px;
  width:46px;
  height:46px;
  color:#fff;
  background:#252b2f;
  border:1px solid rgba(255,255,255,.10);
}
body.storefront-v7 .close-button:hover{background:#343b40}
body.storefront-v7 .builder-layout{align-items:start}
body.storefront-v7 .pizza-canvas-wrap{
  background:radial-gradient(circle at 50% 42%,rgba(241,101,34,.18),transparent 57%),#090c0e;
  border:1px solid rgba(255,255,255,.08);
}
body.storefront-v7 .builder-live-summary,
body.storefront-v7 .help,
body.storefront-v7 .allergens,
body.storefront-v7 .modal-card p,
body.storefront-v7 .drawer p{
  color:#b6afa8;
}
body.storefront-v7 .builder-section{
  border-color:rgba(255,255,255,.09);
}
body.storefront-v7 .option,
body.storefront-v7 .cart-item,
body.storefront-v7 .modal-card .panel,
body.storefront-v7 .drawer .panel{
  color:#f7f4ef;
  background:#171c20;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:none;
}
body.storefront-v7 .option:hover{
  border-color:rgba(241,101,34,.55);
  background:#1c2226;
}
body.storefront-v7 .option:has(input:checked){
  border-color:#f16522;
  background:linear-gradient(135deg,rgba(241,101,34,.18),#191e22);
  box-shadow:inset 0 0 0 1px rgba(241,101,34,.18);
}
body.storefront-v7 input,
body.storefront-v7 select,
body.storefront-v7 textarea{
  color:#fff;
  background:#101519;
  border-color:rgba(255,255,255,.14);
  caret-color:#ff7b31;
}
body.storefront-v7 input::placeholder,
body.storefront-v7 textarea::placeholder{color:#817c77}
body.storefront-v7 input:focus,
body.storefront-v7 select:focus,
body.storefront-v7 textarea:focus{
  border-color:#f16522;
  box-shadow:0 0 0 3px rgba(241,101,34,.14);
  outline:none;
}
body.storefront-v7 input[type="radio"],
body.storefront-v7 input[type="checkbox"]{
  width:22px;
  height:22px;
  min-width:22px;
  accent-color:#f16522;
  box-shadow:none;
}
body.storefront-v7 .qty button{
  color:#fff;
  background:#252c31;
  border:1px solid rgba(255,255,255,.08);
}
body.storefront-v7 .total-row{color:#d9d3cd}
body.storefront-v7 .total-row.grand{color:#fff;border-color:rgba(255,255,255,.12)}
body.storefront-v7 .notice{
  color:#f5dfc8;
  background:rgba(241,101,34,.12);
  border-color:rgba(241,101,34,.28);
}
body.storefront-v7 .notice.error{color:#ffb3a9;background:rgba(180,35,24,.17);border-color:rgba(255,98,78,.30)}
body.storefront-v7 .notice.success{color:#b9f4cf;background:rgba(36,122,70,.18);border-color:rgba(71,191,121,.30)}
body.storefront-v7 .button.secondary{
  color:#fff;
  background:#22282d;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:none;
}
body.storefront-v7 .button.ghost{
  color:#eee9e3;
  border-color:rgba(255,255,255,.18);
}
body.storefront-v7 .builder-card .button.green,
body.storefront-v7 .modal-card .button.green{
  background:linear-gradient(135deg,#f16522,#df4317);
  color:#fff;
}
body.storefront-v7 .drawer-head{
  position:sticky;
  top:-22px;
  z-index:10;
  margin:-22px -22px 18px;
  padding:20px 22px 16px;
  background:rgba(15,19,22,.96);
  border-bottom:1px solid rgba(255,255,255,.09);
  backdrop-filter:blur(16px);
}

/* Keep the dark theme continuous around menu filters */
body.storefront-v7 .v7-chips{
  scrollbar-color:#5b6267 #11161a;
}
body.storefront-v7 .v7-chips::-webkit-scrollbar{height:5px}
body.storefront-v7 .v7-chips::-webkit-scrollbar-track{background:#11161a}
body.storefront-v7 .v7-chips::-webkit-scrollbar-thumb{background:#5b6267;border-radius:999px}

@media(max-width:720px){
  body.storefront-v7 .modal-card,
  body.storefront-v7 .drawer{
    max-height:calc(100dvh - 12px);
    padding:16px 16px calc(26px + env(safe-area-inset-bottom));
    border-radius:24px 24px 0 0;
  }
  body.storefront-v7 .modal-head{
    top:-16px;
    margin:-16px -16px 16px;
    padding:18px 16px 14px;
  }
  body.storefront-v7 .drawer-head{
    top:-16px;
    margin:-16px -16px 16px;
    padding:18px 16px 14px;
  }
  body.storefront-v7 .modal-head h2{font-size:1.55rem;line-height:1.08}
  body.storefront-v7 .builder-layout{gap:16px}
  body.storefront-v7 .builder-option-grid{gap:10px}
  body.storefront-v7 .option{min-height:64px;padding:13px 14px;align-items:center}
  body.storefront-v7 .builder-section-head{gap:4px}
  body.storefront-v7 .builder-section-head strong{font-size:1.12rem}
  body.storefront-v7 .pizza-canvas-wrap{min-height:250px}
}
