:root {
  color-scheme: light;
  --orange: #f47b20;
  --orange-dark: #d85c08;
  --ink: #181512;
  --muted: #716a64;
  --line: #e9e4de;
  --soft: #f7f4f0;
  --success: #14965b;
  --white: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--soft);
  color: var(--ink);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--soft); }

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 90% 0%, rgba(244,123,32,.13), transparent 32rem),
    var(--soft);
}

button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.app-shell {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 18px calc(108px + env(safe-area-inset-bottom));
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px 13px 13px 4px;
  background: var(--orange);
  color: var(--white);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -.04em;
  box-shadow: 0 8px 20px rgba(216,92,8,.22);
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 17px; letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); font-size: 12px; }

.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.74);
  font-size: 12px;
  font-weight: 700;
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #aaa29a; }
.status-pill.active i { background: var(--success); box-shadow: 0 0 0 4px rgba(20,150,91,.12); }
.status-pill.error i { background: #d13d35; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.install-button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 10px; border: 1px solid rgba(244,123,32,.35); border-radius: 10px; background: rgba(244,123,32,.11); color: var(--orange-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }
.install-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.install-button:hover, .install-button:focus-visible, .install-button.ready { background: var(--orange); border-color: var(--orange); color: #fff; }
.install-button:disabled { opacity: .7; cursor: default; }
@media (max-width: 420px) { .install-button span { display: none; } .install-button { padding: 9px; } }

.intro { padding: 18px 2px 20px; }
.eyebrow { margin: 0 0 8px; color: var(--orange-dark); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.intro h1 { margin: 0; font-size: clamp(31px, 9vw, 44px); line-height: 1.02; letter-spacing: -.055em; }
.intro > p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.quick-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.quick-steps span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.quick-steps b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff0e4;
  color: var(--orange-dark);
  font-size: 12px;
}

.scanner-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(55,39,25,.09);
}

.camera-viewport {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  overflow: hidden;
  background: #141312;
}
.camera-viewport video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 1; transition: opacity .25s ease; }
.camera-viewport.idle video { opacity: 0; }
.camera-viewport.detected::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20,150,91,.19);
  pointer-events: none;
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at 50% 40%, #33302d 0, #171513 68%);
  transition: opacity .22s ease, visibility .22s ease;
}
.camera-viewport:not(.idle) .camera-placeholder { opacity: 0; visibility: hidden; }
.camera-placeholder strong { font-size: 17px; }
.camera-placeholder small { color: #aaa39d; font-size: 13px; }

.qr-glyph { width: 56px; height: 56px; position: relative; margin-bottom: 8px; }
.qr-glyph span { position: absolute; width: 22px; height: 22px; border: 5px solid var(--orange); border-radius: 3px; }
.qr-glyph span:nth-child(1) { left: 0; top: 0; }
.qr-glyph span:nth-child(2) { right: 0; top: 0; }
.qr-glyph span:nth-child(3) { left: 0; bottom: 0; }

.scan-frame {
  position: absolute;
  z-index: 3;
  left: 10%;
  top: 19%;
  width: 80%;
  height: 62%;
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(244,123,32,.52);
  border-radius: 15px;
  box-shadow: 0 0 0 100vmax rgba(8,7,6,.43);
  transition: opacity .2s ease, box-shadow .2s ease;
}
.camera-viewport:not(.idle) .scan-frame { opacity: 1; }
.camera-viewport.adjusting .scan-frame {
  pointer-events: auto;
  touch-action: none;
  cursor: move;
  border-style: dashed;
  box-shadow: 0 0 0 100vmax rgba(8,7,6,.58);
}
.camera-viewport.adjusting .scan-frame:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}
.corner { position: absolute; width: 38px; height: 38px; border-color: var(--orange); border-style: solid; filter: drop-shadow(0 2px 6px rgba(0,0,0,.28)); }
.corner.tl { top: 0; left: 0; border-width: 5px 0 0 5px; border-radius: 14px 0 0 0; }
.corner.tr { top: 0; right: 0; border-width: 5px 5px 0 0; border-radius: 0 14px 0 0; }
.corner.bl { bottom: 0; left: 0; border-width: 0 0 5px 5px; border-radius: 0 0 0 14px; }
.corner.br { right: 0; bottom: 0; border-width: 0 5px 5px 0; border-radius: 0 0 14px 0; }
.scan-line { position: absolute; left: 7%; right: 7%; top: 12%; height: 2px; background: linear-gradient(90deg, transparent, var(--orange) 16%, #ffbf72 50%, var(--orange) 84%, transparent); box-shadow: 0 0 12px var(--orange); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 12%; opacity: .45; } 50% { top: 88%; opacity: 1; } }
.camera-viewport.detected .scan-line { animation: none; opacity: 0; }
.frame-caption {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(244,123,32,.92);
  color: #17120e;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .09em;
  white-space: nowrap;
}
.resize-grip {
  position: absolute;
  right: -14px;
  bottom: -14px;
  display: none;
  width: 30px;
  height: 30px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 3px 14px rgba(0,0,0,.4);
  cursor: nwse-resize;
}
.resize-grip::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-right: 2px solid #2b180c;
  border-bottom: 2px solid #2b180c;
}
.camera-viewport.adjusting .resize-grip { display: block; }
.camera-viewport.adjusting .scan-line { animation-play-state: paused; }
.scan-scope-note {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17,17,17,.76);
  color: white;
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.camera-viewport:not(.idle) .scan-scope-note { opacity: 1; }
.camera-viewport.adjusting .scan-scope-note { opacity: 0; }
.scan-scope-note svg { flex: 0 0 auto; width: 15px; fill: var(--orange); }

.scan-feedback {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 12px);
  opacity: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17,17,17,.82);
  color: white;
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: .2s ease;
}
.scan-feedback.show { opacity: 1; transform: translate(-50%, 0); }

