:root { --ink:#22352c; --sub:#5a6c61; --line:#d9e0d4; --green:#25593c; --mist:#edf1e8; --paper:#fafbf8; font-family:"DM Sans",-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft Yahei",sans-serif; color:var(--ink); background:var(--paper); }
* { box-sizing:border-box; }
body { margin:0; } button,input,select,textarea { font:inherit; } button,select,.link,.chip { cursor:pointer; }
a { color:inherit; text-decoration:none; } button { color:var(--ink); }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #458157; outline-offset:2px; }
header { border-bottom:1px solid var(--line); background:#fff; }
.bar,main { max-width:1152px; margin:0 auto; padding-inline:clamp(14px,4vw,42px); }
.bar,.bag,.section-head,.row,.actions,.cart-line { display:flex; align-items:center; gap:12px; }
.bar { min-height:66px; justify-content:space-between; }
.brand { font-size:clamp(17px,4vw,23px); font-weight:740; letter-spacing:-.035em; }
.bag { font-size:14px; font-weight:600; gap:6px; white-space:nowrap; }
#bag-count { background:var(--mist); color:var(--green); min-width:22px; padding:3px 5px; border-radius:20px; text-align:center; font-size:12px; }
main { padding-block:24px 72px; outline:none; }
h1,h2,h3,p { margin:0; } h1 { font-size:clamp(22px,4vw,32px); font-weight:680; line-height:1.35; } h2 { font-size:20px; } h3 { font-size:16px; }
.search { display:block; width:100%; background:white; padding:12px 15px; border:1px solid var(--line); border-radius:12px; color:var(--ink); min-height:46px; }
.filters,.tags,.specs { display:flex; gap:7px; align-items:center; } .filters { overflow-x:auto; margin:13px 0 20px; padding:2px 2px 5px; scrollbar-width:thin; } .tags,.specs { flex-wrap:wrap; }
.chip,select,.qty { border:1px solid var(--line); border-radius:9px; background:white; padding:7px 10px; } .chip { white-space:nowrap; font-size:13px; } .chip[aria-pressed=true] { color:white; background:var(--green); border-color:var(--green); }
.section-head { justify-content:space-between; margin-bottom:14px; font-size:14px; } select { color:#344b3c; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(182px,1fr)); gap:16px; }
.tile { background:#fff; border:1px solid var(--line); border-radius:15px; overflow:hidden; display:flex; flex-direction:column; min-width:0; transition:border-color .16s; } .tile:hover { border-color:#8da994; }
.cover { width:100%; aspect-ratio:1; object-fit:cover; display:block; background:var(--mist); }
.tile-body { display:grid; gap:7px; padding:12px; }
.tile-title { font-size:15px; font-weight:590; line-height:1.45; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; min-height:2.9em; overflow-wrap:anywhere; }
.price { color:var(--green); font-size:17px; font-weight:720; }
.cart-fields { display:grid; gap:14px; padding:16px; margin-bottom:20px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.contact-label { display:grid; gap:7px; align-content:start; font-size:14px; }
.contact-input { width:100%; padding:11px 12px; font-size:16px; border:1px solid var(--line); border-radius:9px; background:#fff; }
textarea.contact-input { min-height:80px; resize:vertical; line-height:1.45; }
@media(min-width:700px) { .cart-fields { grid-template-columns:minmax(0,1fr) minmax(0,2fr); } }
.order-history { margin-top:28px; }
.order-history h2 { margin-bottom:12px; }
.order-card { margin-bottom:12px; padding:16px; background:#fff; border:1px solid var(--line); border-radius:12px; overflow-wrap:anywhere; }
.order-card .section-head { margin-bottom:8px; }
.order-status { color:var(--green); white-space:nowrap; }
.order-items { display:grid; gap:6px; padding:0; margin:0 0 8px; list-style:none; }
.order-items li { display:flex; justify-content:space-between; gap:12px; }
.order-items li span:last-child { flex-shrink:0; }
.order-card button { min-height:44px; margin-top:10px; }
.order-card .submit-error:empty { display:none; }
.submit-error { color:#8a4129; margin-top:8px; }
.meta,.caption { font-size:12px; color:var(--sub); line-height:1.55; } .tag { display:inline-block; color:#526453; background:var(--mist); padding:2px 6px; border-radius:4px; font-size:11px; overflow-wrap:anywhere; }
.empty { color:var(--sub); padding:32px 4px; text-align:center; line-height:1.7; }
.back { display:inline-block; margin-bottom:18px; font-size:14px; color:var(--green); }
.product-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(20px,4vw,48px); align-items:start; }
.shots { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin; border-radius:15px; background:#eef0e9; }
.shots a { flex:0 0 100%; scroll-snap-align:start; } .shots img { display:block; width:100%; aspect-ratio:1; object-fit:contain; }
.section-head.nav { margin:6px 0 0; color:var(--sub); font-size:13px; }
.flat,.primary,.secondary { border-radius:9px; padding:9px 13px; border:1px solid var(--line); background:#fff; } .flat { padding:3px 10px; font-size:16px; }
.product-info { display:grid; gap:14px; } .product-info .price { font-size:24px; }
.row { align-items:center; flex-wrap:wrap; } .qty { width:80px; text-align:center; } .primary { background:var(--green); color:white; border-color:var(--green); font-weight:600; } .primary:disabled { opacity:.55; }
.panel { margin:26px auto 0; max-width:760px; } .panel h2 { margin-bottom:12px; }
.details img { width:100%; height:auto; display:block; } .details a { display:block; }
dl { margin:0; } .fact { display:grid; grid-template-columns: minmax(80px, .55fr) 1.45fr; gap:12px; border-bottom:1px solid var(--line); padding:9px 0; font-size:14px; } dt { color:var(--sub); } dd { margin:0; overflow-wrap:anywhere; }
.description { white-space:pre-line; line-height:1.7; overflow-wrap:anywhere; } .actions { flex-wrap:wrap; } .bag-title { margin-bottom:20px; }
.cart-line { border-bottom:1px solid var(--line); padding:12px 0; align-items:flex-start; } .cart-line img { width:66px; height:66px; border-radius:8px; object-fit:cover; } .cart-content { flex:1; min-width:0; display:grid; gap:6px; } .cart-content a { font-weight:600; } .cart-content button { font-size:13px; }
.contact { display:grid; justify-items:start; gap:10px; padding-block:22px; } .contact img { width:150px; height:150px; object-fit:contain; background:#fff; }
#toast { position:fixed; bottom:calc(25px + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); background:#1f3228; color:white; border-radius:10px; padding:10px 17px; font-size:14px; max-width:90vw; text-align:center; }
@media(max-width:650px){.product-head{grid-template-columns:1fr;gap:18px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tile-body{padding:9px}.tile-title{font-size:14px}.bar{min-height:58px;gap:7px}.bag{font-size:13px}main{padding-top:16px}.tile{border-radius:11px}}
.tile { position:relative; }
.tile-link { display:flex; flex:1; flex-direction:column; }
.tile-link:focus-visible { outline-offset:-3px; }
.tile-footer { display:grid; align-content:center; margin-top:auto; min-height:48px; padding:4px 52px 10px 12px; }
.tile-add { position:absolute; right:3px; bottom:3px; display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; background:transparent; color:#fff; font:bold 22px/1 sans-serif; isolation:isolate; }
.tile-add::before { content:""; position:absolute; z-index:-1; inset:7px; background:var(--green); border-radius:50%; }
.tile-add:active::before { transform:scale(.91); }
.tile-add:disabled { opacity:.45; }
.cart-picker { width:min(90vw,380px); max-height:75vh; padding:20px; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:14px; }
.cart-picker::backdrop { background:rgb(25 38 30 / 35%); }
.cart-options { display:grid; gap:7px; margin-top:16px; }
.cart-options button { text-align:left; min-height:44px; }
