:root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17271e;
  background: #f4f6f2;
  font-synthesis: none;
  --green: #225537;
  --forest: #173b27;
  --muted: #506357;
  --line: #dce4da;
  --soft: #e9f0e7;
  --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .57; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #527baf; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.055em; line-height: 1.05; overflow-wrap: anywhere; }
h2 { font-size: 1.24rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; line-height: 1.25; }
.top { background: var(--forest); color: #fff; }
.top-inner { margin: auto; max-width: 1200px; padding: 12px 18px; display: flex; gap: 13px; align-items: center; }
.brand { background: #fff; display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 8px; }
.brand img { display: block; }
.top-label { font-size: .69rem; letter-spacing: .16em; font-weight: 750; color: #dceadf; }
.settings-link { margin-left: auto; padding: 12px 0 12px 12px; font-size: .9rem; font-weight: 650; }
.shell { margin: 0 auto; max-width: 1200px; padding: 20px 16px 38px; }
.event-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.tabs { display: flex; gap: 4px; background: #e7ede5; padding: 4px; border-radius: 12px; width: 100%; }
.tab { min-height: 44px; flex: 1; border: 0; background: none; border-radius: 9px; font-weight: 750; color: var(--muted); padding: 0 18px; white-space: nowrap; }
.tab[aria-pressed="true"] { background: #fff; color: var(--forest); box-shadow: 0 1px 4px #1d422218; }
.layout { display: grid; align-items: start; gap: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.soft-label { color: var(--muted); font-size: .82rem; }
.products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.product { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.product img { display: block; width: 100%; height: auto; aspect-ratio: 1.46; object-fit: cover; background: var(--soft); }
.product-info { display: grid; padding: 10px; gap: 7px; }
.product-name { display: flex; flex-wrap: wrap; align-content: start; column-gap: 6px; min-height: 2.2em; }
.variant { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.prices { min-height: 2.43em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; font-variant-numeric: tabular-nums; }
.prices strong { color: var(--green); font-size: 1.13rem; }
.prices del { color: var(--muted); font-size: .77rem; }
.button { background: var(--green); color: #fff; min-height: 50px; padding: 11px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; font-weight: 750; text-align: center; }
.button.secondary { background: var(--soft); color: var(--forest); }
.button.outline { background: #fff; color: var(--forest); border-color: var(--line); }
.button.small { min-height: 44px; padding: 8px 12px; font-size: .86rem; }
.product .button { width: 100%; min-height: 47px; }
.plus { font-size: 1.24em; line-height: 1; }
.panel, .notice { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 17px; }
.notice { color: var(--muted); line-height: 1.5; }
.notice a { text-decoration: underline; }
.empty { background: #f4f7f3; color: var(--muted); border-radius: 11px; padding: 17px; line-height: 1.5; }
.cart { position: sticky; top: 18px; }
.cart-list { display: grid; }
.cart-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line small { display: block; color: var(--muted); margin-top: 4px; }
.stepper { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.stepper button { width: 44px; height: 44px; padding: 0; background: var(--soft); border: 0; border-radius: 9px; font-size: 1.3rem; color: var(--forest); }
.stepper span { text-align: center; min-width: 25px; font-variant-numeric: tabular-nums; }
.total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 17px 0 13px; font-weight: 700; }
.total strong { font-size: 1.5rem; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.full { width: 100%; }
.event-list { display: grid; gap: 12px; max-width: 520px; }
.event-choice { min-height: 60px; justify-content: space-between; text-align: left; overflow-wrap: anywhere; }
.mobile-cart { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: fixed; bottom: 0; right: 0; left: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -3px 18px #1e3b2311; z-index: 2; }
.mobile-cart .button { min-width: min(49%, 180px); }
.mobile-cart strong { font-size: 1.15rem; display: block; }
.mobile-cart small { color: var(--muted); }
.has-cart { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.desktop-cart { display: none; }
dialog { color: inherit; width: min(calc(100% - 20px), 510px); max-height: calc(100% - 26px); overflow: auto; margin: auto; padding: 18px; border: 1px solid var(--line); border-radius: 18px; }
dialog::backdrop { background: #102219a8; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.qr-image { width: min(100%, 280px); height: min(58vw, 280px); object-fit: contain; padding: 8px; background: #fff; display: block; margin: 12px auto; }
.payment-total { display: block; text-align: center; font-size: 2.15rem; font-weight: 800; letter-spacing: -.05em; }
.payment-note { color: var(--muted); font-size: .91rem; line-height: 1.45; margin-bottom: 12px; }
.check { display: flex; align-items: center; min-height: 48px; gap: 10px; padding: 8px; margin: 6px 0 12px; font-weight: 650; }
.check input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--green); }
.error { color: #962b23; background: #fff0ed; border-radius: 8px; padding: 10px; margin: 8px 0; line-height: 1.45; }
.success { color: var(--forest); background: var(--soft); border-radius: 8px; padding: 10px; margin: 8px 0; line-height: 1.45; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 0 0 16px; }
.metric { background: var(--soft); border-radius: 12px; padding: 11px 9px; }
.metric span { display: block; color: var(--muted); font-size: .72rem; }
.metric strong { display: block; font-size: clamp(.94rem, 3.4vw, 1.4rem); letter-spacing: -.04em; overflow-wrap: anywhere; margin-top: 4px; }
.sale { padding: 12px 0; border-top: 1px solid var(--line); }
.sale-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-weight: 750; }
.sale-detail { display: block; font-size: .86rem; color: var(--muted); line-height: 1.55; }
.settings { max-width: 720px; }
.settings > h1 { margin-bottom: 18px; }
.fields, .settings form { display: grid; gap: 13px; }
.fields { margin-top: 12px; }
.settings section { margin-bottom: 13px; }
.settings label { display: grid; gap: 6px; font-weight: 650; }
.settings input:not([type=checkbox]) { width: 100%; min-height: 47px; border: 1px solid #b8c9bc; border-radius: 9px; padding: 10px; color: inherit; background: #fff; }
.settings .check { display: flex; }

.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.settings-details { border-top: 1px solid var(--line); padding: 12px 0; }
.settings-details summary { min-height: 44px; padding: 11px 0; cursor: pointer; font-weight: 750; }
.settings-qr { width: 115px; height: 115px; object-fit: contain; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 620px) {
  .shell { padding: 27px 24px 42px; }
  .top-inner { padding: 12px 24px; }
  .tabs { width: auto; }
  .products { gap: 16px; }
  .product-info { padding: 14px; }
  .prices { min-height: 0; }
  .has-cart { padding-bottom: 92px; }
  .metrics { gap: 14px; }
  .metric { padding: 15px; }
}
@media (min-width: 850px) {
  .layout { grid-template-columns: minmax(0, 1fr) 325px; }
  .desktop-cart { display: block; }
  .mobile-cart { display: none; }
  .has-cart { padding-bottom: 42px; }
  .product-info { gap: 9px; }
  .product img { aspect-ratio: 1.9; }
}
