:root {
  --red: #9e111b;
  --red-dark: #4b070b;
  --cream: #fff4df;
  --paper: #fffaf1;
  --gold: #dfa938;
  --ink: #2b150d;
  --muted: #856d55;
  --line: rgba(158, 17, 27, 0.16);
  --shadow: 0 18px 40px rgba(43, 21, 13, 0.14);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#cart-weekday-discount[hidden] { display: none; }
#cart-weekday-discount { color: #237943; font-size: 14px; margin-bottom: 8px; }
#cart-weekday-discount span, #cart-weekday-discount strong { color: #16733C; }
#cart-weekday-discount span { flex: 1; }
#cart-weekday-discount strong { font-size: 18px; white-space: nowrap; }

.sauce-suggestion[hidden] { display: none !important; }
.sauce-suggestion { background: #3d1a00; color: #fff1cf; border: 1px solid #e8b84b; border-radius: 16px; padding: 14px; margin: 12px 0; box-shadow: 0 5px 18px rgba(61,26,0,.18); }
.sauce-suggestion-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sauce-suggestion-head strong { font: 800 19px Fraunces, Georgia, serif; }
.sauce-suggestion-head > button { border: 0; background: transparent; color: #fff1cf; min-width: 36px; min-height: 36px; font-size: 23px; cursor: pointer; }
.sauce-suggestion p { font-size: 12px; line-height: 1.5; color: #f2e8d5; margin: 4px 0 11px; }
.sauce-suggestion-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.sauce-suggestion-buttons button { flex: 1 1 130px; min-height: 48px; padding: 11px; border: 0; border-radius: 11px; background: #f6da8a; color: #3d1a00; font: 800 12px Inter, sans-serif; cursor: pointer; }
.sauce-suggestion .sauce-suggestion-buttons button[data-sauce-id] small { display: block; color: #64451e; font-size: 11px; margin-top: 4px; }
.sauce-prompt { position: fixed; bottom: calc(94px + env(safe-area-inset-bottom)); left: 12px; right: 12px; max-width: 460px; margin: 0 auto; z-index: 85; }

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff8eb, var(--cream));
  color: var(--ink);
  padding-bottom: 104px;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.vetrina-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px max(16px, env(safe-area-inset-left)) 12px max(16px, env(safe-area-inset-right));
  background: rgba(75, 7, 11, 0.97);
  color: white;
  box-shadow: 0 10px 28px rgba(43, 21, 13, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
  background: white;
}

.brand span {
  display: grid;
  gap: 3px;
}

.brand small {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: var(--gold);
  text-transform: uppercase;
}

.order-link,
.app-note a {
  text-decoration: none;
  font-weight: 950;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.language-switcher button {
  min-width: 34px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  background: white;
  color: var(--red-dark);
}

.order-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #281304;
  white-space: nowrap;
}

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 14px 34px;
}

.menu-mode-switch[hidden],
.menu-mode-modal[hidden],
.student-modal[hidden] {
  display: none;
}

.menu-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 6px 18px rgba(43, 21, 13, 0.08);
}

.menu-mode-switch button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.menu-mode-switch button[aria-pressed="true"] {
  background: var(--red);
  color: white;
}

.menu-mode-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 18px;
}

.menu-mode-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 9, 6, 0.78);
}

.menu-mode-content {
  position: relative;
  width: min(460px, 100%);
  padding: 24px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(20, 8, 5, 0.42);
  text-align: center;
}

.menu-mode-content > img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 50%;
}

.menu-mode-content > span,
.student-modal-head span,
.student-drink-section > span {
  display: block;
  margin-top: 10px;
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.menu-mode-content h2 {
  margin-top: 4px;
  font-size: 32px;
}

.menu-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.menu-mode-options button {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px 14px;
  border: 2px solid rgba(158, 17, 27, 0.18);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.menu-mode-options button.is-student {
  border-color: var(--gold);
  background: #fff0cb;
}

.menu-mode-options strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.05;
}

.menu-mode-options small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.hero {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 8px;
  background:
    linear-gradient(125deg, rgba(75, 7, 11, 0.94), rgba(158, 17, 27, 0.78)),
    url("assets/showcase/hero-pizza.jpg") center / cover;
  color: white;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 56px;
  line-height: 0.92;
}

.hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.45;
}

.hero p:not(.eyebrow) strong {
  color: #ffd66f;
  font-weight: 950;
}

.hero-order-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
}

.hero-order-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 2px solid #ffe39a;
  border-radius: 8px;
  background: var(--gold);
  color: #281304;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(20, 8, 5, 0.28);
}

.hero-order-button:focus-visible,
.hero-order-button:hover {
  background: #f3c24f;
}

.hero-order-actions span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.tools {
  position: relative;
  z-index: 15;
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 10px 24px rgba(43, 21, 13, 0.08);
}

.search-box {
  display: grid;
  gap: 6px;
}

.search-box[hidden] {
  display: none;
}

.search-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(43, 21, 13, 0.18);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  outline: none;
}

.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(223, 169, 56, 0.22);
}

.category-nav {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(44px, auto));
  grid-auto-columns: minmax(160px, 190px);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.tools.is-student-menu .category-nav {
  grid-template-rows: minmax(44px, auto);
}

