:root {
  color-scheme: light;
  --ink:#18382f; --muted:#56695f; --line:#d7ded4; --jade:#205944; --pale:#edf5eb;
  font-family:"Microsoft JhengHei","PingFang TC",system-ui,sans-serif; color:var(--ink);
  background:#f4f3eb; line-height:1.55;
}
* { box-sizing:border-box }
body { margin:0 }
[hidden] { display:none !important }
button,input { font:inherit }
button { cursor:pointer; touch-action:manipulation }
button:disabled { cursor:default }
button:focus-visible,a:focus-visible,input:focus-visible { outline:3px solid #ae742e; outline-offset:3px }
.hero { position:relative; isolation:isolate; overflow:hidden; background:#193d34; color:#fffcf1; border-bottom:4px solid #b9a16e }
.hero::before { content:""; position:absolute; inset:0 0 0 34%; z-index:-1;
  background:linear-gradient(90deg,#193d34,transparent 58%),linear-gradient(0deg,#143c3180,#21423824),url('/pay/mountains.png') center 44% / cover no-repeat }
.hero-inner,.layout { width:min(100%,1056px); padding-inline:26px; margin:auto }
.hero-inner { padding-block:30px 31px }
.identity { margin:0 0 4px; color:#ead5a8; font:bold 18px/1.45 "Noto Serif TC","PMingLiU",serif; letter-spacing:.18em }
h1,h2 { font-family:"Noto Serif TC","Songti TC","PMingLiU",serif; margin:0 }
h1 { font-size:clamp(36px,5vw,58px); letter-spacing:.06em; line-height:1.16 }
h2 { font-size:24px; line-height:1.4; margin-bottom:15px; letter-spacing:.03em }
#reviewTitle:focus { outline:none }
.layout { padding-block:26px 48px; display:grid; grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr); gap:18px; align-items:start }
.catalog { min-width:0; display:grid; gap:16px }
.panel { background:#fffef8; padding:22px; border:1px solid var(--line); border-radius:13px; box-shadow:0 3px 14px #243b2308; min-width:0 }
fieldset { padding:0; margin:0; border:0; min-width:0 }
label { display:block; font-size:14px; font-weight:600 }
.lookup-row { display:flex; gap:9px; margin-top:6px }
input[type=text] { min-width:0; width:100%; min-height:46px; border:1px solid #96aa9d; background:#fff; color:var(--ink); border-radius:7px; padding:9px 12px; font-size:16px }
.outline,.primary,.categories button { min-height:44px; border-radius:7px; padding:9px 14px; font-weight:700 }
.outline { border:1px solid var(--jade); color:var(--jade); background:#f3f7f0; white-space:nowrap }
.outline:hover { background:#e6f1e4 }
.status { font-size:14px; margin:12px 0 0; color:var(--muted); overflow-wrap:anywhere }
.status:empty { display:none }
.status.error { color:#9a3627 }
.status.good { color:#235536; font-weight:bold }
#productsStatus { margin:0 0 12px }
.categories { display:flex; gap:3px; border-bottom:1px solid var(--line); margin:0 0 14px }
.categories button { border:0; border-bottom:3px solid transparent; border-radius:0; background:transparent; color:var(--muted) }
.categories button[aria-pressed=true] { color:var(--jade); border-bottom-color:var(--jade) }
.products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px }
.product { position:relative; display:flex; flex-direction:column; gap:3px; padding:14px; cursor:pointer; border:1px solid #cfd6c9; border-radius:8px; background:#fff; font-size:15px }
.product:hover { border-color:#7b9985 }
.product input { position:absolute; right:11px; top:12px; margin:0; width:17px; height:17px; accent-color:var(--jade) }
.product.selected { background:var(--pale); border:2px solid var(--jade); padding:13px }
.product.selected input { top:11px; right:10px }
.product-name { font-weight:700; line-height:1.4; padding-right:22px; overflow-wrap:anywhere }
.product-desc { color:var(--muted); font-size:13px; font-weight:400; margin-bottom:8px }
.product-amount { margin-top:auto; font-size:18px; font-weight:700; font-variant-numeric:tabular-nums; color:#285c43 }
.checkout { position:sticky; top:16px; border-top:3px solid #6c886e }
dl { margin:0 }
dl>div { display:grid; grid-template-columns:auto minmax(0,1fr); gap:12px; padding:10px 0; align-items:baseline }
dt,.note { color:var(--muted); font-size:14px }
dd { margin:0; text-align:right; overflow-wrap:anywhere; font-weight:650 }
.total { margin-top:7px; padding:15px 0; border-top:1px solid var(--line) }
.total dd { font-size:23px; line-height:1.4; font-variant-numeric:tabular-nums }
.primary { display:block; text-align:center; border:1px solid var(--jade); background:var(--jade); color:white; width:100%; font-size:16px; text-decoration:none }
.primary:hover:enabled,.receipt-link:hover { background:#174635 }
.primary:disabled,fieldset:disabled .outline { background:#e4e8dd; color:#526154; border-color:#d0d7cb }
#checkoutStatus { margin:0 0 10px }
.note { margin:12px 0 0; font-size:13px }
.receipt { width:min(92%,520px); margin:10vh auto }
.receipt .identity { color:var(--jade) }
.receipt h1 { font-size:32px }
.receipt-message { overflow-wrap:anywhere }
@media(max-width:760px) {
  .hero-inner,.layout { padding-inline:16px }
  .hero-inner { padding-block:21px }
  .layout { grid-template-columns:1fr; padding-block:16px 32px; gap:14px }
  .catalog { gap:14px }
  .panel { padding:16px }
  .checkout { position:static; scroll-margin-top:12px }
  .hero::before { left:27% }
  h2 { font-size:22px; margin-bottom:12px }
}
@media(max-width:385px) {
  .product { padding:10px }
  .product.selected { padding:9px }
  .product-name { font-size:14px }
  .hero-inner,.layout { padding-inline:12px }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto } }
