/* ==========================================================================
   Bronson Pizza — online ordering
   Warm paper, charcoal ink, one fired-brick red. Editorial, cardless, calm.
   ========================================================================== */

:root {
  --paper: #faf6ef;
  --paper-2: #f2ece1;
  --paper-3: #e9e2d4;
  --ink: #1c1b17;
  --ink-2: #2b2a25;
  --muted: #625d53;
  --red: #b3261c;
  --red-deep: #8e1f16;
  --ember: #e8a33d;
  --rule: rgba(28, 27, 23, 0.16);
  --rule-soft: rgba(28, 27, 23, 0.09);
  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --masthead-h: 72px;
  --stepbar-h: 52px;
  --dur: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle, sleek scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(28, 27, 23, 0.2);
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(28, 27, 23, 0.35);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 400; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link {
  position: fixed; top: -80px; left: 16px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red);
}

/* ------------------------------------------------------------- controls -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 4px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); }
.btn--primary[disabled] { background: var(--paper-3); color: var(--muted); cursor: not-allowed; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--quiet:hover { border-color: var(--ink); }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.8; }

.icon-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: -8px -8px -8px 0; color: var(--muted); border-radius: 4px;
}
.icon-x:hover { color: var(--ink); }

.link-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 0; font-size: 13px; font-weight: 600; color: var(--muted);
}
.link-back:hover { color: var(--red); }

.rule-title {
  margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--rule);
  font-family: var(--display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ------------------------------------------------------------- masthead -- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  min-height: var(--masthead-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px clamp(16px, 4vw, 56px);
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.masthead__left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.masthead__back-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease;
  min-height: 40px;
  white-space: nowrap;
}
.masthead__back-left:hover {
  color: var(--red);
  transform: translateX(-2px);
}
.masthead__back-left svg {
  flex-shrink: 0;
}
.masthead__center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 46px; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--display); font-size: 16px; white-space: nowrap; }
.brand small { margin-top: 3px; white-space: nowrap; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.masthead__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.masthead__actions { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.masthead__phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.masthead__phone:hover { color: var(--red); }
.masthead__phone span { color: var(--muted); }
.masthead__phone svg { display: none; }

/* Masthead Cart Button */
.masthead__cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px 0 12px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.masthead__cart-btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(179, 38, 28, 0.25);
}
.masthead__cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.masthead__cart-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--red);
  color: #fff;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1.5px solid var(--paper);
}
.masthead__cart-info {
  display: flex;
  align-items: center;
  gap: 6px;
}
.masthead__cart-total {
  opacity: 0.88;
  font-weight: 600;
  font-size: 13px;
}

/* ---------------------------------------------------------------- shell -- */
.shell {
  display: block;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 46px) clamp(16px, 4vw, 56px) 120px;
}
.stage { width: 100%; min-width: 0; }
.step:focus { outline: none; }
.step-head { max-width: 660px; margin-bottom: 32px; }
.step-head h1 { margin: 12px 0 14px; font-family: var(--display); font-size: clamp(30px, 4vw, 46px); }
.step-head__note { color: var(--muted); font-size: 14px; }

@keyframes step-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.step[data-enter] { animation: step-in var(--dur) var(--ease) both; }

/* ------------------------------------------------------------ menu step -- */
.category-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 24px;
  padding: 4px 2px 10px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  border-bottom: 1px solid var(--rule-soft);
}
.category-rail::-webkit-scrollbar {
  display: none;
}
.category-rail button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: 100px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.14s ease;
}
.category-rail button:hover {
  color: var(--ink);
  background: #fff;
  border-color: var(--rule);
}
.category-rail button[aria-selected="true"] {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 2px 8px rgba(28, 27, 23, 0.15);
}

#menu-panels {
  min-height: 480px;
}

