:root{font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#f3f6fb;background:#0b111d}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,textarea,select{font:inherit}button,.btn{border:0;border-radius:10px;background:#2d9fe8;color:#07111b;padding:11px 15px;font-weight:750;cursor:pointer;text-decoration:none;display:inline-block}button.secondary,.btn.secondary{background:#202f46;color:#e8f2fc;border:1px solid #48617b}button.danger{background:#733040;color:white}button:disabled{opacity:.5;cursor:not-allowed}input,textarea,select{background:#0e1828;color:white;border:1px solid #41546b;border-radius:9px;padding:11px;min-width:0;width:100%}label{display:block;color:#c3d2e5;font-size:.9rem;margin:8px 0 5px}header{background:#101a2b;border-bottom:1px solid #26374d;position:sticky;top:0;z-index:3}header .wrap{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:75px}header img{width:150px;max-height:58px;object-fit:contain}nav{display:flex;gap:14px;flex-wrap:wrap}nav a{text-decoration:none;color:#c9d9ea;font-weight:650;font-size:.9rem}.wrap{max-width:1220px;margin:auto;padding:0 20px}main{min-height:75vh}.hero{padding:55px 0 35px;background:radial-gradient(ellipse at top right,#1a4562,#0b111d 65%)}.hero h1{font-size:clamp(2rem,5vw,3.7rem);line-height:1.1;margin:0 0 14px}.hero p{max-width:700px;color:#c5d5e6;line-height:1.6}.section{padding:30px 0}.section h2{margin:0 0 7px;font-size:1.8rem}.section p.intro{margin:0 0 20px;color:#adbed0}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:17px}.card{border:1px solid #2b4057;background:#111c2d;border-radius:15px;overflow:hidden;min-width:0}.card img{display:block;width:100%;aspect-ratio:1.15;object-fit:cover;background:#070b11}.card-body{padding:14px}.card h3{margin:0 0 7px;font-size:1rem}.card .price{font-weight:800;font-size:1.2rem;margin:6px 0}.muted{color:#b3c4d6}.small{font-size:.83rem}.tag{display:inline-block;background:#23384f;color:#e4f1ff;border-radius:20px;padding:4px 9px;font-size:.75rem;margin:4px 4px 4px 0}.sale{color:#ffb3a7}.old{text-decoration:line-through;color:#9db0c4;font-size:.9rem}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.actions a{flex:1;text-align:center;font-size:.85rem;white-space:nowrap}.category-card{cursor:pointer}.mosaic{display:grid;grid-template-columns:repeat(2,1fr);gap:3px;background:#142338;aspect-ratio:1.4}.mosaic img{aspect-ratio:auto;width:100%;height:100%;object-fit:cover;min-height:0}.mosaic .empty{background:#1c3147}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:18px 0}.toolbar input{flex:1;min-width:200px}footer{border-top:1px solid #2d4056;padding:25px 0;color:#afc0d0}.hidden{display:none!important}.pill{background:#243b53;border-radius:8px;padding:5px 10px}.modal{position:fixed;inset:0;background:#000b;z-index:9;display:flex;align-items:center;justify-content:center;padding:18px}.modal>div{background:#121f30;border:1px solid #47617d;border-radius:18px;max-width:700px;max-height:92vh;overflow:auto;width:100%;padding:24px}.modal img{width:100%;max-height:340px;object-fit:contain;background:#080f19}.notice{background:#20334a;padding:12px;border-radius:10px;color:#d6e7f8;margin:12px 0}.admin-grid{display:grid;grid-template-columns:270px 1fr;gap:18px}.panel{border:1px solid #2e435b;background:#121f30;border-radius:15px;padding:18px;margin:14px 0}.item{padding:12px;border-bottom:1px solid #304258;display:flex;gap:10px;align-items:center}.item img{width:65px;height:65px;object-fit:cover;border-radius:7px}.item button{padding:7px}.checkline{display:flex;align-items:center;gap:8px;margin:9px 0}.checkline input{width:auto}.split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.status{min-height:22px;color:#b8e4ba}#productList{max-height:65vh;overflow:auto}@media(max-width:700px){.admin-grid,.split{grid-template-columns:1fr}nav{gap:8px}header img{width:105px}.hero{padding:32px 0}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card-body{padding:10px}.actions{flex-direction:column}.actions a{font-size:.78rem}header .wrap{align-items:flex-start;padding-top:10px;padding-bottom:10px}}

/* Preserve product description line breaks pasted from Facebook. */
.modal > div > p:first-of-type { white-space: pre-line; line-height: 1.65; overflow-wrap: anywhere; }

/* Shopping cart */
#cartToggle { padding: 5px 10px; align-self: center; font-size: .9rem; }
.checkout-cart { width: min(520px, calc(100% - 28px)); max-height: 90dvh; padding: 22px; border: 1px solid #48617b; border-radius: 16px; background: #121f30; color: inherit; }
.checkout-cart::backdrop { background: #000a; }
.cart-heading, .cart-row, .cart-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-heading h2, .cart-row p { margin: 0; }
.cart-row { padding: 12px 0; border-bottom: 1px solid #304258; flex-wrap: wrap; }
.cart-row label { margin: 0; }
.cart-row select { width: auto; padding: 5px; }
.cart-row button { padding: 6px 8px; }
.cart-total { margin: 9px 0; }
.cart-total strong { white-space: nowrap; }
#checkoutButtons { display: flex; flex-wrap: wrap; gap: 8px; }
#checkoutButtons[hidden] { display: none; }

.checkout-option { flex: 1 0 100%; }
.checkout-option button { margin-top: 8px; }
.checkout-option-editor { border-bottom: 1px solid #304258; padding: 8px 0 12px; }
.checkout-option-editor button { margin-top: 8px; }
#photoList .item { flex-wrap: wrap; }

.modal .product-photo { display: inline-block; width: min(120px, 29%); padding: 0; margin: 4px; background: #080f19; cursor: zoom-in; vertical-align: top; }
.modal .product-photo-main { display: block; width: 100%; margin: 0 0 8px; }
.modal .product-photo img { display: block; border-radius: inherit; }
.modal .product-photo:not(.product-photo-main) img { height: 92px; }
.photo-viewer { width: max-content; max-width: calc(100% - 24px); max-height: 94dvh; padding: 12px; border: 1px solid #48617b; border-radius: 16px; background: #101a2b; color: inherit; }
.photo-viewer::backdrop { background: #000c; }
.photo-viewer button { display: block; margin: 0 0 8px auto; }
.modal .photo-viewer img { display: block; width: auto; max-width: 100%; max-height: calc(94dvh - 68px); object-fit: contain; }
