/*
Theme Name: Pizza Junction & Snacks
Theme URI: https://pizzajunctionsnacks.com/
Author: Pizza Junction & Snacks Inc.
Description: Mobile-first Pizza Junction storefront and ordering preview for the Abbotsford location.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: pizza-junction
*/

:root {
  --red: #b3131b;
  --red-dark: #780c12;
  --yellow: #ffc400;
  --cream: #fff8e9;
  --ink: #171310;
  --muted: #6f665f;
  --line: #e6ddd0;
  --white: #fff;
  --shadow: 0 20px 60px rgba(49, 16, 7, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fffdf9;
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
}
body.locked { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
.prototype-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px 18px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  text-align: center;
}
.prototype-bar span { color: var(--yellow); font-weight: 800; letter-spacing: .1em; }
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: 84px;
  padding: 10px max(24px, calc((100vw - 1220px) / 2));
  border-bottom: 1px solid rgba(80, 24, 12, .08);
  background: rgba(255, 253, 249, .94);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; }
.brand img { width: 68px; height: 58px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; }
.brand strong { font-family: "Oswald", sans-serif; font-size: 22px; line-height: 1; text-transform: uppercase; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { font-size: 14px; font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--red); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.account-button { padding: 10px 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.account-button b { color: var(--red); }
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px 11px 18px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  cursor: pointer;
  font-weight: 800;
}
.cart-button b { display: grid; width: 28px; height: 28px; place-items: center; color: var(--ink); border-radius: 50%; background: var(--yellow); }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: clamp(38px, 6vw, 90px);
  align-items: center;
  max-width: 1300px;
  min-height: 680px;
  margin: auto;
  padding: 80px 40px 96px;
  overflow: hidden;
}
.hero::before {
  position: absolute;
  z-index: -1;
  right: -100px;
  bottom: 5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
  filter: blur(1px);
  opacity: .14;
}
.eyebrow { margin: 0 0 12px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3 { font-family: "Oswald", sans-serif; line-height: 1.02; text-transform: uppercase; }
h1 { max-width: 650px; margin: 0; font-size: clamp(56px, 7vw, 94px); letter-spacing: -.035em; }
h2 { margin: 0; font-size: clamp(40px, 5vw, 62px); letter-spacing: -.025em; }
.hero-lede { max-width: 620px; margin: 24px 0 0; color: var(--muted); font-size: 19px; }
.hero-order-choice { display: flex; width: fit-content; align-items: center; gap: 14px; margin-top: 24px; padding: 7px 7px 7px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 26px rgba(49, 16, 7, .06); }
.hero-order-choice > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.hero-order-choice > div { display: flex; gap: 5px; }
.hero-order-choice button { padding: 9px 14px; color: var(--ink); border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 900; }
.hero-order-choice button.active { color: #fff; background: var(--red); }
.hero-order-choice button:disabled, .fulfilment-toggle button:disabled { cursor: not-allowed; opacity: .48; }
.hero-delivery-note { max-width: 540px; margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.hero-delivery-note a { color: var(--red); font-weight: 900; }
.hero-actions, .visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--red); box-shadow: 0 12px 28px rgba(179, 19, 27, .23); }
.button-secondary { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.button-muted { color: #817a73; background: #ece8e2; }
.button:disabled { cursor: not-allowed; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 32px; color: var(--muted); font-size: 13px; }
.hero-meta b { color: var(--ink); }
.hero-visual { position: relative; min-height: 520px; }
.hero-visual > img { width: 100%; height: 520px; border-radius: 180px 28px 180px 28px; object-fit: cover; box-shadow: var(--shadow); }
.hero-sticker {
  position: absolute;
  top: -30px;
  right: -10px;
  display: flex;
  width: 126px;
  height: 126px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 6px solid #fff;
  border-radius: 50%;
  background: var(--yellow);
  transform: rotate(8deg);
  box-shadow: 0 16px 30px rgba(52, 35, 2, .18);
}
.hero-sticker b { font-family: "Oswald", sans-serif; font-size: 31px; line-height: 1; text-transform: uppercase; }
.hero-sticker span { font-size: 12px; font-weight: 700; }
.hero-card { position: absolute; bottom: -26px; left: -35px; display: flex; min-width: 245px; flex-direction: column; padding: 20px 24px; color: #fff; border-radius: 18px; background: var(--ink); box-shadow: var(--shadow); }
.hero-card > span { color: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-card strong { margin: 4px 0; font-family: "Oswald", sans-serif; font-size: 25px; text-transform: uppercase; }
.hero-card small { color: #bfb8b1; }
.rewards-section { max-width: 1300px; margin: 0 auto; padding: 12px 40px 100px; }
.rewards-card { display: grid; grid-template-columns: 1.35fr .65fr; gap: 50px; align-items: center; padding: clamp(30px, 5vw, 64px); color: #fff; border-radius: 26px; background: var(--ink); overflow: hidden; }
.rewards-card .eyebrow { color: var(--yellow); }
.rewards-card h2 { max-width: 720px; }
.rewards-card > div:first-child > p:not(.eyebrow) { max-width: 610px; margin: 18px 0 26px; color: #cfc7c0; }
.reward-progress { position: relative; display: flex; min-height: 285px; flex-direction: column; justify-content: center; padding: 30px; color: var(--ink); border-radius: 22px; background: var(--yellow); box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.reward-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 18px; color: var(--yellow); border-radius: 50%; background: var(--red); font-size: 25px; }
.reward-progress strong { max-width: 280px; font-family: "Oswald"; font-size: 27px; line-height: 1.08; text-transform: uppercase; }
.reward-stamps, .dashboard-stamps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 22px 0 12px; }
.reward-stamps i, .dashboard-stamps i { aspect-ratio: 1; border: 2px solid rgba(23,19,16,.25); border-radius: 50%; background: rgba(255,255,255,.38); }
.reward-progress small { font-weight: 800; }
.reward-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 26px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; background: var(--line); overflow: hidden; }
.reward-benefits span { display: flex; flex-direction: column; padding: 20px; background: #fff; }
.reward-benefits b { font-size: 13px; }
.reward-benefits small { color: var(--muted); font-size: 11px; }
.specials-section { padding: 84px max(24px, calc((100vw - 1220px) / 2)); color: #fff; background: var(--red-dark); }
.section-heading, .menu-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-heading .eyebrow { color: var(--yellow); }
.section-heading > p, .menu-intro > p { max-width: 430px; margin: 0 0 5px; color: rgba(255,255,255,.7); }
.deal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.deal-card { position: relative; display: flex; min-height: 275px; flex-direction: column; padding: 24px; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; background: rgba(255,255,255,.075); overflow: hidden; }
.deal-card.featured { color: var(--ink); background: var(--yellow); }
.deal-card::after { position: absolute; right: -18px; bottom: -42px; font-family: "Oswald"; font-size: 150px; font-weight: 700; line-height: 1; content: attr(data-num); opacity: .06; }
.deal-tag { width: fit-content; padding: 5px 9px; color: var(--ink); border-radius: 999px; background: var(--yellow); font-size: 10px; font-weight: 900; letter-spacing: .09em; }
.deal-card.featured .deal-tag { color: #fff; background: var(--red); }
.deal-card h3 { margin: 26px 0 8px; font-size: 27px; }
.deal-card p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; }
.deal-card.featured p { color: #5c4b00; }
.deal-bottom { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; }
.deal-price { font-family: "Oswald"; font-size: 38px; line-height: 1; }
.deal-add { display: grid; width: 42px; height: 42px; place-items: center; color: var(--ink); border: 0; border-radius: 50%; background: #fff; cursor: pointer; font-size: 25px; }
.deal-card.featured .deal-add { color: #fff; background: var(--red); }
.menu-section { max-width: 1300px; margin: auto; padding: 100px 40px; }
.menu-intro > p { color: var(--muted); }
.category-tabs { position: sticky; z-index: 20; top: 94px; display: flex; gap: 8px; padding: 5px; border: 1px solid rgba(23, 19, 16, .05); border-radius: 15px; background: rgba(243, 238, 232, .96); box-shadow: 0 10px 22px rgba(49, 16, 7, .06); overflow-x: auto; scrollbar-width: none; backdrop-filter: blur(14px); }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { flex: 0 0 auto; padding: 11px 18px; color: #655d56; border: 0; border-radius: 11px; background: transparent; cursor: pointer; font-size: 13px; font-weight: 800; }
.category-tab.active { color: #fff; background: var(--ink); }
.menu-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0; }
.search-box { display: flex; width: min(440px, 100%); align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.search-box svg { width: 19px; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-width: 2; }
.search-box input { width: 100%; padding: 13px 0; border: 0; outline: 0; background: transparent; }
#resultCount { color: var(--muted); font-size: 13px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.menu-card { position: relative; display: flex; min-height: 255px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform .2s, box-shadow .2s; }
.menu-card:hover { transform: translateY(-3px); box-shadow: 0 16px 42px rgba(60, 26, 9, .09); }
.menu-card.has-image { min-height: 345px; padding-top: 160px; overflow: hidden; }
.menu-card-image { position: absolute; top: 0; left: 0; width: 100%; height: 140px; object-fit: cover; }
.menu-badge { width: fit-content; padding: 4px 8px; color: var(--red); border-radius: 999px; background: #ffebeb; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.menu-card h3 { margin: 13px 0 7px; font-size: 23px; }
.menu-number { margin-right: 7px; color: var(--red); font-size: 14px; vertical-align: middle; }
.menu-card p { margin: 0; color: var(--muted); font-size: 13px; }
.menu-card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 20px; }
.menu-price { display: flex; flex-direction: column; }
.menu-price small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.menu-price b { font-size: 19px; }
.pizza-prices { display: grid; grid-template-columns: repeat(3, auto); gap: 10px; }
.pizza-prices span { display: flex; flex-direction: column; }
.pizza-prices small { color: var(--red); font-size: 10px; font-weight: 900; }
.pizza-prices b { font-size: 14px; }
.add-button { padding: 9px 14px; color: #fff; border: 0; border-radius: 10px; background: var(--red); cursor: pointer; font-size: 13px; font-weight: 800; }
.no-results { grid-column: 1/-1; padding: 70px 20px; color: var(--muted); text-align: center; }
.menu-note { display: flex; gap: 12px; margin-top: 22px; padding: 15px 18px; color: #655d56; border-radius: 12px; background: #f5f1eb; font-size: 12px; }
.menu-note b { color: var(--ink); }
.visit-section { display: grid; grid-template-columns: 1.2fr .8fr; max-width: 1300px; margin: 0 auto 100px; padding: 0 40px; }
.visit-card { padding: clamp(35px, 5vw, 70px); color: #fff; border-radius: 26px 0 0 26px; background: var(--ink); }
.visit-card .eyebrow { color: var(--yellow); }
.visit-card address { margin-top: 25px; color: #d9d3cd; font-style: normal; font-size: 18px; }
.visit-card .button-secondary { color: #fff; border-color: #4e4640; background: transparent; }
.fresh-juice { margin: 32px 0 0; color: #aaa19a; font-size: 13px; }
.hours-card { padding: clamp(35px, 5vw, 60px); border-radius: 0 26px 26px 0; background: var(--yellow); }
.hours-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hours-heading h3 { margin: 0; font-size: 30px; }
.hours-heading span { padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.65); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.hours-card dl { margin: 24px 0; }
.hours-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid rgba(24,19,16,.14); }
.hours-card dt { font-weight: 800; }
.hours-card dd { margin: 0; }
.delivery-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.delivery-links a { display: grid; min-height: 48px; place-items: center; padding: 8px; border-radius: 10px; background: #fff; font-size: 12px; font-weight: 900; text-decoration: none; text-align: center; }
.delivery-links a:first-child span { color: #06c167; }
.delivery-links a:last-child span { color: #f45d22; }
footer { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 34px max(24px, calc((100vw - 1220px) / 2)); color: #b3aba3; background: #0d0b0a; font-size: 12px; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand strong { color: #fff; font-family: "Oswald"; font-size: 20px; text-transform: uppercase; }
footer p { margin: 0; text-align: right; }
.overlay { position: fixed; z-index: 70; inset: 0; background: rgba(12,8,6,.56); backdrop-filter: blur(3px); }
.cart-drawer { position: fixed; z-index: 80; top: 0; right: 0; display: flex; width: min(460px, 100%); height: 100dvh; flex-direction: column; padding: 28px; background: #fffdf9; box-shadow: -20px 0 50px rgba(27,10,3,.2); transform: translateX(105%); transition: transform .28s ease; }
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: start; justify-content: space-between; }
.drawer-head h2 { font-size: 44px; }
.icon-button { display: grid; width: 40px; height: 40px; place-items: center; padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 28px; line-height: 1; }
.fulfilment-toggle { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0 12px; padding: 4px; border-radius: 12px; background: #eee8e0; }
.fulfilment-toggle button { padding: 10px; color: var(--muted); border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.fulfilment-toggle button.active { color: #fff; background: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item h3 { margin: 0; font-family: "DM Sans"; font-size: 14px; text-transform: none; }
.cart-item > b { font-size: 14px; }
.cart-item p { grid-column: 1/-1; margin: -3px 0 2px; color: var(--muted); font-size: 11px; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.cart-item-controls button { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.remove-item { color: var(--red); border: 0 !important; background: transparent !important; font-size: 11px; font-weight: 800; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cart-empty span { font-size: 54px; }
.cart-empty h3 { margin: 14px 0 5px; font-size: 25px; }
.cart-empty p { max-width: 260px; margin: 0; color: var(--muted); font-size: 13px; }
.cart-summary { padding-top: 18px; border-top: 1px solid var(--line); }
.cart-summary > div { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.cart-summary > .tip-section { display: block; margin: 18px 0 12px; padding: 14px; border-radius: 12px; background: var(--cream); }
.tip-section > span { display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-weight: 900; }
.tip-section > span small { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.tip-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 10px; }
.tip-options button { padding: 8px 3px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 10px; font-weight: 900; }
.tip-options button.active { color: #fff; border-color: var(--red); background: var(--red); }
.cart-summary .cart-total { margin: 14px 0 16px; color: var(--ink); font-size: 20px; }
.checkout-button { width: 100%; }
.secure-note { margin: 10px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.mobile-cart { position: fixed; z-index: 50; right: 14px; bottom: 14px; left: 14px; display: none; align-items: center; justify-content: space-between; padding: 14px 18px; color: #fff; border: 0; border-radius: 13px; background: var(--red); box-shadow: 0 12px 30px rgba(86,9,13,.35); }
.mobile-cart span { font-size: 12px; }
dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 24px; background: #fffdf9; box-shadow: 0 30px 90px rgba(35,12,3,.35); overflow: auto; }
dialog::backdrop { background: rgba(12,8,6,.62); backdrop-filter: blur(4px); }
.config-dialog form, .checkout-dialog form { position: relative; padding: 34px; }
.dialog-close { position: absolute; top: 20px; right: 20px; }
.dialog-copy { padding-right: 44px; }
.dialog-copy h2, .checkout-dialog h2 { font-size: clamp(38px, 8vw, 54px); }
.dialog-copy > p:last-child, .checkout-dialog form > p { color: var(--muted); }
.pizza-preview-wrap { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 22px; margin: 26px 0 8px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.pizza-preview-wrap > div:last-child { display: flex; flex-direction: column; }
.pizza-preview-wrap > div:last-child b { font-family: "Oswald"; font-size: 20px; text-transform: uppercase; }
.pizza-preview-wrap > div:last-child small { margin-top: 5px; color: var(--muted); }
.pizza-preview { position: relative; width: 150px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #efbd57, #bf741f 76%); box-shadow: 0 10px 24px rgba(92,45,3,.24); overflow: hidden; }
.pizza-preview::before { position: absolute; z-index: 1; inset: 9px; border-radius: 50%; background: #b93621; content: ""; }
.pizza-preview::after { position: absolute; z-index: 2; inset: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 32%, #ffe9a0, #f3bd42 72%, #d88721); content: ""; }
.pizza-piece { position: absolute; z-index: 3; left: var(--x); top: var(--y); display: block; width: 14px; height: 14px; transform: translate(-50%, -50%) rotate(var(--r)); box-shadow: 0 2px 3px rgba(40,20,4,.22); }
.pizza-piece.red { border-radius: 50%; background: #b51c20; box-shadow: inset 0 0 0 2px #d84836, 0 2px 3px rgba(40,20,4,.22); }
.pizza-piece.pink { width: 15px; height: 9px; border-radius: 4px; background: #d97971; }
.pizza-piece.olive { width: 12px; height: 12px; border: 4px solid #2d251e; border-radius: 50%; box-shadow: none; }
.pizza-piece.mushroom { width: 16px; height: 10px; border-radius: 10px 10px 4px 4px; background: #d8c39d; }
.pizza-piece.onion { width: 15px; height: 8px; border: 3px solid #8b4673; border-radius: 50%; background: transparent; box-shadow: none; }
.pizza-piece.yellow { width: 12px; height: 10px; border-radius: 3px; background: #ffd52b; }
.pizza-piece.green { width: 14px; height: 7px; border-radius: 8px; background: #3f8d38; }
.pizza-piece.white { width: 9px; height: 7px; border-radius: 50%; background: #f4e9bd; }
.pizza-piece.cheese { width: 10px; height: 8px; border-radius: 3px; background: #fff0aa; }
.pizza-piece.meat { width: 13px; height: 10px; border-radius: 5px; background: #805039; }
.option-group { margin-top: 24px; }
.option-group h3 { margin: 0 0 10px; font-family: "DM Sans"; font-size: 13px; text-transform: none; }
.option-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.option-list.two { grid-template-columns: repeat(2, 1fr); }
.option-pill { position: relative; }
.option-pill input { position: absolute; opacity: 0; }
.option-pill span { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.option-pill input:checked + span { color: var(--red); border-color: var(--red); background: #fff2f2; box-shadow: inset 0 0 0 1px var(--red); }
.option-pill small { color: var(--muted); font-size: 9px; }
.dialog-footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 30px -34px -34px; padding: 18px 34px; border-top: 1px solid var(--line); background: #fffdf9; }
.quantity-control { display: flex; align-items: center; gap: 16px; }
.quantity-control button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 20px; }
.quantity-control output { min-width: 15px; text-align: center; font-weight: 800; }
.checkout-dialog { text-align: center; }
.checkout-dialog form { display: flex; flex-direction: column; align-items: stretch; }
.checkout-dialog .eyebrow { text-align: left; }
.checkout-success { display: grid; width: 76px; height: 76px; place-items: center; margin: 24px auto 8px; color: #fff; border-radius: 50%; background: #24954a; font-size: 36px; }
.checkout-total { display: flex; align-items: center; justify-content: space-between; margin: 24px 0; padding: 18px; border-radius: 13px; background: var(--cream); }
.checkout-total strong { font-size: 24px; }
.checkout-dialog .button + .button { margin-top: 10px; }
.checkout-dialog small { margin-top: 18px; color: var(--muted); }
.account-dialog { position: relative; padding: 36px; }
.account-dialog h2 { max-width: 500px; font-size: clamp(38px, 8vw, 54px); }
.account-entry > p:not(.eyebrow), .account-dashboard > p { color: var(--muted); }
.account-entry form { display: grid; gap: 10px; margin-top: 26px; }
.account-entry label { font-size: 12px; font-weight: 800; }
.account-entry input { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; outline: 0; }
.account-entry input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(179,19,27,.09); }
.dashboard-progress { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 0; }
.dashboard-progress strong { color: var(--red); font-family: "Oswald"; font-size: 44px; }
.dashboard-progress span { color: var(--muted); font-size: 13px; font-weight: 800; }
.dashboard-stamps i:nth-child(-n+7) { border-color: var(--red); background: var(--red); }
.dashboard-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0; }
.dashboard-links span { padding: 13px 8px; border-radius: 10px; background: var(--cream); font-size: 11px; font-weight: 900; text-align: center; }
.account-dashboard > small { display: block; color: var(--muted); font-size: 10px; }
.last-order { display: flex; flex-direction: column; margin: 22px 0 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.last-order > span { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.last-order > strong { margin-top: 4px; font-size: 13px; }
.last-order > small { color: var(--muted); font-size: 10px; }
.account-dashboard > .button { width: 100%; }
.extras-dialog { width: min(880px, calc(100% - 28px)); padding: 36px; }
.extras-dialog > h2 { font-size: clamp(38px, 7vw, 56px); }
.extras-intro { margin-top: 10px; color: var(--muted); }
.extras-group { margin-top: 30px; }
.extras-group h3 { margin: 0 0 12px; font-family: "DM Sans"; font-size: 15px; text-transform: none; }
.extras-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.extras-grid.sides { grid-template-columns: repeat(2, 1fr); }
.extra-item { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: start; min-height: 92px; padding: 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; }
.extra-item:hover { border-color: var(--red); box-shadow: 0 7px 18px rgba(68,25,7,.08); }
.extra-item span { display: flex; flex-direction: column; }
.extra-item b { font-size: 12px; }
.extra-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.extra-item strong { color: var(--red); font-size: 12px; }
.extra-item em { grid-column: 1/-1; align-self: end; color: var(--red); font-size: 10px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.extras-actions { position: sticky; bottom: -36px; display: flex; justify-content: flex-end; gap: 10px; margin: 34px -36px -36px; padding: 18px 36px; border-top: 1px solid var(--line); background: #fffdf9; }
.toast { position: fixed; z-index: 120; right: 24px; bottom: 24px; padding: 13px 17px; color: #fff; border-radius: 10px; background: var(--ink); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; opacity: 0; transform: translateY(20px); transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr 1fr; min-height: auto; padding-top: 65px; }
  .hero-visual { min-height: 450px; }
  .hero-visual > img { height: 450px; }
  .deal-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .prototype-bar { font-size: 10px; }
  .prototype-bar span { display: none; }
  .site-header { min-height: 70px; padding: 8px 16px; }
  .brand img { width: 52px; height: 45px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 9px; }
  .cart-button span { display: none; }
  .cart-button { padding: 8px; }
  .account-button span { display: none; }
  .account-button { padding: 10px 12px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 52px 20px 74px; }
  h1 { font-size: clamp(48px, 14vw, 72px); }
  .hero-lede { font-size: 16px; }
  .hero-order-choice { width: 100%; align-items: stretch; flex-direction: column; gap: 7px; padding: 12px; }
  .hero-order-choice > div { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 380px; }
  .hero-visual > img { height: 380px; border-radius: 100px 18px 100px 18px; }
  .hero-sticker { top: -25px; right: 0; width: 100px; height: 100px; }
  .hero-sticker b { font-size: 25px; }
  .hero-card { bottom: -30px; left: 12px; min-width: 215px; }
  .rewards-section { padding: 10px 20px 72px; }
  .rewards-card { grid-template-columns: 1fr; gap: 28px; padding: 30px 22px; }
  .reward-progress { min-height: 250px; padding: 24px; }
  .reward-benefits { grid-template-columns: 1fr; margin: 0 12px; }
  .specials-section, .menu-section { padding: 72px 20px; }
  .section-heading, .menu-intro { align-items: start; flex-direction: column; gap: 15px; }
  .deal-grid { display: flex; margin-right: -20px; padding-right: 20px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .deal-card { min-width: min(82vw, 320px); scroll-snap-align: start; }
  .menu-toolbar { align-items: stretch; flex-direction: column; }
  .category-tabs { top: 76px; margin-right: -20px; border-radius: 15px 0 0 15px; }
  #resultCount { padding-left: 3px; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-card { min-height: 225px; }
  .menu-card.has-image { min-height: 335px; }
  .menu-card-bottom { align-items: center; }
  .menu-note { flex-direction: column; gap: 2px; }
  .visit-section { grid-template-columns: 1fr; margin-bottom: 70px; padding: 0 20px; }
  .visit-card { border-radius: 22px 22px 0 0; }
  .hours-card { border-radius: 0 0 22px 22px; }
  footer { align-items: start; flex-direction: column; padding-bottom: 95px; }
  footer p { text-align: left; }
  .mobile-cart.visible { display: flex; }
  .cart-drawer { padding: 20px; }
  .option-list { grid-template-columns: 1fr 1fr; }
  .config-dialog form, .checkout-dialog form { padding: 26px 20px; }
  .account-dialog { padding: 30px 20px; }
  .dashboard-links { grid-template-columns: 1fr; }
  .pizza-preview-wrap { grid-template-columns: 110px 1fr; gap: 15px; padding: 13px; }
  .pizza-preview { width: 110px; }
  .extras-dialog { padding: 30px 20px; }
  .extras-grid, .extras-grid.sides { grid-template-columns: 1fr; }
  .extra-item { min-height: 78px; }
  .extras-actions { bottom: -30px; margin: 30px -20px -30px; padding: 15px 20px; }
  .dialog-footer { margin: 26px -20px -26px; padding: 15px 20px; }
  .dialog-footer .button { padding: 0 16px; }
  .toast { right: 14px; bottom: 78px; left: 14px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
