:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #193b31;
  background: #f4f6f2;
  --dock-height: 260px;
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible { outline: 3px solid #dbad56; outline-offset: 3px; }
button:disabled { cursor: default; opacity: .5; }
[hidden] { display: none !important; }
main { max-width: 560px; margin: auto; padding: 22px 20px calc(var(--dock-height) + 24px); }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
h1 { font-size: 22px; letter-spacing: -.6px; margin: 0; }
.brand { font-size: 13px; color: #7b8e81; }
.mode-switch { display: flex; gap: 5px; border-radius: 14px; background: #e7ede6; padding: 5px; margin-bottom: 24px; }
.mode-switch button { flex: 1; min-height: 46px; background: transparent; border-radius: 10px; color: #6c8071; font-size: 15px; font-weight: 600; }
.mode-switch button[aria-pressed="true"] { background: white; color: #165c3e; box-shadow: 0 2px 8px #163b3010; }
#cart-badge { display: inline-block; min-width: 22px; padding: 2px 6px; border-radius: 20px; background: #e4eee5; font-size: 11px; margin-left: 3px; }
.empty { padding: 56px 8px; text-align: center; color: #8b998d; }
.scan-symbol { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 20px; border: 1px solid #cfddcf; border-radius: 18px; font-size: 34px; color: #8da78f; }
.empty h2 { font-size: 16px; font-weight: 500; color: #657c69; margin: 0; }
.empty p { font-size: 12px; margin: 10px 0; }
.product-card { background: #fff; border: 1px solid #e0e8de; border-radius: 24px; overflow: hidden; margin-bottom: 18px; padding: 26px 26px 0; box-shadow: 0 12px 32px #254a3210; }
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.product-label { color: #698c71; font-size: 12px; letter-spacing: 2px; }
.product-index { font-size: 13px; color: #a9b5a8; font-variant-numeric: tabular-nums; }
.product-card h2 { font-size: 25px; font-weight: 600; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.hero-price { color: #11633e; font-size: clamp(36px, 10vw, 62px); font-weight: 700; letter-spacing: -2px; line-height: 1.3; margin: 28px 0 38px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.hero-price span { font-size: 25px; font-weight: 500; margin-right: 9px; letter-spacing: 0; }
.single-add-button { display: block; width: 100%; min-height: 50px; margin: -12px 0 24px; padding: 12px 16px; border: 1px solid #cdddcc; border-radius: 12px; background: #eef5e9; color: #19623d; font-size: 16px; font-weight: 600; }
.single-add-button:active { background: #dfeeda; }
.product-code { border-top: 1px dashed #d4dfd0; margin: 0 -26px; padding: 20px 26px; background: #fafcf8; color: #8a9a88; font-size: 12px; letter-spacing: .5px; overflow-wrap: anywhere; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.section-heading h2 { font-size: 15px; margin: 0; font-weight: 600; }
#cart-lines { color: #8a9988; font-size: 12px; font-weight: 400; margin-left: 6px; }
.text-button { padding: 8px; min-height: 40px; background: transparent; color: #7c8f7d; font-size: 12px; }
.cart-item { padding: 18px; margin-bottom: 10px; background: white; border-radius: 17px; border: 1px solid #e4ebe0; }
.cart-item-heading { display: flex; align-items: flex-start; gap: 9px; }
.item-number { color: #9eae9b; font-size: 11px; padding-top: 5px; font-variant-numeric: tabular-nums; }
.cart-item h3 { flex: 1; font-size: 16px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.remove-button { margin: -7px -8px 0 0; flex-shrink: 0; }
.item-code { font-size: 11px; color: #9caa99; margin: 5px 0 16px 23px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.line-price { display: flex; flex-direction: column; gap: 3px; }
.line-price strong { color: #17643f; font-size: 20px; overflow-wrap: anywhere; }
.line-price small { font-size: 11px; color: #92a08d; }
.stepper { display: flex; align-items: center; background: #f3f6f0; border-radius: 10px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; background: transparent; color: #2f6540; font-size: 23px; }
.quantity { min-width: 34px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.choices { padding: 16px; background: #e9f1e4; border: 1px solid #cddfc7; border-radius: 16px; margin-bottom: 18px; }
.choice-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #d5e2cf; }
.item-info { flex: 1; min-width: 0; }
.item-info h3 { margin: 0 0 7px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.unit-price { font-size: 18px; color: #23633e; }
.add-button { background: #22643e; color: white; padding: 10px 15px; border-radius: 9px; min-height: 44px; flex-shrink: 0; }
.dock { position: fixed; bottom: 0; left: 0; right: 0; background: #fffffffa; border-top: 1px solid #e2e9dd; z-index: 10; box-shadow: 0 -8px 32px #243d2707; }
.dock-inner { max-width: 560px; margin: auto; padding: 12px 20px calc(8px + env(safe-area-inset-bottom)); }
.cart-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 10px; }
.cart-summary > div { color: #7d8d76; font-size: 12px; }
.cart-summary strong { color: #175d36; font-size: 30px; letter-spacing: -.5px; overflow-wrap: anywhere; text-align: right; }
.cart-summary small { font-size: 18px; margin-right: 5px; }
.status { font-size: 12px; line-height: 1.5; margin: 0 0 10px; text-align: center; color: #819179; overflow-wrap: anywhere; }
.scan-button { width: 100%; min-height: 76px; border-radius: 18px; background: #19623d; color: #fff; font-weight: 600; font-size: 20px; }
.retry { display: block; margin: 6px auto -6px; color: #19623d; }
.service-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #e7ece3; }
.service-nav a { display: grid; justify-items: center; gap: 3px; padding: 6px 3px; border-radius: 11px; color: #728174; font-size: 11px; font-weight: 650; text-decoration: none; }
.service-nav .nav-icon { font-size: 16px; line-height: 1; }
.service-nav a.active { color: #165c3e; background: #e9f2e7; }
@media (max-width: 360px) { main { padding-left: 14px; padding-right: 14px; } .dock-inner { padding-left: 14px; padding-right: 14px; } .product-card { padding: 22px 20px 0; } .product-code { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; } .product-card h2 { font-size: 22px; } }