.category-nav a {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(158, 17, 27, 0.18);
  border-radius: 8px;
  background: #fff5df;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.12;
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none;
}

.summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
  padding: 15px 16px;
  border: 1px solid rgba(158, 17, 27, 0.24);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: #fff8e9;
}

.summary-order {
  display: grid;
  gap: 3px;
}

.summary-order > span {
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.summary-order strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.12;
}

.summary-order p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.summary > em {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.app-note {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 22px 0 8px;
  padding: 16px;
  border: 1px solid rgba(223, 169, 56, 0.42);
  border-radius: 8px;
  background: #fff1d3;
}

.app-note span {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.app-note strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.08;
}

.app-note p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.38;
}

.app-note a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  white-space: nowrap;
}

.catalog {
  display: grid;
  gap: 9px;
}

.mezzo-news { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 22px; padding: 22px; border-radius: 18px; border: 1.5px solid #10b981; box-shadow: 0 0 22px rgba(16,185,129,.22); background: linear-gradient(120deg, #661014, #98161e); color: #fffaf1; }
.mezzo-news[hidden] { display: none; }
.mezzo-news h2 { margin: 8px 0; font: 900 clamp(25px, 3vw, 34px)/1.1 Georgia, serif; color: #ffda83; }
.mezzo-news p { margin: 0; font-size: 13px; line-height: 1.6; color: #f4ddc5; }
.mezzo-news a { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 13px 18px; border-radius: 999px; background: #ffcf67; color: #3b1709; font-size: 13px; font-weight: 900; text-decoration: none; }
@media (max-width: 650px) { .mezzo-news { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; } }

.menu-category {
  scroll-margin-top: 14px;
}

.menu-category.mezzo-novita,
.product-card.mezzo-novita {
  outline: 1.5px solid #10b981;
  border-radius: 14px;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.32);
}
.mezzo-novita-badge {
  display: inline-flex;
  width: fit-content;
  margin: 6px 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: #059669;
  color: white;
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
}

.menu-category.is-open {
  margin-bottom: 20px;
}

.category-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  border-left: 6px solid var(--gold);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 8px;
  background: var(--red-dark);
  color: white;
  font: inherit;
  text-align: left;
  box-shadow: 0 8px 20px rgba(75, 7, 11, 0.16);
  cursor: pointer;
}

.menu-category.is-open .category-head {
  margin-bottom: 12px;
  border-radius: 8px 8px 4px 4px;
  background: var(--red);
}

.category-head:focus-visible {
  outline: 3px solid rgba(223, 169, 56, 0.65);
  outline-offset: 2px;
}

.category-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.category-name {
  display: block;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.category-title span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.category-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.category-count {
  padding: 6px 9px;
  border: 1px solid rgba(223, 169, 56, 0.5);
  border-radius: 6px;
  color: #ffe29a;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.category-toggle-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 226, 154, 0.5);
  border-radius: 50%;
  color: #ffe29a;
}

.category-toggle-icon::before {
  width: 8px;
  height: 8px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.category-head[aria-expanded="true"] .category-toggle-icon::before {
  transform: translateY(2px) rotate(225deg);
}

.product-grid[hidden] {
  display: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 26px rgba(43, 21, 13, 0.08);
}

.product-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: #f5ead7;
  cursor: pointer;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-photo-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.product-body {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.product-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.product-head h3 {
  font-size: 22px;
  line-height: 1.05;
}

.product-head strong {
  color: var(--red);
  font-size: 17px;
  font-weight: 950;
  white-space: nowrap;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.product-body .baby-price {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.student-menu-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.student-menu-card .product-photo {
  height: 100%;
  min-height: 280px;
}

.student-menu-body {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px;
}

.student-menu-kicker {
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.student-menu-body h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
}

.student-menu-price {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 900;
}

.student-menu-components {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.student-menu-components li::before {
  margin-right: 7px;
  color: var(--gold);
  content: "✓";
}

.student-menu-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.student-menu-card .add-to-cart,
.student-regular-menu {
  min-height: 46px;
  padding-inline: 20px;
}

.student-regular-menu {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff5df;
  color: var(--red-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.student-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: end center;
  padding: 14px;
}

.student-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 8, 5, 0.72);
}

.student-modal-content {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100dvh - 28px));
  overflow: auto;
  padding: 20px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(20, 8, 5, 0.4);
}

.student-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.student-modal-head span,
.student-drink-section > span {
  margin-top: 0;
}

.student-modal-head h2 {
  margin-top: 3px;
  font-size: 30px;
}

.student-modal-head > button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 19px;
  font-weight: 950;
  cursor: pointer;
}

.student-formula-summary {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  background: #fff0cb;
}

.student-formula-summary div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.student-formula-summary strong {
  color: var(--red);
}

.student-drink-section {
  margin-top: 18px;
}

.student-drink-section p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.student-drink-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.student-drink-list button {
  min-height: 48px;
  padding: 8px 10px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.student-drink-list button[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.student-extras {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.student-extras-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.student-extras-head strong {
  color: var(--red);
  white-space: nowrap;
}

.student-extras > p {
  margin: 0;
  padding: 0 14px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.student-extras .student-wholegrain-row {
  margin: 0 10px 10px;
}

.student-extras .extras-list {
  max-height: 310px;
  overflow: auto;
  padding: 0 10px 10px;
}

#student-pizza-step[hidden],
#student-drink-step[hidden],
.student-modal-bottom > [hidden] {
  display: none;
}

.student-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
}

.student-modal-bottom {
  position: sticky;
  bottom: -20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  margin: 0 -20px -20px;
  padding: 12px 20px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.student-modal-bottom.is-drink-step {
  grid-template-columns: auto auto minmax(0, 1fr);
}

.student-back {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--red-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

#confirm-student-menu:disabled {
  cursor: not-allowed;
}

.student-qty {
  display: grid;
  gap: 5px;
}

.student-qty > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.add-to-cart {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.cart-bar[hidden],
.order-modal[hidden],
.success-modal[hidden] {
  display: none;
}

.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(255, 244, 223, 0), rgba(255, 244, 223, 0.98) 28%);
}

.cart-bar button {
  width: min(680px, 100%);
  min-height: 58px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 10px 16px;
  border: 0;
  border-radius: 18px;
  background: var(--red);
  color: white;
  box-shadow: 0 16px 38px rgba(75, 7, 11, 0.32);
  cursor: pointer;
  text-align: left;
}

.cart-bar span {
  font-size: 13px;
  font-weight: 850;
  opacity: 0.9;
}

.cart-bar strong {
  grid-row: span 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  white-space: nowrap;
}

.cart-bar em {
  font-style: normal;
  font-size: 15px;
  font-weight: 950;
}

.order-modal,
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: end center;
  padding: 14px;
}

.order-modal-backdrop,
.success-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 8, 5, 0.72);
}

.order-modal-content,
.success-modal-content {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border: 1px solid rgba(223, 169, 56, 0.54);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(20, 8, 5, 0.36);
}

.order-modal-content {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.order-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.order-modal-head span,
.success-modal-content span {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.order-modal-head h2,
.success-modal-content h2 {
  margin-top: 3px;
  font-size: 30px;
}

.order-modal-head button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f3dfbd;
  color: var(--red-dark);
  font-size: 24px;
  font-weight: 950;
  cursor: pointer;
}

.cart-lines {
  display: grid;
  gap: 8px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.cart-line strong {
  font-size: 15px;
}

.cart-line small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.cart-line em {
  display: block;
  margin-top: 5px;
  color: var(--red);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.32;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 34px minmax(20px, auto) 34px;
  align-items: center;
  gap: 7px;
  justify-items: center;
  flex: 0 0 auto;
}

.qty-control button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f0dfbf;
  color: var(--red-dark);
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
}

.qty-control button:disabled {
  opacity: 0.45;
  cursor: default;
}

.qty-control span,
.qty-control strong {
  min-width: 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 950;
}

.guest-field {
  display: grid;
  gap: 7px;
}

.guest-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.guest-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(43, 21, 13, 0.18);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  outline: none;
}

.guest-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(223, 169, 56, 0.22);
}

.payment-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 9px;
}

.payment-option {
  display: grid;
  gap: 3px;
  min-height: 66px;
  padding: 11px;
  border: 2px solid rgba(158, 17, 27, 0.15);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.payment-option strong {
  font-size: 14px;
  font-weight: 950;
}

.payment-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.payment-option.is-active {
  border-color: var(--red);
  background: #fff1d3;
}

.order-error {
  min-height: 18px;
  margin: -3px 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 2px;
  border-top: 1px solid var(--line);
}

.order-total span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.order-total strong {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
}

.send-order,
.success-modal-content button {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: white;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
}

.send-order:disabled {
  opacity: 0.7;
  cursor: wait;
}

.success-modal-content {
  display: grid;
  gap: 12px;
  padding: 22px;
  text-align: center;
}

.success-modal-content p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.4;
}

.customize-modal[hidden] {
  display: none;
}

.customize-modal {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 10px 10px max(10px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.customize-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 8, 5, 0.72);
}

.customize-modal-content {
  position: relative;
  width: min(620px, calc(100dvw - 20px));
  max-width: 100%;
  max-height: calc(100dvh - 20px);
  display: grid;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid rgba(223, 169, 56, 0.54);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(20, 8, 5, 0.36);
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: 142px;
}

@supports not (height: 100dvh) {
  .customize-modal-content {
    max-height: calc(100vh - 20px);
  }
}

.customize-head {
  position: sticky;
  top: -16px;
  z-index: 3;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin: -16px -16px 0;
  padding: 16px;
  border-bottom: 1px solid rgba(226, 197, 151, 0.68);
  background: rgba(255, 250, 241, 0.98);
}

.customize-head > div {
  min-width: 0;
  flex: 1 1 auto;
}

.customize-head img {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
  background: #f5ead7;
}

.customize-head img[hidden] {
  display: none;
}

.customize-head span,
.customize-section > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.customize-head h2 {
  margin-top: 3px;
  font-size: 30px;
  overflow-wrap: anywhere;
}

.customize-head p,
.customize-section p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.customize-head button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #f3dfbd;
  color: var(--red-dark);
  font-size: 24px;
  font-weight: 950;
  cursor: pointer;
}

.wholegrain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.wholegrain-row[hidden],
.customize-section[hidden] {
  display: none;
}

.wholegrain-row label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.wholegrain-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--red);
}

