:root { color:#172447; background:#f4f5fb; font:16px system-ui,sans-serif; }
* { box-sizing:border-box; }
body { margin:0; }
[hidden] { display:none !important; }
.mast { background:#131c3c; color:white; }
.mast div, main { width:min(100%,72rem); margin:auto; padding:1.1rem clamp(1rem,4vw,3rem); }
.mast div { display:flex; justify-content:space-between; gap:.8rem; flex-wrap:wrap; }
.mast a { color:white; font-weight:700; }
main { padding-block:2rem 3rem; }
h1 { font:500 clamp(2.3rem,6vw,4rem) Georgia,serif; margin:0 0 1rem; letter-spacing:-.045em; }
h2 { margin:0 0 1rem; }
h3 { margin:.45rem 0; overflow-wrap:anywhere; }
p { line-height:1.45; overflow-wrap:anywhere; }
p:empty { display:none; }
section { margin-top:1.6rem; }
.products { display:grid; gap:1rem; grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr)); }
.product, .editor { background:white; border:1px solid #d9e0f2; border-radius:1rem; padding:1rem; }
.product img { display:block; width:100%; height:10rem; background:#eef1fb; border-radius:.65rem; object-fit:contain; }
.product p { margin:.5rem 0; }
.category,.muted { color:#53617c; }
.category { font-size:.86rem; font-weight:650; }
.price { display:block; margin-top:.55rem; font-size:1.25rem; color:#2342b5; }
.recommendation { color:#24437a; background:#e8efff; border-radius:.5rem; padding:.5rem; }
label { display:grid; gap:.3rem; font-size:.91rem; font-weight:650; }
#categories { max-width:17rem; }
input, select, button { font:inherit; min-height:2.65rem; padding:.45rem .65rem; border-radius:.5rem; }
input, select { width:100%; color:inherit; border:1px solid #a3aec5; background:#fff; }
button { border:1px solid #2342b5; background:#2342b5; color:#fff; font-weight:700; cursor:pointer; }
button.secondary { color:#2342b5; background:white; }
button:disabled { opacity:.55; cursor:wait; }
:focus-visible { outline:3px solid #687ee1; outline-offset:2px; }
.form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:.8rem; margin-bottom:.8rem; }
.toggle { display:flex; align-items:center; margin:.6rem 0; }
.toggle input { width:1.15rem; min-height:1.15rem; margin:0 .4rem 0 0; }
.actions { display:flex; gap:.7rem; flex-wrap:wrap; }

.cart-lines { list-style:none; padding:0; }
.cart-lines li { display:flex; justify-content:space-between; align-items:center; gap:.65rem; padding:.65rem 0; border-bottom:1px solid #e0e6f3; flex-wrap:wrap; }
.cart-lines input { width:5rem; }
.cart-lines .actions { align-items:center; }
.product > button { margin-top:.6rem; }
.receipt { border-color:#8eb5a5; background:#effaf4; }