.controls { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.primary-button, .add-button {
  min-height: 52px;
  border: 0;
  border-radius: 15px;
  background: var(--orange);
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(216,92,8,.2);
}
.primary-button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; }
.primary-button svg { width: 22px; fill: currentColor; }
.primary-button.stop { background: #282522; box-shadow: none; }
.primary-button:disabled { opacity: .58; cursor: wait; }
.icon-button { flex: 0 0 52px; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 15px; background: var(--soft); color: var(--ink); }
.icon-button[aria-pressed="true"] { color: var(--orange-dark); background: #fff1e7; border-color: #ffc596; }
.icon-button svg { width: 23px; fill: currentColor; }
.hidden { display: none !important; }

.scanner-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 10px;
}
.tool-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 11px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.tool-button svg { width: 18px; fill: currentColor; }
.tool-button.active {
  border-color: #ffb474;
  background: #fff0e4;
  color: var(--orange-dark);
}
.tool-button:disabled { opacity: .46; cursor: not-allowed; }
.format-status {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.frame-settings {
  margin: 0 14px 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--soft);
  animation: reveal .2s ease both;
}
@keyframes reveal { from { opacity: 0; transform: translateY(-5px); } }
.frame-settings-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.frame-settings-heading > div { display: grid; gap: 3px; }
.frame-settings-heading strong { font-size: 14px; }
.frame-settings-heading small { color: var(--muted); font-size: 12px; }
.frame-settings-heading button {
  border: 0;
  padding: 4px 2px;
  background: transparent;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 900;
}
.frame-settings label {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.frame-settings label > span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.frame-settings output { color: var(--ink); font-variant-numeric: tabular-nums; }
.frame-settings input[type="range"] {
  width: 100%;
  min-height: 30px;
  margin: 0;
  accent-color: var(--orange);
}
.frame-setting-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.frame-setting-actions button {
  flex: 1;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.alternate-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 18px 17px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 8px 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 750; cursor: pointer; }
.text-button svg { width: 18px; fill: currentColor; }

.product-panel, .recent-section {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 34px rgba(55,39,25,.07);
}
.product-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  animation: rise .3s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.success-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e8f7ef; color: var(--success); }
.success-mark svg { width: 26px; fill: currentColor; }
.product-panel.not-found .success-mark { background: #fff0e4; color: var(--orange-dark); }
.product-panel.not-found .success-mark svg { display: none; }
.product-panel.not-found .success-mark::before { content: "?"; font-size: 22px; font-weight: 950; }
.product-panel.not-found .product-copy p { color: var(--orange-dark); }
.product-panel.not-found .product-price { color: var(--muted); font-size: 14px; }
.product-copy p { margin: 1px 0 4px; color: var(--success); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.product-copy h2 { margin: 0; font-size: 20px; line-height: 1.15; letter-spacing: -.025em; }
.product-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; word-break: break-all; }
.product-price { display: block; margin-top: 7px; color: var(--orange-dark); font-size: 18px; }
.quantity-block { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.quantity-block > span { font-size: 14px; font-weight: 800; }
.stepper { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); }
.stepper button { width: 44px; height: 42px; border: 0; background: transparent; color: var(--ink); font-size: 25px; }
.stepper output { min-width: 38px; text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; }
.add-button { grid-column: 1 / -1; font-size: 15px; }
.scan-again { grid-column: 1 / -1; border: 0; padding: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 800; }

.recent-section { padding: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.section-heading button { border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.recent-section ul { list-style: none; margin: 0; padding: 0; }
.recent-section li { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid var(--line); }
.recent-section li:first-child { border-top: 0; }
.recent-badge { display: grid; place-items: center; min-width: 38px; height: 34px; padding: 0 6px; border-radius: 10px; background: #fff0e4; color: var(--orange-dark); font-size: 11px; font-weight: 950; }
.recent-meta { min-width: 0; flex: 1; }
.recent-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.recent-meta small { color: var(--muted); font-size: 12px; }
.recent-qty { font-size: 14px; font-weight: 900; }

.cart-bar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 28px), 492px);
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 20px;
  padding: 11px 16px;
  background: #1f1c19;
  color: white;
  text-align: left;
  box-shadow: 0 18px 44px rgba(0,0,0,.3);
}
.cart-icon { position: relative; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: var(--orange); }
.cart-icon svg { width: 23px; fill: currentColor; }
.cart-icon b { position: absolute; right: -6px; top: -7px; min-width: 20px; height: 20px; display: grid; place-items: center; border: 2px solid #1f1c19; border-radius: 999px; background: white; color: var(--ink); font-size: 10px; }
.cart-bar > span:nth-child(2) { display: grid; gap: 2px; }
.cart-bar strong { font-size: 15px; }
.cart-bar small { color: #c9c1ba; font-size: 12px; }
.chevron { width: 22px; fill: currentColor; }

dialog { width: min(calc(100% - 30px), 430px); border: 0; border-radius: 24px; padding: 26px; color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.32); }
dialog::backdrop { background: rgba(20,16,12,.66); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 24px; }
.test-dialog h2, .cart-dialog h2 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.test-dialog > p:not(.eyebrow) { margin: 8px 30px 18px 0; color: var(--muted); line-height: 1.45; }
.test-dialog img { display: block; width: min(100%, 280px); aspect-ratio: 1; margin: 0 auto 12px; border-radius: 14px; }
.test-dialog code { display: block; padding: 10px; border-radius: 10px; background: var(--soft); text-align: center; color: var(--orange-dark); font-weight: 800; }
.cart-dialog { max-height: min(80dvh, 620px); overflow: auto; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item strong { font-size: 14px; }
.cart-item small { color: var(--muted); }
.cart-item b { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 16px; }
.cart-empty { padding: 28px 0; color: var(--muted); text-align: center; }
.cart-total { display: flex; justify-content: space-between; padding-top: 18px; font-size: 16px; }
.cart-total strong { font-size: 22px; }
.cart-totals { margin-top: 4px; }
.cart-total.amount { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.cart-total.amount strong { color: var(--orange-dark); }

.toast {
  position: fixed;
  z-index: 50;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  transform: translate(-50%, -90px);
  width: min(calc(100% - 30px), 430px);
  padding: 14px 16px;
  border-radius: 14px;
  background: #1f1c19;
  color: white;
  box-shadow: 0 12px 36px rgba(0,0,0,.24);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
  transition: transform .25s ease;
}
.toast.show { transform: translate(-50%, 0); }

@media (min-width: 720px) {
  .app-shell { padding-top: 20px; }
  .camera-viewport { min-height: 350px; }
}

@media (max-width: 390px) {
  .app-shell { padding-left: 12px; padding-right: 12px; }
  .quick-steps { gap: 6px 10px; }
  .scan-scope-note { font-size: 11px; }
  .alternate-row { align-items: flex-start; flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --ink: #f7f4f0; --muted: #b7aea7; --line: #3b3631; --soft: #171513; --white: #24201d; }
  html, body { background: #171513; }
  body { background: radial-gradient(circle at 90% 0%, rgba(244,123,32,.15), transparent 30rem), #171513; }
  .status-pill { background: rgba(36,32,29,.82); }
  .product-panel, .recent-section, .scanner-card, dialog { background: #24201d; }
  .success-mark { background: rgba(20,150,91,.16); }
  .quick-steps b, .recent-badge, .icon-button[aria-pressed="true"], .tool-button.active, .product-panel.not-found .success-mark { background: rgba(244,123,32,.14); }
  .frame-settings { background: #1b1816; }
  .frame-setting-actions button { background: #24201d; }
}


[hidden] { display: none !important; }
.reference-search { margin: 0 0 18px; }
.reference-search label { display: block; font-size: 16px; font-weight: 750; margin-bottom: 9px; }
.reference-field { display: flex; border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.reference-field:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.reference-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 14px 12px; font-size: 16px; }
.reference-field button { flex: 0 0 52px; border: 0; background: var(--orange); color: #181512; display: grid; place-items: center; }
.reference-field svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; }
#referenceStatus { font-size: 14px; line-height: 1.45; color: var(--muted); margin: 9px 2px 0; }
.reference-results { list-style: none; margin: 10px 0 0; padding: 0; max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.reference-results li + li { border-top: 1px solid var(--line); }
.reference-results button { width: 100%; display: grid; gap: 5px; padding: 13px 15px; text-align: left; border: 0; background: transparent; color: var(--ink); overflow-wrap: anywhere; }
.reference-results button:hover, .reference-results button:focus-visible { background: var(--soft); }
.reference-results strong { font-size: 16px; color: var(--orange-dark); }
.reference-results span { font-size: 16px; line-height: 1.35; }
.reference-results small { font-size: 14px; font-weight: 700; }
.product-media { grid-column: 1 / -1; text-align: center; }
.product-media button { border: 1px solid var(--line); background: #fff; color: #514a44; border-radius: 14px; padding: 10px; max-width: 100%; }
.product-media img { display: block; object-fit: contain; margin: auto; }
.product-media span { display: block; font-size: 14px; margin-top: 8px; }
.product-media p { color: var(--muted); font-size: 14px; margin: 8px 0; }
.product-image-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: max(60px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; background: #141414; color: #fff; }
.product-image-dialog[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.product-image-dialog #expandedImageButton { border: 0; padding: 0; background: #fff; width: min(100%, 720px); min-height: 0; flex: 1; max-height: 78dvh; cursor: zoom-out; }
.product-image-dialog img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-image-dialog p { font-size: 16px; text-align: center; }
.product-image-dialog .dialog-close { color: #fff; background: #333; top: max(12px, env(safe-area-inset-top)); }
body:has(.product-image-dialog[open]) { overflow: hidden; }
#addButton:disabled { opacity: .5; cursor: not-allowed; }