.wholegrain-row strong {
  color: var(--red);
  font-size: 14px;
  white-space: nowrap;
}

.customize-section {
  display: grid;
  gap: 9px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list button {
  min-height: 38px;
  padding: 0 13px;
  border: 2px solid rgba(43, 21, 13, 0.09);
  border-radius: 999px;
  background: #fff5df;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.chip-list button.is-removed {
  border-color: rgba(158, 17, 27, 0.55);
  background: rgba(158, 17, 27, 0.1);
  color: var(--red);
  text-decoration: line-through;
}

.extras-list {
  display: grid;
  gap: 8px;
}

.extras-search {
  display: block;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.extras-search:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

.student-extras .extras-search {
  width: calc(100% - 20px);
  margin: 0 10px 10px;
}

.extras-empty {
  padding: 12px;
  color: var(--muted);
  text-align: center;
}

.extra-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.extra-row > div:first-child {
  min-width: 0;
}

.extra-row strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.extra-row span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.customize-bottom {
  position: sticky;
  bottom: -16px;
  z-index: 3;
  display: grid;
  gap: 12px;
  margin: 4px -16px -16px;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.98);
  box-shadow: 0 -10px 24px rgba(43, 21, 13, 0.1);
}

.customize-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customize-qty > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

#confirm-customize {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}

.success-reward {
  display: grid;
  gap: 10px;
}

.guest-wheel {
  --wheel-size: min(300px, calc(100vw - 76px));
  --wheel-top: 24px;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: min(100%, 430px);
  margin-inline: auto;
  padding: 16px 14px 18px;
  border: 2px solid rgba(240, 183, 51, 0.82);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 16%, rgba(224, 52, 34, 0.58), transparent 34%),
    radial-gradient(circle at 12% 86%, rgba(19, 122, 62, 0.28), transparent 30%),
    linear-gradient(180deg, #9e1418 0%, #6e080d 62%, #370406 100%);
  color: #fff7e6;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 18px 42px rgba(63, 5, 8, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.guest-wheel-logo {
  width: min(104px, 25vw);
  height: min(104px, 25vw);
  padding: 7px;
  border-radius: 50%;
  background: conic-gradient(#178641 0 33%, #fff 33% 66%, #d71920 66% 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
}

.guest-wheel-logo img,
.guest-wheel-center img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  background: #fff7e6;
}

.guest-wheel-badge {
  padding: 6px 15px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7d56d, #ffffff, #f0b733);
  color: #3d1a00;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(224, 184, 74, 0.4);
}

.guest-wheel-title {
  color: #fff7e6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 7.2vw, 34px);
  font-weight: 950;
  line-height: 0.96;
  text-align: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.guest-wheel-subtitle {
  color: #f7d56d;
  margin: 0 0 4px;
  max-width: 320px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.guest-wheel-stage {
  position: relative;
  width: calc(var(--wheel-size) + 20px);
  height: calc(var(--wheel-size) + 42px);
  flex-shrink: 0;
}

.guest-wheel-glow {
  position: absolute;
  top: calc(var(--wheel-top) - 2px);
  left: 50%;
  width: calc(var(--wheel-size) + 8px);
  height: calc(var(--wheel-size) + 8px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 183, 51, 0.42), rgba(240, 183, 51, 0) 72%);
  filter: blur(10px);
}

.guest-wheel.is-boosted .guest-wheel-glow {
  background: radial-gradient(circle, rgba(247, 213, 109, 0.64), rgba(247, 213, 109, 0) 72%);
}

.guest-wheel-pointer {
  position: absolute;
  top: 2px;
  left: 50%;
  z-index: 8;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 42px solid #fff7e6;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.5));
}

.guest-wheel-disc {
  position: absolute;
  top: var(--wheel-top);
  left: 50%;
  z-index: 2;
  width: var(--wheel-size);
  height: var(--wheel-size);
  transform: translateX(-50%);
  border-radius: 50%;
  background: conic-gradient(#137a3e 0 60deg, #fff0d2 60deg 120deg, #b70f19 120deg 180deg, #137a3e 180deg 240deg, #fff0d2 240deg 300deg, #b70f19 300deg 360deg);
  box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.34), 0 16px 42px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  transform-origin: 50% 50%;
}

.guest-wheel-shine {
  position: absolute;
  top: var(--wheel-top);
  left: 50%;
  z-index: 3;
  width: var(--wheel-size);
  height: var(--wheel-size);
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 48%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

.guest-wheel-ring {
  position: absolute;
  top: var(--wheel-top);
  left: 50%;
  z-index: 4;
  width: var(--wheel-size);
  height: var(--wheel-size);
  transform: translateX(-50%);
  border: 12px solid #c8961e;
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: 0 0 34px rgba(240, 183, 51, 0.52), inset 0 0 16px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.guest-wheel-light {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff8d6;
  box-shadow: 0 0 9px rgba(255, 244, 188, 0.95);
  transform: rotate(var(--light-angle)) translateY(calc(var(--wheel-size) * -0.463));
  animation-delay: var(--light-delay);
}

.guest-wheel.is-boosted .guest-wheel-ring {
  border-color: #e0b84a;
  box-shadow: 0 0 52px rgba(247, 213, 109, 0.72), inset 0 0 16px rgba(0, 0, 0, 0.3);
}

.guest-wheel-center {
  position: absolute;
  top: calc(var(--wheel-top) + (var(--wheel-size) / 2));
  left: 50%;
  z-index: 6;
  width: 68px;
  height: 68px;
  margin-top: -34px;
  margin-left: -34px;
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(#178641 0 33%, #fff 33% 66%, #d71920 66% 100%);
  box-sizing: border-box;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.42);
}

.guest-wheel-labels {
  position: absolute;
  top: var(--wheel-top);
  left: 50%;
  z-index: 5;
  width: var(--wheel-size);
  height: var(--wheel-size);
  transform: translateX(-50%);
  transform-origin: 50% 50%;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 4.2s cubic-bezier(.12, .72, .12, 1);
}

.guest-wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76px, calc(var(--wheel-size) * 0.255));
  margin-top: -27px;
  margin-left: max(-38px, calc(var(--wheel-size) * -0.1275));
  color: #fff7e6 !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.78);
  text-transform: uppercase;
  transform: rotate(var(--angle)) translateY(calc(var(--wheel-size) * -0.327)) rotate(var(--counter));
  transform-origin: 50% 50%;
}

.guest-wheel-label-content {
  display: block;
  color: #fff7e6 !important;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
}

.guest-wheel-label.is-dark {
  color: #fff7e6 !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.78);
}

.guest-wheel-label em {
  display: block;
  height: 24px;
  margin-bottom: 3px;
  font-size: 24px;
  font-style: normal;
  line-height: 1;
}

.guest-wheel-label b {
  display: block;
  font-size: 13px;
}

.guest-wheel-label small {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 950;
}

.spin-wheel {
  width: min(100%, 292px);
  min-height: 62px;
  margin-top: 2px;
  padding: 0 28px;
  border: 2px solid #f0b733;
  border-radius: 24px;
  background: linear-gradient(145deg, #b6121c, #7f0c11);
  color: #fff7e6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.spin-wheel:disabled {
  opacity: 0.7;
  cursor: wait;
}

.guest-wheel-result {
  margin-top: 3px;
  padding: 15px 18px;
  border: 2px solid #f0b733;
  border-radius: 18px;
  background: linear-gradient(160deg, #fff7e6, #f7e6c4);
  color: #3d1a00;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.05;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.guest-wheel .guest-wheel-note {
  margin: 0;
  max-width: 340px;
  color: rgba(255, 247, 230, 0.9);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
}

.guest-wheel .wheel-error {
  min-height: 16px;
  color: #ffd0d0;
  font-size: 12px;
  font-weight: 900;
}

.claim-box {
  display: grid;
  gap: 11px;
  padding: 16px;
  border: 2px solid rgba(158, 17, 27, 0.72);
  border-radius: 12px;
  background: #fff5df;
  box-shadow: 0 10px 26px rgba(83, 18, 10, 0.12);
}

.claim-app-head {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
}

.claim-app-head img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: white;
  object-fit: contain;
}

.claim-app-head span {
  display: block;
  margin-bottom: 2px;
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.claim-app-head h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.08;
}

.claim-box .claim-value {
  color: #5f3b27;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.claim-box .claim-value b {
  color: var(--red);
  font-weight: 950;
}

.claim-box .claim-app-cta {
  display: grid;
  min-height: 68px;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 8px 16px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: var(--red);
  color: white;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(158, 17, 27, 0.22);
}

.claim-app-cta b {
  font-size: 18px;
  font-weight: 950;
}

.claim-app-cta small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 11.5px;
  font-weight: 800;
}

.claim-code-label {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 950;
  text-transform: uppercase;
}

.claim-code-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}

.claim-box .claim-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 2px dashed rgba(158, 17, 27, 0.36);
  border-radius: 10px;
  background: white;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 28px;
  letter-spacing: 2px;
}

