:root{--red: #d7263d;--blue: #1a3fa6;--blue-dark: #12307f;--yellow: #ffd23f;--green: #25d366;--bg: #f4f5f9;--card: #ffffff;--text: #1c1f2b;--muted: #6b7080;--border: #e3e5ec;--radius: 12px;--shadow: 0 1px 3px rgba(20, 30, 60, .08), 0 4px 14px rgba(20, 30, 60, .06)}*{box-sizing:border-box}html,body{margin:0;padding:0;overflow-x:hidden}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.45}a{color:var(--blue)}h1,h2,h3{margin:0;line-height:1.2}button{font:inherit;cursor:pointer}img{display:block;max-width:100%}.container{max-width:1080px;margin:0 auto;padding:16px}.muted{color:var(--muted)}.error{color:var(--red);font-weight:600;margin:8px 0}.topbar{position:sticky;top:0;z-index:20;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px}.brand{color:#fff;text-decoration:none;font-weight:900;font-size:1.4rem;letter-spacing:-.5px}.brand span{color:var(--yellow)}.brand small{font-weight:500;font-size:.8rem;opacity:.8;margin-left:4px}.topbar .btn-ghost{color:#fff;border-color:#fff6}.topbar .btn-ghost:hover{background:#ffffff1f}.badge{background:var(--yellow);color:var(--text);border-radius:999px;padding:0 7px;font-size:.8rem;font-weight:800;margin-left:4px}.banner{background:var(--red);color:#fff;text-align:center;font-weight:800;text-transform:uppercase;letter-spacing:.5px;padding:8px 16px}.section-title{font-size:1.25rem;font-weight:800;margin:24px 0 12px;border-left:5px solid var(--red);padding-left:10px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-filters{display:flex;flex-direction:column;gap:10px;margin:12px 0 16px}.section-head .section-title{margin-bottom:0}.section-head+.chips,.section-head+.error,.section-head+.muted,.section-head+.item-list{margin-top:12px}.grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.grid-combos{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.grid-combos .card-img{object-fit:cover;padding:0}.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}.card-img{width:100%;aspect-ratio:4 / 3;object-fit:contain;background:#f7f8fb;padding:6px}.img-placeholder{display:flex;align-items:center;justify-content:center;font-size:2.5rem;color:#b7bccb;background:#eef0f5}.card{position:relative}.card.sold-out .card-img{filter:grayscale(1);opacity:.55}.sold-out-badge{position:absolute;top:10px;left:10px;background:var(--red);color:#fff;font-size:.72rem;font-weight:800;text-transform:uppercase;padding:3px 8px;border-radius:6px}.qty button:disabled{opacity:.35;cursor:not-allowed}.card-body{padding:12px;display:flex;flex-direction:column;gap:8px;flex:1}.card-body h3{font-size:.95rem;font-weight:700}.desc{margin:0;font-size:.88rem;color:var(--muted)}.card-footer{margin-top:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.card-footer .btn{flex:1 1 auto;padding:8px 12px;font-size:.9rem}.price{font-weight:800;font-size:1.05rem;color:var(--blue-dark);white-space:nowrap}.filters{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{border:1px solid var(--border);background:#fff;color:var(--text);border-radius:999px;padding:6px 14px;font-weight:600;font-size:.9rem}.chip.active{background:var(--blue);border-color:var(--blue);color:#fff}.input{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px;font:inherit;background:#fff;color:var(--text)}.input:focus{outline:2px solid var(--blue);outline-offset:1px;border-color:transparent}textarea.input{resize:vertical}.select-sm{width:auto;padding:6px 8px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;border-radius:8px;padding:9px 16px;font-weight:700;text-decoration:none;transition:filter .15s,background .15s}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--red);color:#fff}.btn-primary:not(:disabled):hover{filter:brightness(.92)}.btn-ghost{background:transparent;color:var(--blue);border-color:var(--border)}.btn-ghost:hover{background:#eef1fb}.btn-danger{background:transparent;color:var(--red);border-color:var(--border)}.btn-danger:hover{background:#fdecef}.btn-wa{background:var(--green);color:#fff}.btn-block{width:100%}.btn-sm{padding:6px 10px;font-size:.85rem}.icon-btn{background:transparent;border:0;font-size:1.2rem;color:var(--muted);padding:4px 8px;border-radius:6px}.icon-btn:hover{background:#eef0f5}.form{display:flex;flex-direction:column;gap:12px}.form label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:.92rem}.form label.check{flex-direction:row;align-items:center;gap:8px}.form-preview{width:140px;aspect-ratio:4 / 3;object-fit:contain;background:#f7f8fb;border-radius:8px;border:1px solid var(--border)}.cart-fab{position:fixed;left:50%;bottom:16px;transform:translate(-50%);z-index:15;background:var(--blue);color:#fff;border:0;border-radius:999px;padding:12px 22px;font-weight:800;box-shadow:0 6px 20px #1a3fa666;white-space:nowrap;max-width:calc(100vw - 32px)}.drawer-backdrop,.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f142873;z-index:30}.drawer{position:absolute;top:0;right:0;bottom:0;width:min(440px,100%);background:var(--card);display:flex;flex-direction:column;box-shadow:-4px 0 24px #00000026}.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border)}.drawer-head h2{font-size:1.2rem}.drawer-body{flex:1;overflow-y:auto;padding:16px}.drawer-foot{padding:14px 16px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:10px}.total-row{display:flex;justify-content:space-between;font-size:1.1rem}.cart-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.cart-item{display:grid;grid-template-columns:52px 1fr auto;gap:10px;align-items:center}.cart-thumb{width:52px;height:52px;object-fit:contain;background:#f7f8fb;border-radius:8px;font-size:1.4rem}.cart-info{display:flex;flex-direction:column;min-width:0}.cart-info strong{font-size:.92rem}.cart-info .muted{font-size:.82rem}.qty{display:inline-flex;align-items:center;gap:2px;border:1px solid var(--border);border-radius:8px}.qty button{width:30px;height:30px;border:0;background:transparent;font-size:1.1rem;font-weight:700;color:var(--blue)}.qty span{min-width:24px;text-align:center;font-weight:700}.qty-card{flex:1 1 auto;justify-content:space-between;background:#fff;border-color:var(--blue)}.qty-card button{width:36px;height:34px}.qty-card span{color:var(--blue-dark)}.line-total{grid-column:2 / -1;text-align:right;font-weight:700;font-size:.9rem;margin-top:-6px}.done{display:flex;flex-direction:column;gap:14px}.done-hero{text-align:center;color:#fff;padding:28px 16px 22px;border-radius:var(--radius);background:linear-gradient(135deg,var(--blue) 0%,#2f5fd6 55%,var(--red) 140%);box-shadow:0 8px 24px #1a3fa659}.done-icon{width:72px;height:72px;margin:0 auto 12px;border-radius:50%;background:var(--yellow);display:flex;align-items:center;justify-content:center;font-size:2.2rem;box-shadow:0 4px 14px #0003;animation:pop .45s cubic-bezier(.2,1.4,.4,1)}@keyframes pop{0%{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}.done-hero h3{font-size:1.35rem;font-weight:900}.done-hero p{margin:6px 0 12px;opacity:.9}.done-badge{display:inline-block;background:var(--yellow);color:var(--text);font-weight:900;padding:6px 16px;border-radius:999px;letter-spacing:.3px}.done-summary{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:4px 14px}.done-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}.done-row:last-of-type{border-bottom:0}.done-row strong{font-size:1.15rem;color:var(--blue-dark)}.done-note{margin:0 0 10px;font-size:.88rem;color:var(--muted);text-align:center}.footer{text-align:center;padding:32px 16px 90px;font-size:.85rem;display:flex;flex-direction:column;gap:18px;align-items:center}.contact{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px 20px;display:flex;flex-direction:column;gap:10px;align-items:center;width:100%;max-width:480px;border-top:4px solid var(--yellow)}.contact strong{font-size:1rem}.contact-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.contact-links .btn{font-size:.9rem}.brand-credit{display:flex;flex-direction:column;gap:2px;align-items:center}.brand-credit a{color:var(--text);font-weight:700;text-decoration:none}.brand-credit a:hover{color:var(--blue)}.brand-credit sup{font-size:.65em;margin-left:1px}.brand-credit .muted{font-size:.78rem}.admin-center{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px}.login{width:100%;max-width:360px;padding:24px}.login h2{font-size:1.2rem;margin-bottom:4px}.tabs{display:flex;gap:4px}.tabs a{color:#fff;text-decoration:none;font-weight:700;padding:6px 12px;border-radius:8px;opacity:.8}.tabs a:hover{opacity:1;background:#ffffff1f}.tabs a.active{opacity:1;background:#fff3}.orders{display:flex;flex-direction:column;gap:14px;margin-top:12px}.order{padding:14px 16px;gap:10px;border-left:5px solid var(--yellow)}.order.status-en_camino{border-left-color:var(--blue)}.order.status-entregado{border-left-color:var(--green)}.order.status-cancelado{border-left-color:#b0b4c2;opacity:.75}.order-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.order-head select{margin-left:auto}.order-customer{display:flex;flex-direction:column;gap:2px;font-size:.95rem}.order-items{width:100%;border-collapse:collapse;font-size:.92rem}.order-items td{padding:4px 6px;border-top:1px solid var(--border)}.order-items .qty-col{width:44px;color:var(--muted);white-space:nowrap}.order-items .num{text-align:right;white-space:nowrap}.order-items tfoot td{border-top:2px solid var(--border)}.tag{background:var(--yellow);font-size:.7rem;font-weight:800;text-transform:uppercase;padding:1px 6px;border-radius:4px;margin-left:4px}.item-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}.item-row{flex-direction:row;align-items:center;gap:12px;padding:10px 12px}.item-row.inactive{opacity:.55}.item-thumb{width:56px;height:56px;object-fit:contain;background:#f7f8fb;border-radius:8px;flex-shrink:0;font-size:1.5rem}.item-info{flex:1;min-width:0;display:flex;flex-direction:column}.item-info .muted{font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.stock-badge{align-self:flex-start;margin-top:2px;font-size:.78rem;font-weight:700;color:#1e7a3c}.stock-badge.low{color:#d99a00}.stock-badge.out{color:var(--red)}.item-row{position:relative}.stock-alert{background:#fdecef;color:#8f1d2c;border:1px solid #f5c2ca;border-radius:8px;padding:10px 12px;margin:12px 0 0;font-size:.92rem}.new-category{display:flex;flex-direction:column;gap:6px;align-items:flex-start}.new-category .inline-field{width:100%}.inline-field{display:flex;gap:6px;align-items:center}.inline-field .input{flex:1}.inline-field .btn{white-space:nowrap}.form .hint{font-weight:400;font-size:.8rem;color:var(--muted)}.modal-backdrop{display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto}.modal{width:100%;max-width:460px;padding:20px;max-height:calc(100vh - 32px);overflow-y:auto}.modal h3{font-size:1.15rem}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}@media(max-width:600px){.container{padding:12px}.section-title{font-size:1.1rem;margin-top:16px}.brand{font-size:1.2rem}.topbar{padding:8px 12px}.topbar .btn{padding:7px 12px;font-size:.9rem}.admin .topbar{flex-wrap:wrap;row-gap:6px}.admin .tabs{order:3;width:100%;justify-content:space-between}.tabs a{flex:1;text-align:center;padding:6px 4px;font-size:.9rem}.grid{grid-template-columns:repeat(2,1fr);gap:10px}.grid-combos{grid-template-columns:1fr}.card-body{padding:10px}.card-body h3{font-size:.9rem}.section-head{flex-wrap:wrap}.order-head select{margin-left:0;width:100%}.item-row{flex-wrap:wrap;padding-top:14px}.item-info{flex-basis:calc(100% - 68px)}.item-row .stock-badge{position:absolute;top:8px;right:12px;margin:0}.item-actions{width:100%;justify-content:flex-start}.modal{padding:16px}.cart-fab{bottom:12px;padding:11px 18px;font-size:.92rem}}
