/* Online store (/shop/). Loaded only on that page; uses the site's colour tokens from site.css. */
.shop:has(>noscript:only-child),.shop:has(>p.muted:only-child){min-height:140px}@media (max-width:599px){.shop:has(>noscript:only-child),.shop:has(>p.muted:only-child){min-height:245px}} /* room while the catalog loads (less layout shift) */
.shop-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}
.shop-intro{color:var(--text-2);margin-bottom:22px}
.shop-group{margin:0 0 34px;scroll-margin-top:110px}
.shop-ghead{border-left:4px solid var(--accent);padding:2px 0 2px 14px;margin-bottom:14px}
.shop-ghead h2{font-size:clamp(22px,2.6vw,28px);margin-bottom:6px}
.shop-ghead p{margin:0 0 4px;font-size:15px;color:var(--text-2)}
.shop-ghead p.muted{color:var(--muted)}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.shop-card{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.shop-card img,.shop-img{width:100%;aspect-ratio:4/3;object-fit:contain;background:var(--bg-3)}
.shop-img{display:flex;align-items:center;justify-content:center;color:var(--accent)}
.shop-ico{width:72px;height:72px}
.shop-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.shop-body h3{font-size:17px;margin:0}
.shop-body p{font-size:14px;margin:0}
.shop-brand{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent-2)}
.shop-buy{margin-top:auto;padding-top:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.shop-price{font:700 20px var(--head)}.shop-price small{font:500 12px var(--body);color:var(--muted)}
.shop-buy .btn{padding:10px 16px}
.shop-qty{display:inline-flex;align-items:center;border:1px solid var(--line-2);border-radius:8px;overflow:hidden}
.shop-qty button{background:var(--bg-3);color:#fff;border:0;width:40px;height:40px;font-size:20px;cursor:pointer}
.shop-qty button:disabled{opacity:.4;cursor:not-allowed}
.shop-qty b{min-width:36px;text-align:center}
.shop-cart{position:sticky;top:100px;max-height:calc(100vh - 120px);overflow:auto;background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius);padding:20px;display:flex;flex-direction:column;gap:12px;scroll-margin-top:110px}
.shop-cart h2{font-size:22px;margin:0}.shop-cart h3{font-size:17px;margin:6px 0 0}
.shop-lines{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.shop-lines li{display:grid;grid-template-columns:1fr auto;gap:2px 10px;font-size:14px;border-bottom:1px solid var(--line);padding-bottom:8px}
.shop-lines .link{grid-column:1;justify-self:start;background:none;border:0;padding:0;color:var(--accent-2);font-size:13px;cursor:pointer;text-decoration:underline}
.shop-tot{display:grid;grid-template-columns:1fr auto;gap:4px 10px;margin:0;font-size:15px}
.shop-tot dt{color:var(--muted)}.shop-tot dd{margin:0;text-align:right}
.shop-tot .t{font:700 19px var(--head);color:#fff}.shop-tot dd.t small{font:500 12px var(--body);color:var(--muted)}
.shop-form{display:flex;flex-direction:column;gap:12px}
.shop-pickup{background:var(--bg-3);border:1px solid var(--line);border-radius:10px;padding:12px 14px;font-size:14px;color:var(--text-2)}
.shop-go{width:100%;justify-content:center}
.shop-fine{font-size:13px;margin:-4px 0 0}
.shop-soon h2{font-size:24px}
.shop-done{max-width:680px}
.shop-bar{display:none}
@media (max-width:960px){
  .shop-layout{grid-template-columns:1fr}
  .shop-cart{position:static;max-height:none;overflow:visible}
  .shop-bar:not([hidden]){display:block;position:fixed;left:12px;right:12px;bottom:76px;z-index:40;background:var(--accent);color:var(--ink);font-weight:700;text-align:center;padding:13px 16px;border-radius:999px;text-decoration:none;box-shadow:0 6px 20px rgba(0,0,0,.5)}
}
@media (max-width:520px){.shop-grid{grid-template-columns:1fr}.shop-card{flex-direction:row}.shop-card img,.shop-img{width:110px;aspect-ratio:auto;flex:none}.shop-ico{width:52px;height:52px}}
.shop-classes{display:flex;gap:4px;margin:0}
.fc{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;padding:0 6px;border-radius:5px;font-size:12px;font-weight:700;color:#fff;cursor:help}
.fc-a{background:#1f7a3f}.fc-b{background:#b3261e}.fc-c{background:#1d5fbf}.fc-k{background:#2b2b2b}
.shop-info{font-size:14px;border-top:1px solid var(--line);padding-top:6px}
.shop-info summary{cursor:pointer;font-weight:600;color:var(--accent)}
.shop-info .shop-h{font-weight:600;margin:8px 0 2px}
.shop-info ul{margin:0;padding-left:18px}.shop-info li{margin:2px 0}
.shop-info ul.no li::marker{content:"✕  ";color:#b3261e}.shop-info ul.ok li::marker{content:"✓  ";color:#1f7a3f}
