:root {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  color: #252025;
  background: #e80055;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: linear-gradient(135deg, #fbac70 0%, #f46870 49%, #e80055 100%)
    fixed;
  min-height: 100vh;
}
header {
  text-align: center;
  padding: 32px 16px 24px;
}
.brand {
  height: auto;
}
.intro {
  margin: 16px 0 0;
  line-height: 1.6;
  font-size: 16px;
  color: #662d3d;
}
main {
  padding: 0;
}
h2 {
  color: #fff;
  font-size: 21px;
  margin: 0 0 10px;
}
section {
  margin-bottom: 24px;
}
section > h2 {
  padding-inline: 12px;
}
.pizza-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 12px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pizza-row::-webkit-scrollbar {
  display: none;
}
.card {
  font: inherit;
  color: inherit;
  flex: 0 0 174px;
  width: 174px;
  padding: 0;
  border: 1px solid white;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 15px #b72b4830;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s;
}
.card:hover {
  transform: translateY(-3px);
}
.card:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #64203f;
  outline-offset: 3px;
}
.pizza {
  width: 172px;
  height: 172px;
  object-fit: contain;
}
.product-name {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  display: block;
  padding: 7px 8px;
  min-height: 45px;
}
.prices {
  display: block;
  padding: 0 8px;
  min-height: 74px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding: 3px 0;
}
.price-row img {
  max-width: 59px;
  height: 16px;
  object-fit: contain;
  object-position: left;
}
.price-row > span {
  text-align: right;
}
.price-row b {
  font-size: 16px;
}
.stale-price {
  color: #929292;
}
.empty {
  font-size: 12px;
  color: #84767c;
}
footer {
  padding: 12px 20px 32px;
  text-align: center;
  color: #fff;
  font-size: 12px;
  line-height: 1.7;
}
body:has(dialog[open]) { overflow: hidden; }
dialog {
  border: 0;
  border-radius: 24px;
  padding: 0;
  width: min(460px, calc(100% - 32px));
  max-height: 92dvh;
  overflow: hidden;
  background: #fffdfc;
  box-shadow: 0 25px 100px #4e162650;
  color: #30252a;
}
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #38101b80; backdrop-filter: blur(5px); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 0; flex-shrink: 0; }
.sheet-kicker { font-size: 10px; font-weight: 800; letter-spacing: 1.7px; color: #a84060; }
.close { background: #f5eeef; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 26px; color: #5e4650; cursor: pointer; }
.sheet-content { overflow-y: auto; min-height: 0; padding: 0 20px 4px; }
.dialog-heading { display: flex; align-items: center; gap: 16px; padding: 10px 0 22px; }
.dialog-heading img { width: 80px; height: 80px; object-fit: contain; border-radius: 12px; background: white; }
.dialog-heading h2 { color: #30252a; font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
.dialog-heading p { font-size: 12px; color: #837079; margin: 0; }
#price-form { display: block; }
#price-form label { display: block; font-size: 13px; font-weight: 750; margin-bottom: 10px; }
#store-prices { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 14px; scrollbar-width: none; }
#store-prices::-webkit-scrollbar { display: none; }
.store-choice { flex: 0 0 98px; min-height: 80px; padding: 12px 7px 10px; border: 1px solid #e8dfe1; border-radius: 13px; background: white; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.store-choice[aria-pressed="true"] { border-color: #c52e5d; background: #fff0f4; box-shadow: inset 0 0 0 1px #c52e5d; }
.store-choice img { width: 65px; height: 23px; object-fit: contain; }
.store-price { font-size: 14px; font-weight: 750; }
.price-editor { background: #f7f2f1; border: 1px solid #eee5e5; border-radius: 16px; padding: 16px; margin-top: 4px; }
.price-input { display: flex; align-items: baseline; gap: 10px; }
.price-input input { width: 100%; min-width: 0; font: inherit; font-size: 38px; font-weight: 750; letter-spacing: -1px; border: 0; border-bottom: 1px solid #d8c6cc; border-radius: 0; padding: 0 0 6px; background: transparent; color: #30252a; }
.price-input input::placeholder { color: #bcaeb3; }
.price-input span { color: #8c7780; font-size: 20px; }
#price-context { font-size: 11px; color: #87717b; margin: 10px 0 0; }
.help { font-size: 12px; color: #76636d; line-height: 1.5; margin: 12px 0; }
.sheet-actions { flex-shrink: 0; padding: 14px 20px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid #eee5e5; background: #fffdfc; }
.sheet-actions > span { display: block; text-align: center; font-size: 10px; color: #927b85; margin-top: 10px; }
.save { width: 100%; min-height: 52px; border: 0; background: #c52e5d; color: white; border-radius: 13px; padding: 14px; font: inherit; font-weight: 750; cursor: pointer; }
.save:disabled { opacity: 0.5; cursor: wait; }
#form-status { font-size: 12px; color: #b21b45; margin: 0 0 10px; }
#form-status:empty { display: none; }
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px;
  background: #fff;
  color: #67203b;
  padding: 14px 22px;
  box-shadow: 0 6px 25px #59132c44;
  font-size: 14px;
  display: none;
  z-index: 5;
}
#toast.visible {
  display: block;
}
@media (max-width: 500px) {
  header { padding-top: max(24px, env(safe-area-inset-top)); }
  dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: calc(100dvh - max(12px, env(safe-area-inset-top))); }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Alternative expanded-card editor. Bottom-sheet styles above are retained. */
dialog.zoom-dialog { width: min(420px, calc(100% - 24px)); max-width: 420px; height: min(820px, 94dvh); max-height: 94dvh; margin: auto; border: 1px solid white; border-radius: 12px; background: white; }
.zoom-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f6f2f3ee; color: #5e4650; font-size: 26px; cursor: pointer; }
.zoom-content { overflow-y: auto; min-height: 0; flex: 1; padding: 12px 16px 10px; scrollbar-width: none; }
.zoom-content::-webkit-scrollbar { display: none; }
.zoom-pizza { display: block; width: 210px; max-width: 70%; height: 210px; object-fit: contain; margin: 0 auto 10px; border-radius: 8px; }
#zoom-title { font-size: 17px; line-height: 1.35; color: #252025; margin: 0 0 5px; }
.zoom-hint { font-size: 12px; color: #917d85; margin: 0 0 12px; }
.inline-price { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 9px 0; border-top: 1px solid #f0e9ec; }
.inline-brand { flex: 1; min-width: 0; }
.inline-brand img { width: 76px; max-width: 100%; height: 25px; object-fit: contain; object-position: left; }
.inline-brand > span { display: block; font-size: 9px; color: #86747c; margin-top: 3px; }
.inline-field { width: 104px; flex-shrink: 0; }
.inline-field input { font: inherit; font-size: 20px; font-weight: 750; width: 100%; text-align: right; color: #252025; background: #faf7f8; border: 1px solid #eee5e8; border-radius: 7px; padding: 7px 8px; }
.inline-field input.stale-price { color: #929292; }
.inline-field input:focus { color: #252025; }
.inline-field input::placeholder { font-size: 14px; font-weight: 400; color: #a08e96; }
.inline-field small { display: block; text-align: right; font-size: 9px; color: #96858c; margin-top: 4px; }
.inline-save { min-width: 67px; min-height: 44px; padding: 8px 6px; border: 1px solid #eed2dc; border-radius: 8px; background: #fff0f4; color: #ac2851; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.inline-save.confirm, .inline-save.saved { color: #39704d; border-color: #d2e5d8; background: #eef8f1; }
.inline-save:disabled { opacity: .45; cursor: default; }
.inline-save.saved:disabled { opacity: 1; }
.zoom-note { font-size: 11px; color: #96858c; text-align: center; line-height: 1.5; margin: 15px 0 4px; }
#zoom-status { flex-shrink: 0; margin: 0; padding: 10px 16px; font-size: 12px; color: #9b2850; border-top: 1px solid #f0e9ec; }
#zoom-status:empty { display: none; }

.zoom-close:focus:not(:focus-visible) { outline: none; }
.zoom-close[autofocus]:focus { outline: none; }
.zoom-close:focus-visible { outline: none; background: #eedde3; }