.menu-status {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 0; color: var(--muted); font-size: 14px;
}
.menu-status--error { display: block; padding: 24px; background: var(--paper-2); border-left: 3px solid var(--red); }
.menu-status--error strong { display: block; font-family: var(--display); font-size: 16px; color: var(--ink); }
.menu-status--error p { margin: 6px 0 16px; }
.menu-status__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.spinner {
  width: 15px; height: 15px; border: 2px solid var(--rule); border-top-color: var(--red);
  border-radius: 50%; animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.menu-note {
  margin-bottom: 26px; padding: 14px 0 16px; border-bottom: 1px solid var(--rule-soft);
  color: var(--muted); font-size: 13px;
}

.item-row {
  display: grid; grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 26px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--rule-soft); text-align: left; width: 100%;
}
.item-row__media { overflow: hidden; border-radius: 4px; background: var(--paper-2); aspect-ratio: 4 / 3; }
.item-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease); }
.item-row:hover .item-row__media img { transform: scale(1.05); }
.item-row__body { display: block; min-width: 0; }
.item-name { display: block; font-family: var(--display); font-size: 21px; line-height: 1.15; }
.item-desc { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; }
.item-row__meta { display: block; margin-top: 7px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.item-row__media { display: block; }
.item-row__end { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.item-row__price { font-family: var(--display); font-size: 17px; white-space: nowrap; }
.item-row__price small { display: block; font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.item-row__call { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.item-row__call a { display: inline-flex; align-items: center; min-height: 44px; color: var(--red); }

/* -------------------------------------------------------------- builder -- */
/* ---------------------------------------------------- Shopify PDP Customizer */
.pdp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(36px, 4.5vw, 64px);
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 920px) {
  .pdp-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

.pdp-gallery {
  position: relative;
  width: 100%;
}
.pdp-gallery__sticky {
  position: sticky;
  top: calc(var(--masthead-h) + var(--stepbar-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 920px) {
  .pdp-gallery__sticky {
    position: static;
  }
}

.pdp-media-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #1c1b17;
  box-shadow: 0 12px 36px rgba(28, 27, 23, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.pdp-media-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.pdp-media-hero:hover img {
  transform: scale(1.03);
}
.pdp-media-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(28, 27, 23, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pdp-size-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.size-guide-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease;
  background: transparent;
}
.size-guide-item:hover {
  background: var(--paper-2);
  border-color: var(--rule);
}
.size-circle {
  display: block;
  border-radius: 50%;
  background: #d7a256;
  border: 2px solid #a92419;
  margin-bottom: 6px;
  transition: all 0.16s ease;
}
.size-circle--sm { width: 14px; height: 14px; }
.size-circle--md { width: 20px; height: 20px; }
.size-circle--lg { width: 26px; height: 26px; }
.size-circle--xl { width: 32px; height: 32px; }

.size-guide-item strong {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.size-guide-item small {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
}
.size-guide-item.size-guide-item--active {
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(179, 38, 28, 0.12);
}
.size-guide-item.size-guide-item--active strong {
  color: var(--red);
}
.size-guide-item.size-guide-item--active .size-circle {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--red);
}

.pie {
  margin: 0;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  width: 100%;
  background: var(--paper-2);
  border-radius: 12px;
}
.pie__svg {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  display: block;
}
.pie__crust { fill: #d7a256; }
.pie__crust-in { fill: #c98f45; }
.pie__sauce { fill: #a92419; }
.pie__cheese { fill: #e6b04c; }
.pie__melt circle { fill: #f0c976; opacity: 0.75; }
#pie-scale { transition: transform 380ms var(--ease); }
.pie--gf .pie__crust { fill: #c48a49; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 7 8; }
@keyframes drop-in { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
.pie__bit { transform-origin: center; transform-box: fill-box; animation: drop-in 300ms var(--ease) both; }

.pdp-specs-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
}
.specs-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: pulse 1.2s infinite alternate;
}
.pie__caption {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* -------------------------------------------------------- Right: PDP Details */
.pdp-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.pdp-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pdp-craft-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  padding: 3px 8px;
  border-radius: 4px;
}
.pdp-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 3.8vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 2px 0;
}
.pdp-price {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pdp-price-sub {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.pdp-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
.pdp-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.highlight-chip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  padding: 4px 12px;
  border-radius: 100px;
}

.pdp-divider {
  height: 1px;
  background: var(--rule);
  margin: 2px 0;
}

/* ----------------------------------------------------------- PDP Option Form */
.pdp-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pdp-option-group {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdp-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-bottom: 2px;
}
.pdp-option-label strong {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.group__count {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--muted);
  border: 1px solid var(--rule);
}
.group__count[data-complete="true"] {
  background: #e3f2e7;
  color: #23653e;
  border-color: #bbf7d0;
}
.group__hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

/* ------------------------------------------------------------- option cards */
.opt-grid {
  display: grid;
  gap: 10px;
}
.opt-grid--size {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.opt-grid--crust {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 680px) {
  .opt-grid--crust {
    grid-template-columns: 1fr;
  }
}

.opt {
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s var(--ease);
  position: relative;
}
.opt:hover:not([disabled]) {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.opt__radio-indicator {
  width: 18px;
  height: 18px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

/* Size card styling */
.opt--size {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 80px;
  padding: 12px 14px;
}
.opt--size .opt__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.opt--size .opt__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.opt--size .opt__title {
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.opt--size .opt__size-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(28, 27, 23, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}
.opt--size .opt__price {
  font-family: var(--display);
  font-style: normal;
  font-size: 14.5px;
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
}
.opt--size .opt__bottom {
  padding-left: 26px;
}
.opt--size .opt__portion {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

/* Crust card styling */
.opt--crust {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 14px;
  gap: 10px;
}
.opt--crust .opt__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.opt--crust .opt__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.opt--crust .opt__title {
  font-family: var(--display);
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.2;
}
.opt--crust .opt__desc {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
}
.opt--crust .opt__price {
  font-family: var(--display);
  font-style: normal;
  font-size: 13.5px;
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
}

/* Selected option card state */
.opt[aria-checked="true"] {
  background: #fffbf9;
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(179, 38, 28, 0.12);
}
.opt[aria-checked="true"] .opt__radio-indicator {
  border-color: var(--red);
  background: var(--red);
  box-shadow: inset 0 0 0 3px #fff;
}
.opt[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--paper-3);
  border-color: transparent;
}

/* ------------------------------------------------------------ toppings list */
.topping-set {
  display: grid;
  gap: 16px;
}
.topping-group {
  display: grid;
  gap: 8px;
}
.topping-group h4 {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.topping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.topping {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 10px;
  background: var(--paper-2);
  border: 1.5px solid transparent;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
}
.topping:hover:not([disabled]) {
  background: #fff;
  border-color: var(--rule);
  transform: translateY(-1px);
}
.topping__emoji {
  font-size: 13.5px;
  margin-right: 6px;
  flex-shrink: 0;
}
.topping__label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topping .tick {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--muted);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 6px;
  transition: all 0.16s ease;
}
.topping[aria-pressed="true"] {
  background: #fff;
  border-color: var(--red);
  color: var(--red);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(179, 38, 28, 0.12);
}
.topping[aria-pressed="true"] .tick {
  background: var(--red);
  border-color: var(--red);
}
.topping[aria-pressed="true"] .tick svg {
  opacity: 1;
}
.topping[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* -------------------------------------------------------------- notes & btn */
.field {
  display: block;
  width: 100%;
}
.pdp-option-group--notes {
  width: 100%;
}
.pdp-option-group--notes .field {
  width: 100%;
  display: block;
}
.pdp-option-group--notes textarea,
.field textarea,
#build-notes {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 80px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  resize: vertical;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
#build-notes::placeholder {
  color: #9c9889;
  font-size: 13.5px;
}
#build-notes:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.quick-notes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.quick-note-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.quick-note-btn:hover {
  background: #fff;
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.builder__error, .form-error {
  padding: 12px 16px;
  background: rgba(179, 38, 28, 0.09);
  border-left: 3px solid var(--red);
  color: var(--red-deep);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 0 6px 6px 0;
}
.builder__error { margin-bottom: 8px; }
.form-error { margin: 14px 0; }

.pdp-buy-section {
  margin-top: 4px;
}
.btn-pdp-buy {
  width: 100%;
  min-height: 54px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(179, 38, 28, 0.3);
  transition: all 0.18s ease;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-pdp-buy:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(179, 38, 28, 0.4);
}

.pdp-trust-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
}
.pdp-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.trust-icon {
  font-size: 15px;
}

/* --------------------------------------------------------------- upsell -- */
.upsell { margin-top: 44px; padding-top: 26px; border-top: 2px solid var(--ink); }
.upsell__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.upsell__head h2 { margin-top: 8px; font-family: var(--display); font-size: 22px; }
.upsell-item { align-items: flex-start; }
.upsell-item em { padding-top: 1px; }
.upsell__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin: 20px 0; }
.upsell-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 64px; padding: 12px 16px; text-align: left;
  background: var(--paper-2); border: 1px solid transparent; border-radius: 4px;
}
.upsell-item:hover { border-color: var(--ink); }
.upsell-item strong { display: block; font-size: 14px; }
.upsell-item small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.upsell-item em { font-style: normal; font-size: 14px; font-weight: 700; white-space: nowrap; }
.upsell__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------------------------------------------- review (Apple/Google design) -- */
.link-back-apple {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  margin-bottom: 24px;
  transition: color 0.16s ease, transform 0.16s ease;
}
.link-back-apple:hover {
  color: var(--red);
  transform: translateX(-3px);
}
.link-back-apple svg {
  transition: transform 0.16s ease;
}

.review-header {
  margin-bottom: 36px;
}
.review-header h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.review-header__sub {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
}

/* 2-Column Clean Layout */
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 420px;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 960px) {
  .review-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Left Column: Receipt Paper Docket */
.receipt-paper {
  position: relative;
  background: #fff;
  border-radius: 10px 10px 0 0;
  padding: 30px 32px 36px;
  box-shadow: 0 10px 30px rgba(28, 27, 23, 0.07), 0 2px 6px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--rule-soft);
  border-bottom: none;
  margin-bottom: 36px;
}
@media (max-width: 600px) {
  .receipt-paper {
    padding: 22px 18px 32px;
  }
}

/* Ripped / Sawtooth Paper Edge */
.receipt-paper__rip {
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -12px;
  height: 12px;
  background-image: 
    linear-gradient(135deg, #fff 6px, transparent 0),
    linear-gradient(-135deg, #fff 6px, transparent 0);
  background-size: 12px 12px;
  background-repeat: repeat-x;
  background-position: left bottom;
  filter: drop-shadow(0 3px 2px rgba(28, 27, 23, 0.04));
}

.receipt-paper__top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}
.receipt-paper__logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.receipt-paper__logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.receipt-paper__brand-info strong {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.receipt-paper__brand-info span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
.receipt-paper__stamp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.receipt-chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  background: rgba(179, 38, 28, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}
.receipt-date {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.receipt-paper__divider {
  height: 0;
  border-top: 1.5px dashed var(--rule);
  margin: 14px 0;
}

.receipt-paper__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
.receipt-paper__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.receipt-paper__count {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.receipt-paper__subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-top: 4px;
}
.receipt-paper__subtotal-row strong {
  font-family: var(--display);
  font-size: 22px;
  color: var(--red);
}

.review-items-list {
  display: flex;
  flex-direction: column;
}

.bag-item {
  display: flex;
  gap: 20px;
  padding: 18px 16px;
  margin: 0 -16px;
  border-radius: 12px;
  border-bottom: 1px solid var(--rule-soft);
  align-items: flex-start;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
  position: relative;
}
.bag-item:last-child {
  border-bottom: none;
}
.bag-item:hover {
  background: rgba(28, 27, 23, 0.03);
}
.bag-item:hover .bag-item__title {
  color: var(--red);
}
.bag-item:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.bag-item__media {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background: #23221e;
  flex-shrink: 0;
  border: 1px solid var(--rule-soft);
}
.bag-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}
.bag-item:hover .bag-item__media img {
  transform: scale(1.05);
}
.bag-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.bag-item__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.bag-item__headings {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.bag-item__title {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.bag-item__price {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.bag-item__desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}
.bag-item__note {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
}
.bag-item__bottom {
  display: flex;
  align-items: center;
  gap: 16px;
}
.stepper-apple {
  display: inline-flex;
  align-items: center;
  background: var(--paper-2);
  border-radius: 100px;
  padding: 3px 6px;
  gap: 4px;
  border: 1px solid var(--rule-soft);
}
.stepper-apple button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--rule);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}
.stepper-apple button:hover {
  border-color: var(--ink);
  transform: scale(1.06);
}
.stepper-apple span {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.bag-item__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bag-action-btn {
  background: transparent;
  border: none;
  padding: 4px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.14s ease;
  border-radius: 4px;
}
.bag-action-btn:hover {
  color: var(--ink);
}
.bag-action-btn--remove:hover {
  color: var(--red);
}
.bag-action-sep {
  color: var(--rule);
  font-size: 14px;
}

.review__empty {
  padding: 48px 0;
  text-align: center;
}
.review__empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Suggestions - Ripped Add-on Ticket Stubs */
.review-suggestions {
  margin-top: 20px;
}
.suggestions-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.suggestions-title {
  margin: 0;
  font-family: var(--display);
  font-size: 14.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.suggestions-tag {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.suggestion-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: none;
  box-shadow: 0 8px 24px rgba(28, 27, 23, 0.06);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}
.suggestion-card--has-bottom-rip {
  border-bottom: none;
  border-radius: 0;
}
.suggestion-card--last {
  border-radius: 0 0 10px 10px;
}
.suggestion-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(28, 27, 23, 0.1);
}

/* Matching top paper tear (identical geometry: 12px pitch, 6px teeth aligned with bottom tear) */
.suggestion-card__rip-top {
  position: absolute;
  left: -1px;
  right: -1px;
  top: -12px;
  height: 12px;
  background-image: 
    linear-gradient(45deg, #fff 6px, transparent 0),
    linear-gradient(-45deg, #fff 6px, transparent 0);
  background-size: 12px 12px;
  background-repeat: repeat-x;
  background-position: 6px top;
  filter: drop-shadow(0 -2px 2px rgba(28, 27, 23, 0.03));
}

/* Matching bottom paper tear for non-terminal suggestion items */
.suggestion-card__rip-bottom {
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -12px;
  height: 12px;
  background-image: 
    linear-gradient(135deg, #fff 6px, transparent 0),
    linear-gradient(-135deg, #fff 6px, transparent 0);
  background-size: 12px 12px;
  background-repeat: repeat-x;
  background-position: left bottom;
  filter: drop-shadow(0 3px 2px rgba(28, 27, 23, 0.04));
}

.suggestion-card__media {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  background: #1c1b17;
  flex-shrink: 0;
  border: 1px solid var(--rule-soft);
}
.suggestion-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.suggestion-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.suggestion-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.suggestion-card__tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  background: rgba(179, 38, 28, 0.07);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}
.suggestion-card__title {
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.suggestion-card__price {
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.suggestion-card__desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-card__action {
  flex-shrink: 0;
}
.suggestion-add-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 100px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--ink);
  transition: all 0.16s ease;
  white-space: nowrap;
}
.suggestion-card:hover .suggestion-add-pill {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: scale(1.04);
}

.suggestions-phone-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--paper-2);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.suggestions-phone-card a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

/* Right Column: Apple Checkout Sidebar */
.review-sidebar {
  position: sticky;
  top: calc(var(--masthead-h) + var(--stepbar-h) + 24px);
}
.checkout-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.checkout-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checkout-block__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Apple Segmented Control */
.segmented-apple {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: rgba(0, 0, 0, 0.06);
  padding: 4px;
  border-radius: 10px;
  position: relative;
}
.segmented-apple__tab {
  position: relative;
  cursor: pointer;
}
.segmented-apple__tab input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}
.segmented-apple__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.18s ease;
  user-select: none;
}
.segmented-apple__tab input:checked + .segmented-apple__btn {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.location-apple {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--paper-2);
  border-radius: 10px;
}
.location-apple__icon {
  color: var(--red);
  margin-top: 1px;
  flex-shrink: 0;
}
.location-apple__info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.location-apple__info span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.location-apple__info small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  margin-top: 4px;
}

.delivery-apple {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--paper-2);
  border-radius: 10px;
}

/* Inputs & Form Rows */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.input-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.input-label small {
  font-weight: 400;
  color: var(--muted);
}
.input-label .req {
  color: var(--red);
}
.input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 500px) {
  .input-row { grid-template-columns: 1fr; }
}

.input-apple {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  transition: all 0.16s ease;
}
.input-apple::placeholder {
  color: #a39e91;
}
.input-apple:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.input-apple--textarea {
  min-height: 64px;
  resize: vertical;
  line-height: 1.4;
}

.select-apple {
  position: relative;
  width: 100%;
}
.select-apple select {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 36px 10px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.16s ease;
}
.select-apple select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  display: flex;
  align-items: center;
}

/* Summary Block */
.driver-tip { min-width: 0; margin: 0; border: 0; }
.driver-tip .checkout-block__label { padding: 0; }
.driver-tip .checkout-block__label small { font-weight: 400; text-transform: none; letter-spacing: 0; }
.driver-tip__note { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.driver-tip__choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.driver-tip__choices label { position: relative; min-width: 0; cursor: pointer; }
.driver-tip__choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.driver-tip__choices span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 3px; border: 1px solid var(--rule); border-radius: 4px; font-size: 13px; font-weight: 700; }
.driver-tip__choices input:checked + span { border-color: var(--red); background: var(--red); color: #fff; }
.driver-tip__choices input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
#custom-tip-field { margin-top: 12px; }
#tip-hint { color: var(--muted); font-size: 12px; }

.checkout-block--summary {
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  gap: 16px;
}
.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink);
}
.summary-row--muted {
  font-size: 13px;
  color: var(--muted);
}
.summary-row--total {
  font-size: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
  margin-top: 2px;
}
.summary-row--total strong {
  font-family: var(--display);
  font-size: 24px;
  color: var(--ink);
}

.payment-disclosure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  padding: 10px 12px;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}
.payment-disclosure svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Secure checkout primary button */
.btn-apple-pay {
  width: 100%;
  min-height: 52px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(179, 38, 28, 0.28);
  transition: all 0.18s ease;
}
.btn-apple-pay:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(179, 38, 28, 0.38);
}
.btn-apple-pay:active {
  transform: scale(0.99);
}
.btn-apple-pay[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* -------------------------------------------------------------- success -- */
.step--success { max-width: 620px; padding: clamp(24px, 5vw, 56px) 0; }
.step--success h1 { margin: 12px 0 16px; font-family: var(--display); font-size: clamp(30px, 4vw, 44px); }
.success__number { font-family: var(--display); font-size: 22px; color: var(--red); }
.success__ticket { margin: 20px 0; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.success__ticket div { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 14px; }
.success__ticket small { display: block; color: var(--muted); font-size: 12px; }
.success__copy { margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.success__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* -------------------------------------------------------- Cart Drawer -- */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s ease;
}
body.drawer-open .cart-drawer {
  pointer-events: auto;
  visibility: visible;
}
body.drawer-open {
  overflow: hidden;
}
.cart-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 23, 0.48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.drawer-open .cart-drawer__scrim {
  opacity: 1;
}
.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  box-shadow: -8px 0 36px rgba(28, 27, 23, 0.16);
  display: flex;
  flex-direction: column;
  transform: translateX(101%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
body.drawer-open .cart-drawer__panel {
  transform: translateX(0);
}
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.cart-drawer__head-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.cart-drawer__head-title h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
}
.cart-drawer__count {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.cart-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.14s ease;
}
.cart-drawer__close:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: scale(1.08);
}
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
}
.cart-drawer__empty {
  margin: auto 0;
  text-align: center;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.drawer-empty-icon {
  font-size: 48px;
  margin-bottom: 4px;
}
.cart-drawer__empty strong {
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink);
}
.cart-drawer__empty p {
  font-size: 14px;
  color: var(--muted);
  max-width: 260px;
  margin-bottom: 12px;
}
.cart-drawer__items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.drawer-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.drawer-item:hover {
  border-color: var(--ink);
  box-shadow: 0 4px 16px rgba(28, 27, 23, 0.06);
  transform: translateY(-1px);
}
.drawer-item__media {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #1c1b17;
  flex-shrink: 0;
  border: 1px solid var(--rule-soft);
}
.drawer-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drawer-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.drawer-item__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.drawer-item__title {
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.2;
}
.drawer-item:hover .drawer-item__title {
  color: var(--red);
}
.drawer-item__price {
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
.drawer-item__desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.drawer-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.cart-drawer__upsell {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
}
.cart-drawer__upsell-title {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.cart-drawer__foot {
  padding: 20px 24px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-drawer__subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink);
}
.cart-drawer__subtotal-row strong {
  font-family: var(--display);
  font-size: 22px;
  color: var(--red);
}
.cart-drawer__note {
  font-size: 12px;
  color: var(--muted);
  margin: -4px 0 0;
}
.cart-drawer__checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* Review and success steps centered container */
body[data-step="review"] .shell,
body[data-step="success"] .shell {
  max-width: 1140px;
  margin: 0 auto;
}

/* ---------------------------------------------------- mobile cart + fly -- */
.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: none;
  align-items: center; justify-content: space-between; gap: 14px;
  min-height: 58px; padding: 0 18px; border-radius: 4px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 6px 22px rgba(28, 27, 23, 0.22);
}
.cartbar__left { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.cartbar__left strong { font-size: 14px; }
.cartbar__left small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.cartbar strong:last-child { font-family: var(--display); font-size: 17px; }

.scrim { position: fixed; inset: 0; z-index: 46; background: rgba(28, 27, 23, 0.45); }
.fly {
  position: fixed; z-index: 60; width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); pointer-events: none; opacity: 0;
}
.fly[data-run="true"] { animation: fly 520ms var(--ease) forwards; }
@keyframes fly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--fly-dx), var(--fly-dy)) scale(0.35); }
}

/* ------------------------------------------- receipt slip add-on flight -- */
.flying-receipt-slip {
  box-shadow: 0 20px 48px rgba(28, 27, 23, 0.24), 0 4px 14px rgba(179, 38, 28, 0.18) !important;
  border-color: var(--ink) !important;
}

.bag-item--docking {
  opacity: 0 !important;
  transform: translateY(-8px);
}

.bag-item--fresh-added {
  animation: receiptItemArrive 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes receiptItemArrive {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
    background-color: rgba(179, 38, 28, 0.08);
  }
  40% {
    opacity: 1;
    transform: translateY(0) scale(1);
    background-color: rgba(179, 38, 28, 0.06);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    background-color: transparent;
  }
}

.price-bump-pulse {
  animation: pricePulse 0.48s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  display: inline-block;
}

@keyframes pricePulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.24); color: var(--red); }
  100% { transform: scale(1); }
}

.btn-bump-pulse {
  animation: btnPulse 0.48s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes btnPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 1080px) {
  .builder, .review { grid-template-columns: minmax(0, 1fr); }
  .builder__stage { position: static; }
  .pie__svg { max-width: 260px; }
}

@media (max-width: 900px) {
  .shell { padding-bottom: 96px; }
  .masthead__phone span { display: none; }
  .cart-drawer__panel { max-width: 100vw; width: 100%; }
  .item-row { grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "media body" "end end"; gap: 16px; }
  .item-row__media { grid-area: media; }
  .item-row__body { grid-area: body; }
  .item-row__end { grid-area: end; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .opt-grid--size { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .masthead { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: 12px; padding-right: 12px; gap: 8px; }
  .masthead__center { justify-content: flex-start; min-width: 0; }
  .masthead__back-left span { display: none; }
  .masthead__actions { gap: 4px; }
  .masthead__phone { min-width: 40px; justify-content: center; }
  .masthead__phone strong { display: none; }
  .masthead__phone svg { display: block; }
  .masthead__cart-btn { padding: 0 10px; min-height: 38px; gap: 6px; }
  .masthead__cart-info strong { display: none; }
  .brand img { width: 38px; }
  .brand strong { font-size: 14px; }
  .brand small { display: none; }
}

@media (max-width: 360px) {
  .brand span { display: none; }
}

@media (max-width: 420px) {
  .topping-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-head h1 { font-size: 28px; }
  .builder__submit { flex-direction: column; align-items: stretch; }
  .builder__submit .btn { width: 100%; }
}

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

/* rows without matched photography keep the same rhythm, minus the media column */
.item-row--nomedia { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 900px) {
  .item-row--nomedia { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body" "end"; }
}
