:root{--bg:#fafaf9;--surface:#fff;--text:#1c1917;--muted:#78716c;--border:#e7e5e4;--accent:#b91c1c;--accent-text:#fff;--ok:#15803d;--info:#1d4ed8;--warn:#b45309;--radius:10px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.45}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#0c0a09;--surface:#1c1917;--text:#f5f5f4;--muted:#a8a29e;--border:#292524;--accent:#ef4444;--ok:#4ade80;--info:#93c5fd;--warn:#fbbf24}}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0}h1,h2,h3,h4{margin:0;line-height:1.2}h1{font-size:1.5rem}h2{font-size:1.2rem}h3{font-size:1.05rem}a{color:inherit}img{max-width:100%;display:block}.page{max-width:960px;margin:0 auto;padding:16px}.narrow{max-width:420px}.stack{flex-direction:column;gap:12px;display:flex}.row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.grid2{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;display:grid}.muted{color:var(--muted)}.error{color:var(--accent)}.warning{color:var(--warn);font-size:.9rem}.notice{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}label{color:var(--muted);flex-direction:column;gap:4px;font-size:.9rem;display:flex}label.check{color:var(--text);flex-direction:row;align-items:center;gap:8px}input,select,textarea,button,.button{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-height:44px;padding:10px 12px}input[type=checkbox]{width:20px;height:20px;min-height:auto}button,.button{cursor:pointer;text-align:center;justify-content:center;align-items:center;gap:6px;text-decoration:none;display:inline-flex}button:disabled{opacity:.5;cursor:default}.primary{background:var(--accent);color:var(--accent-text);border-color:var(--accent);font-weight:600}.big{min-height:52px;font-size:1.05rem}button.link{min-height:auto;color:var(--accent);background:0 0;border:none;padding:0;text-decoration:underline}fieldset{border:1px solid var(--border);border-radius:var(--radius);margin:0;padding:12px}legend{color:var(--muted);padding:0 4px;font-size:.9rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px}.list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin:0;padding:0;list-style:none}.list:empty{display:none}.list li{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;display:flex}.list li:first-child{border-top:none}.list.tappable li{padding:0}.list.tappable li>a,.list.tappable li>button{text-align:left;background:0 0;border:none;border-radius:0;justify-content:space-between;gap:8px;width:100%;padding:12px;text-decoration:none;display:flex}.list li.inactive{opacity:.55}input.qty{width:90px}.item-row{grid-template-columns:1fr 70px 100px;gap:8px;display:grid}.segmented{border:none;gap:0;padding:0;display:flex}.segmented legend{margin-bottom:4px}.segmented button{border-radius:0;flex:1}.segmented button:first-of-type{border-radius:var(--radius) 0 0 var(--radius)}.segmented button:last-of-type{border-radius:0 var(--radius) var(--radius) 0}.segmented button.active{background:var(--text);color:var(--bg)}.stepper{align-items:center;gap:12px;display:flex}.stepper button{width:52px;font-size:1.3rem}.stepper output{text-align:center;min-width:2ch;color:var(--text);font-size:1.4rem}.stats{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;display:grid}.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:4px;padding:12px;display:flex}.stat strong{font-size:1.3rem}.badge{border:1px solid;border-radius:999px;width:fit-content;padding:2px 8px;font-size:.8rem;display:inline-block}.badge.in_stock,.badge.received{color:var(--ok)}.badge.incoming,.badge.partially_received{color:var(--info)}.badge.sold_out,.badge.cancelled{color:var(--muted)}.admin{padding-bottom:72px}.admin-header{border-bottom:1px solid var(--border);background:var(--surface);z-index:1;justify-content:space-between;align-items:center;padding:12px 16px;display:flex;position:sticky;top:0}.tabbar{background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);grid-template-columns:repeat(5,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.tabbar a{text-align:center;color:var(--muted);padding:14px 4px;font-size:.8rem;text-decoration:none}.tabbar a.active{color:var(--accent);font-weight:600}.thumbs{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;display:grid}.thumbs figure{flex-direction:column;gap:4px;margin:0;display:flex}.thumbs img{aspect-ratio:1;object-fit:cover;border-radius:var(--radius)}.catalog-header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;display:flex}.filters{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:12px;padding:12px}.filters summary{cursor:pointer;font-weight:600}.filters[open] summary,.filters fieldset{margin-bottom:12px}.chips{flex-wrap:wrap;gap:8px;margin-bottom:8px;display:flex}.chip{border-radius:999px;min-height:36px;padding:6px 12px;font-size:.9rem}.chip.active{background:var(--text);color:var(--bg);border-color:var(--text)}.grid-cards{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.product-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:6px;height:100%;padding:10px;text-decoration:none;display:flex}.product-card img,.product-card .placeholder{aspect-ratio:1;object-fit:cover;border-radius:calc(var(--radius) - 4px);background:var(--border)}.gallery{scroll-snap-type:x mandatory;gap:8px;display:flex;overflow-x:auto}.gallery img{aspect-ratio:1;object-fit:cover;border-radius:var(--radius);scroll-snap-align:start;flex-shrink:0;width:min(100%,480px)}.price{margin:0;font-size:1.4rem;font-weight:700}.attributes{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);grid-template-columns:1fr;gap:0;margin:0;display:grid}.attributes div{border-top:1px solid var(--border);justify-content:space-between;padding:8px 12px;display:flex}.attributes div:first-child{border-top:none}.attributes dt{color:var(--muted)}.attributes dd{margin:0}