.claim-box .copy-claim-code {
  min-height: 46px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: #2f6f3e;
  color: white;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.claim-box .copy-claim-code.is-copied {
  background: #23572f;
}

.claim-box .claim-instruction {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
}

#success-close {
  min-height: 48px;
  border: 1px solid rgba(158, 17, 27, 0.45);
  background: transparent;
  color: var(--red);
}

.empty-state {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-align: center;
  font-weight: 950;
}

.photo-modal[hidden] {
  display: none;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 8, 5, 0.82);
}

.photo-modal-content {
  position: relative;
  width: min(680px, 100%);
  max-height: 92vh;
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--paper);
}

.photo-modal-content img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
  background: #20110b;
}

.photo-modal-content strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.photo-modal-close {
  justify-self: end;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-weight: 950;
  cursor: pointer;
}

@media (max-width: 720px) {
  .vetrina-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    font-size: 20px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand small {
    font-size: 9px;
  }

  .header-actions {
    gap: 6px;
  }

  .language-switcher {
    padding: 2px;
  }

  .language-switcher button {
    min-width: 30px;
    min-height: 30px;
    padding: 0 6px;
    font-size: 11px;
  }

  .order-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  main {
    padding: 12px 10px 28px;
  }

  .menu-mode-switch {
    margin-bottom: 10px;
  }

  .menu-mode-content {
    padding: 20px 14px;
  }

  .menu-mode-options {
    gap: 8px;
  }

  .menu-mode-options button {
    min-height: 116px;
    padding: 14px 8px;
  }

  .menu-mode-options strong {
    font-size: 20px;
  }

  .student-menu-card {
    grid-template-columns: 1fr;
  }

  .student-menu-card .product-photo {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .student-menu-body {
    gap: 10px;
    padding: 16px;
  }

  .student-menu-body h2 {
    font-size: 28px;
  }

  .student-menu-actions {
    display: grid;
  }

  .student-menu-card .add-to-cart,
  .student-regular-menu {
    width: 100%;
  }

  .student-modal {
    padding: 0;
  }

  .student-modal-content {
    width: 100%;
    max-height: 94dvh;
    padding: 18px 14px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .student-modal-bottom {
    bottom: -18px;
    margin: 0 -14px -18px;
    padding-inline: 14px;
  }

  .student-modal-bottom.is-drink-step {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .student-modal-bottom.is-drink-step #confirm-student-menu {
    grid-column: 1 / -1;
  }

  .hero {
    padding: 18px;
  }

  h1 {
    font-size: 38px;
    line-height: 0.98;
  }

  .hero p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-order-actions {
    align-items: stretch;
    margin-top: 14px;
  }

  .hero-order-button {
    width: 100%;
  }

  .hero-order-actions span {
    width: 100%;
    text-align: center;
  }

  .tools {
    margin: 10px 0;
  }

  .app-note {
    grid-template-columns: 1fr;
  }

  .app-note a {
    width: 100%;
  }

  .summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .summary > em {
    justify-self: start;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .product-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .product-body {
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: initial;
    gap: 6px;
    padding: 8px;
  }

  .product-head {
    display: grid;
    gap: 3px;
  }

  .product-head h3 {
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.05;
  }

  .product-head strong {
    font-size: 15px;
  }

  .product-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.5em;
    font-size: 11.5px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .product-actions {
    align-self: end;
  }

  .add-to-cart {
    width: 100%;
    min-height: 38px;
    padding-inline: 8px;
  }

  .category-nav {
    grid-auto-columns: minmax(140px, calc((100vw - 44px) / 2));
  }

  .category-head {
    padding: 10px 11px;
    border-left-width: 5px;
  }

  .menu-category.is-open .category-head {
    margin-bottom: 9px;
  }

  .category-name {
    font-size: 24px;
  }

  .category-count {
    padding: 5px 7px;
    font-size: 9px;
  }

  .category-meta {
    gap: 7px;
  }

  .category-toggle-icon {
    width: 28px;
    height: 28px;
  }

  .customize-modal {
    padding: 0;
  }

  .customize-modal-content {
    width: 100dvw;
    max-width: 100dvw;
    max-height: 100dvh;
    gap: 10px;
    padding: 12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
    border-right: 0;
    border-left: 0;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    scroll-padding-bottom: 132px;
  }

  @supports not (height: 100dvh) {
    .customize-modal-content {
      max-height: 100vh;
    }
  }

  .customize-head {
    top: -12px;
    align-items: center;
    gap: 10px;
    margin: -12px min(-12px, calc(env(safe-area-inset-right) * -1)) 0 min(-12px, calc(env(safe-area-inset-left) * -1));
    padding: 12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
  }

  .customize-head img {
    width: 62px;
    height: 62px;
    border-radius: 8px;
  }

  .customize-head h2 {
    margin-top: 2px;
    font-size: 23px;
    line-height: 1.05;
  }

  .customize-head p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .customize-head button {
    width: 44px;
    height: 44px;
    font-size: 25px;
  }

  .wholegrain-row {
    gap: 8px;
    padding: 10px 11px;
  }

  .wholegrain-row label {
    font-size: 14px;
  }

  .customize-section {
    gap: 7px;
  }

  .customize-section p {
    font-size: 12.5px;
    line-height: 1.28;
  }

  .chip-list {
    gap: 7px;
  }

  .chip-list button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12.5px;
  }

  .extras-list {
    gap: 7px;
  }

  .extra-row {
    gap: 8px;
    padding: 9px 9px 9px 11px;
    border-radius: 9px;
  }

  .extra-row strong {
    font-size: 13.5px;
  }

  .extra-row span {
    font-size: 11.5px;
  }

  .customize-bottom {
    gap: 8px;
    bottom: -12px;
    margin: 2px min(-12px, calc(env(safe-area-inset-right) * -1)) -12px min(-12px, calc(env(safe-area-inset-left) * -1));
    padding: 10px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .customize-bottom .qty-control {
    grid-template-columns: 42px 26px 42px;
    gap: 7px;
  }

  #confirm-customize {
    min-height: 52px;
    padding: 0 14px;
  }

  .success-modal {
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }

  .success-modal-content {
    max-height: calc(100dvh - 16px);
    gap: 9px;
    padding: 14px;
    border-radius: 16px 16px 0 0;
  }

  @supports not (height: 100dvh) {
    .success-modal-content {
      max-height: calc(100vh - 16px);
    }
  }

  .success-modal-content h2 {
    font-size: 27px;
    line-height: 1;
  }

  .success-modal-content p {
    font-size: 13.5px;
    line-height: 1.3;
  }

  .claim-box {
    gap: 9px;
    padding: 13px;
  }

  .claim-app-head img {
    width: 48px;
    height: 48px;
  }

  .claim-app-head h3 {
    font-size: 20px;
  }

  .claim-app-cta b {
    font-size: 16.5px;
  }

  .claim-box .claim-code {
    padding-inline: 11px;
    font-size: 24px;
    letter-spacing: 1.5px;
  }

  .guest-wheel {
    --wheel-size: min(300px, calc(100vw - 64px));
    gap: 6px;
    padding: 14px 10px 15px;
    border-radius: 18px;
  }

  .guest-wheel-logo {
    width: min(104px, 25vw);
    height: min(104px, 25vw);
  }

  .guest-wheel-title {
    font-size: clamp(25px, 7vw, 31px);
  }

  .guest-wheel-subtitle {
    margin-bottom: 1px;
    font-size: 13px;
  }

  .guest-wheel-stage {
    width: calc(var(--wheel-size) + 20px);
    height: calc(var(--wheel-size) + 42px);
  }

  .guest-wheel-result {
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 21px;
  }

  .spin-wheel {
    min-height: 58px;
    font-size: 26px;
  }

  .guest-wheel .guest-wheel-note {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vetrina-header,
  .tools {
    transition: none;
  }
}

@media (max-width: 390px) {
  .vetrina-header {
    gap: 8px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .order-link {
    min-height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }

  .language-switcher button {
    min-width: 28px;
    min-height: 28px;
    padding: 0 5px;
    font-size: 10px;
  }
}

/* La ruota e il passaggio all'app devono essere leggibili nella stessa vista. */
.success-modal-content {
  width: min(920px, 100%);
}

.success-modal-content > span,
.success-modal-content > h2,
.success-modal-content > p {
  width: min(100%, 660px);
  margin-inline: auto;
}

.reward-layout {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.reward-layout:not(.has-wheel) {
  width: min(100%, 620px);
  margin-inline: auto;
}

.reward-layout.has-wheel .guest-wheel,
.reward-layout.has-wheel .claim-box {
  width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

.pending-reward[hidden] {
  display: none;
}

.pending-reward {
  position: fixed;
  right: 14px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 78;
  width: min(360px, calc(100vw - 28px));
  filter: drop-shadow(0 14px 28px rgba(45, 9, 5, 0.3));
}

.pending-reward.has-cart {
  bottom: max(88px, calc(74px + env(safe-area-inset-bottom)));
}

.pending-reward button {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: var(--red);
  color: white;
  text-align: left;
  cursor: pointer;
}

.pending-reward-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #fff5df;
  font-size: 24px;
}

.pending-reward-copy {
  display: grid;
  gap: 2px;
}

.pending-reward-copy small {
  color: #f7d56d;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.pending-reward-copy strong {
  color: white;
  font-size: 15px;
  line-height: 1.15;
}

.pending-reward-arrow {
  font-size: 34px;
  line-height: 1;
}

@media (min-width: 560px) {
  .reward-layout.has-wheel {
    grid-template-columns: minmax(250px, 0.9fr) minmax(260px, 1.1fr);
    align-items: center;
  }

  .reward-layout.has-wheel .guest-wheel {
    --wheel-size: min(224px, calc(50vw - 90px));
    --wheel-top: 19px;
    gap: 4px;
    padding: 10px;
    border-radius: 16px;
  }

  .reward-layout.has-wheel .guest-wheel-logo {
    width: 58px;
    height: 58px;
    padding: 4px;
  }

  .reward-layout.has-wheel .guest-wheel-badge {
    padding: 4px 10px;
    font-size: 9px;
  }

  .reward-layout.has-wheel .guest-wheel-title {
    font-size: 26px;
  }

  .reward-layout.has-wheel .guest-wheel-subtitle {
    margin-bottom: 0;
    font-size: 11.5px;
  }

  .reward-layout.has-wheel .guest-wheel-stage {
    width: calc(var(--wheel-size) + 18px);
    height: calc(var(--wheel-size) + 33px);
  }

  .reward-layout.has-wheel .guest-wheel-pointer {
    border-left-width: 18px;
    border-right-width: 18px;
    border-top-width: 34px;
  }

  .reward-layout.has-wheel .guest-wheel-ring {
    border-width: 9px;
  }

  .reward-layout.has-wheel .guest-wheel-center {
    width: 52px;
    height: 52px;
    margin-top: -26px;
    margin-left: -26px;
    padding: 4px;
  }

  .reward-layout.has-wheel .guest-wheel-light {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
  }

  .reward-layout.has-wheel .guest-wheel-label {
    margin-top: -21px;
  }

  .reward-layout.has-wheel .guest-wheel-label em {
    height: 17px;
    margin-bottom: 2px;
    font-size: 17px;
  }

  .reward-layout.has-wheel .guest-wheel-label b {
    font-size: 10px;
  }

  .reward-layout.has-wheel .guest-wheel-label small {
    font-size: 9px;
  }

  .reward-layout.has-wheel .spin-wheel {
    min-height: 48px;
    border-radius: 16px;
    font-size: 22px;
  }

  .reward-layout.has-wheel .guest-wheel-result {
    padding: 10px 12px;
    font-size: 18px;
  }

  .reward-layout.has-wheel .guest-wheel-note {
    font-size: 10.5px;
    line-height: 1.2;
  }

  .reward-layout.has-wheel .wheel-error {
    min-height: 12px;
    margin: 0;
    font-size: 10px;
  }

  .reward-layout.has-wheel .claim-box {
    gap: 8px;
    padding: 13px;
  }

  .reward-layout.has-wheel .claim-app-head img {
    width: 46px;
    height: 46px;
  }

  .reward-layout.has-wheel .claim-app-head h3 {
    font-size: 19px;
  }

  .reward-layout.has-wheel .claim-value {
    font-size: 13px;
    line-height: 1.3;
  }

  .reward-layout.has-wheel .claim-app-cta {
    min-height: 58px;
  }

  .reward-layout.has-wheel .claim-app-cta b {
    font-size: 16px;
  }

  .reward-layout.has-wheel .claim-code {
    font-size: 23px;
  }
}

@media (max-width: 559px) {
  .success-modal-content {
    gap: 6px;
    padding: 10px;
  }

  .success-modal-content h2 {
    margin-block: 1px;
    font-size: 23px;
  }

  .success-modal-content > p {
    font-size: 11.5px;
    line-height: 1.2;
  }

  .reward-layout.has-wheel {
    gap: 7px;
  }

  .reward-layout.has-wheel .guest-wheel {
    --wheel-size: min(176px, calc(100vw - 96px));
    --wheel-top: 16px;
    gap: 3px;
    padding: 7px 8px 8px;
    border-radius: 14px;
  }

  .reward-layout.has-wheel .guest-wheel-logo {
    display: none;
  }

  .reward-layout.has-wheel .guest-wheel-badge {
    padding: 3px 9px;
    font-size: 8px;
  }

  .reward-layout.has-wheel .guest-wheel-title {
    font-size: 23px;
  }

  .reward-layout.has-wheel .guest-wheel-subtitle {
    margin: 0;
    font-size: 10.5px;
    line-height: 1.15;
  }

  .reward-layout.has-wheel .guest-wheel-stage {
    width: calc(var(--wheel-size) + 16px);
    height: calc(var(--wheel-size) + 28px);
  }

  .reward-layout.has-wheel .guest-wheel-pointer {
    border-left-width: 15px;
    border-right-width: 15px;
    border-top-width: 29px;
  }

  .reward-layout.has-wheel .guest-wheel-ring {
    border-width: 7px;
  }

  .reward-layout.has-wheel .guest-wheel-center {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    margin-left: -22px;
    padding: 3px;
  }

  .reward-layout.has-wheel .guest-wheel-light {
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
  }

  .reward-layout.has-wheel .guest-wheel-label {
    margin-top: -18px;
  }

  .reward-layout.has-wheel .guest-wheel-label em {
    height: 14px;
    margin-bottom: 1px;
    font-size: 14px;
  }

  .reward-layout.has-wheel .guest-wheel-label b {
    font-size: 8.5px;
  }

  .reward-layout.has-wheel .guest-wheel-label small {
    font-size: 8px;
  }

  .reward-layout.has-wheel .spin-wheel {
    min-height: 43px;
    margin: 0;
    border-radius: 14px;
    font-size: 20px;
  }

  .reward-layout.has-wheel .guest-wheel-result {
    padding: 8px 10px;
    font-size: 17px;
  }

  .reward-layout.has-wheel .guest-wheel-note {
    display: none;
  }

  .reward-layout.has-wheel .wheel-error {
    min-height: 0;
    margin: 0;
    font-size: 10px;
  }

  .reward-layout.has-wheel .claim-box {
    gap: 5px;
    padding: 9px;
  }

  .reward-layout.has-wheel .claim-app-head {
    gap: 8px;
  }

  .reward-layout.has-wheel .claim-app-head img {
    width: 38px;
    height: 38px;
  }

  .reward-layout.has-wheel .claim-app-head span {
    font-size: 8.5px;
  }

  .reward-layout.has-wheel .claim-app-head h3 {
    font-size: 17px;
  }

  .reward-layout.has-wheel .claim-value {
    font-size: 11.5px;
    line-height: 1.2;
  }

  .reward-layout.has-wheel .claim-app-cta {
    min-height: 49px;
    padding: 5px 9px;
  }

  .reward-layout.has-wheel .claim-app-cta b {
    font-size: 14.5px;
  }

  .reward-layout.has-wheel .claim-app-cta small {
    font-size: 9.5px;
  }

  .reward-layout.has-wheel .claim-code-label {
    margin: 0;
    font-size: 8.5px;
  }

  .reward-layout.has-wheel .claim-code-row {
    gap: 6px;
  }

  .reward-layout.has-wheel .claim-code {
    padding: 5px 9px;
    font-size: 19px;
  }

  .reward-layout.has-wheel .copy-claim-code {
    min-height: 38px;
    padding-inline: 11px;
  }

  .reward-layout.has-wheel .claim-instruction {
    font-size: 10.5px;
    line-height: 1.2;
  }

  #success-close {
    min-height: 42px;
  }
}
