:root{
  --bg:#faf9f5;--surface:#ffffff;--soft:#f4f2ec;--soft-2:#edeae2;
  --ink:#262624;--muted:#6f6c65;--line:#e7e4dc;
  --accent:#d97757;--accent-hover:#c56546;--accent-soft:#fdf2ed;--accent-line:#f0cab9;
  --blue:var(--accent);--grad:linear-gradient(135deg,#d97757,#c86444);
  --shadow:0 8px 28px rgba(38,38,36,.05);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color:var(--ink)
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);min-height:100vh;-webkit-font-smoothing:antialiased}
.shell{width:min(1180px,calc(100% - 40px));margin:auto}
button,input{font:inherit}
button{cursor:pointer;color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
button:disabled{cursor:not-allowed;opacity:.48}
h1,h2,h3,p{margin:0}
.topbar,.actions,.brand,.languages,footer .shell{display:flex;align-items:center}
.topbar{height:82px;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:24px}
.brand{gap:11px;color:inherit;text-decoration:none}
.brand img,.brand-mark{width:40px;height:40px;border-radius:12px;flex:none}
.brand-mark{display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);border:1px solid var(--accent-line);font-size:20px;line-height:1;box-shadow:0 4px 12px rgba(217,119,87,.12)}
.brand b,.brand small{display:block}
.brand b{font-size:18px;letter-spacing:-.2px;font-weight:750}
.brand small{font-size:11px;color:var(--muted);margin-top:2px}
.actions{gap:14px}
.support,.text-link,footer button{background:none;border:0;padding:0}
.support{font-size:14px;color:var(--muted);font-weight:500}
.support:hover{color:var(--ink)}
.pill,.primary{border:0;color:#fff;background:var(--grad);font-weight:650;transition:background .15s,transform .15s,box-shadow .15s}
.pill:hover,.primary:hover{background:#c56546}
.pill{padding:10px 18px;border-radius:999px;font-size:13.5px;box-shadow:0 4px 14px rgba(217,119,87,.25)}
#accountPill{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:0 2px 8px rgba(38,38,36,.04)}
#accountPill:hover{background:var(--soft);border-color:#d8d3c8}
.languages{gap:2px;background:var(--soft);padding:3px;border:1px solid var(--line);border-radius:11px}
.languages span{width:29px;text-align:center;font-size:12px;color:#9b968d}
.languages sup{font-size:8px}
.languages button{border:0;background:transparent;color:var(--muted);border-radius:8px;height:32px;min-width:40px;font-size:12.5px;font-weight:650}
.languages button[aria-pressed=true]{background:var(--ink);color:#fff;box-shadow:0 2px 6px rgba(38,38,36,.18)}

.panel{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.notice{border-radius:18px;padding:0 30px 26px;margin-bottom:22px}
.notice-head{display:flex;align-items:center;gap:11px;height:64px;border-bottom:1px solid var(--line)}
.notice-head h1{font-size:18px;font-weight:700;letter-spacing:-.2px}
.info{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--accent-soft);color:var(--accent);border:1px solid var(--accent-line);font-weight:800;font-size:14px}
.notice-head small{font-size:10px;color:#a09b91;letter-spacing:1.8px;font-weight:750}
.notice-body{padding:14px 10px 0;font-size:14px}
.notice-body ul{padding:0;margin:0;list-style:none}
.notice-body li,.contact-line{display:flex;gap:8px;align-items:baseline;margin:13px 0;line-height:1.6;font-weight:550;color:#383632}
.notice-body i{color:var(--accent);font-style:normal;letter-spacing:-4px;margin-right:4px}
.contact-line{flex-wrap:wrap}
.contact-line b:nth-of-type(2){margin-left:14px}
.text-link{color:var(--accent);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.text-link:hover{color:var(--accent-hover)}
.official{margin:20px 0 16px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:13.5px}
.alert{display:inline-block;color:#a64628;background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:9px;font-size:15px;font-weight:750;padding:8px 13px}

.catalog{border-radius:20px;padding:30px;margin-bottom:40px}
.catalog h2{font-size:18px;font-weight:700;margin:0 0 18px;letter-spacing:-.2px}
#categories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding-bottom:8px}
.category{display:grid;gap:4px;text-align:left;padding:11px 14px;border-radius:12px;border:1px solid var(--line);background:var(--soft);color:var(--muted);min-width:0;transition:all .15s}
.category:hover{background:var(--soft-2);color:var(--ink)}
.category b{font-size:12.5px;font-weight:550;color:var(--ink)}
.category small{font-size:10.5px;color:#8e8a81}
.category[aria-pressed=true]{color:#fff;background:var(--ink);border-color:var(--ink);box-shadow:0 6px 16px rgba(38,38,36,.16)}
.category[aria-pressed=true] b{color:#fff;font-weight:650}
.category[aria-pressed=true] small{color:rgba(255,255,255,.72)}

.meta,.bottom,.row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.meta{margin:18px 2px 14px;font-size:12px;color:var(--muted)}
.inventory{color:#2f7d4f;font-weight:600}
.inventory::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:6px}
#grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.product{min-width:0;border:1px solid var(--line);background:#fff;padding:0 14px 14px;border-radius:14px;overflow:hidden;text-align:left;box-shadow:0 2px 8px rgba(38,38,36,.03);transition:transform .18s,box-shadow .18s,border-color .18s}
.product:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(38,38,36,.08);border-color:var(--accent-line)}
.cover{display:block;margin:0 -14px;aspect-ratio:1;border-bottom:1px solid var(--line);background:var(--bg)}
.cover img{width:100%;height:100%;object-fit:contain}
.product h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:550;margin:12px 1px 6px;line-height:20px;color:var(--ink)}
.bottom{margin-top:8px}
.price{color:var(--accent);font-size:17px;font-weight:750;font-variant-numeric:tabular-nums}
.state,.badge{border-radius:6px;padding:4px 8px;font-size:10.5px;font-weight:650;background:#eef6f0;color:#2f7d4f}
.low{background:#fdf4df;color:#9a6700}
.out{background:#fceee9;color:#b84527}
.empty{grid-column:1/-1;padding:45px 12px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:14px}

footer{padding:30px 0;background:#262624;color:#faf9f5;border-top:1px solid #353430}
footer .shell{gap:36px}
footer p{margin-left:auto;color:#b5b0a6;font-size:12px}
footer button{color:#faf9f5;font-size:12.5px}
footer button:hover{color:var(--accent)}
footer .brand small{color:#b5b0a6}
footer .brand-mark{background:rgba(217,119,87,.16);border-color:rgba(217,119,87,.35)}
#floating{position:fixed;right:26px;bottom:26px;width:52px;height:52px;border-radius:50%;border:0;background:var(--accent);color:#fff;font-size:23px;box-shadow:0 10px 26px rgba(217,119,87,.36);transition:transform .15s,background .15s}
#floating:hover{background:var(--accent-hover);transform:translateY(-2px)}

dialog{width:min(580px,calc(100% - 24px));border:1px solid var(--line);padding:0;border-radius:20px;max-height:94dvh;color:var(--ink);background:#fff;box-shadow:0 28px 80px rgba(38,38,36,.22)}
dialog::backdrop{background:rgba(38,38,36,.48);backdrop-filter:blur(6px)}
body:has(dialog[open]){overflow:hidden}
.close{position:absolute;right:14px;top:14px;border:1px solid var(--line);background:var(--soft);width:34px;height:34px;border-radius:50%;font-size:21px;z-index:1;color:var(--muted)}
.close:hover{background:var(--soft-2);color:var(--ink)}
.dhead{padding:22px 56px 16px 24px;border-bottom:1px solid var(--line);background:var(--bg)}
.dhead h2{font-size:19px;line-height:1.35;font-weight:700}
.dhead p,.body p{color:var(--muted);font-size:13.5px;line-height:1.65;margin-top:7px}
.body{padding:18px 24px 24px;display:grid;gap:15px}
.details,.receipt{padding:14px;background:var(--bg);border:1px solid var(--line);border-radius:12px}
.body h3{font-size:14.5px;font-weight:700}
.row{font-size:14px}
.qty{display:flex;height:36px}
.qty button,.qty input{width:38px;text-align:center;border:1px solid var(--line);background:var(--soft)}
.qty input{appearance:textfield;width:52px;background:#fff}
.qty input::-webkit-inner-spin-button{appearance:none}
.qty button:first-child{border-radius:8px 0 0 8px}
.qty button:last-child{border-radius:0 8px 8px 0}
.fields,.choices{display:grid;gap:9px}
.fields label{display:grid;gap:6px;font-size:13px;font-weight:650}
.fields input{min-width:0;width:100%;border:1px solid var(--line);border-radius:9px;padding:10px 12px;color:var(--ink);background:#fff}
.fields input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(217,119,87,.14);outline:none}
.choice{display:flex;gap:9px;align-items:center;border:1px solid var(--line);padding:10px 12px;border-radius:10px;font-size:14px;background:#fff}
.choice:has(:checked){border-color:var(--accent);background:var(--accent-soft)}
.choice small{margin-left:auto;color:var(--muted)}
.total{font-size:21px;color:var(--accent);font-weight:750}
.primary,.secondary{width:100%;padding:12px 15px;border-radius:10px}
.secondary{border:1px solid var(--line);background:var(--soft);color:var(--ink);font-weight:600}
.secondary:hover{background:var(--soft-2)}
.receipt{overflow-wrap:anywhere}
.receipt code{font-size:15px;font-weight:700;color:var(--ink)}
.feedback{color:#a64628}
.body [hidden]{display:none}
#adminLink{color:#f3c6b6;font-size:12.5px;font-weight:600}
#adminLink:hover{color:#fff}
#shopFeedback:not(:empty){margin-bottom:12px}

@media(max-width:1050px){#grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){#categories{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){#grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:600px){
  .shell{width:calc(100% - 24px)}.topbar{height:68px;margin-bottom:16px}.actions{gap:6px}.brand{gap:7px}
  .brand-mark{width:34px;height:34px;border-radius:10px;font-size:17px}.brand b{font-size:15px}.brand small{font-size:10px}
  .top-support,.languages span,.notice-head small{display:none}.pill{padding:8px 11px;font-size:12px}
  .languages button{min-width:32px;height:28px;font-size:12px}.notice{padding:0 15px 20px;border-radius:16px}
  .notice-head{height:56px}.notice-body{padding:9px 4px 0;font-size:12.5px}.notice-body li,.contact-line{margin:11px 0}
  .official{margin:16px 0 14px}.alert{display:block;font-size:13px;line-height:1.5}.catalog{padding:16px;border-radius:16px}
  #categories{display:flex;overflow-x:auto}.category{flex:0 0 135px}.product{padding:0 10px 11px}.cover{margin:0 -10px}
  .product h3{font-size:11.5px}.state{padding:4px 6px;font-size:9.5px}.bottom{gap:2px}.body{padding:15px}.dhead{padding-left:15px}
  footer .shell{flex-wrap:wrap;gap:12px}footer p{order:3;width:100%;margin:0}footer button{margin-left:auto}
  #floating{width:46px;height:46px;right:15px;bottom:16px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
