@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800;900&family=Barlow+Condensed:wght@600;700;800;900&display=swap');
:root{--red:#c8101e;--red-dark:#970b16;--red-soft:#fff0ef;--yellow:#f7d9a4;--ink:#171516;--muted:#756d69;--cream:#fff9ef;--paper:#fffdf9;--line:#eadfd4;--green:#20834c;--shadow:0 14px 38px #32100d12}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',system-ui,Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}.topbar{height:68px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(18px,calc((100% - 1160px)/2));position:sticky;top:0;z-index:5;border-bottom:4px solid var(--red);box-shadow:0 5px 18px #0002}.brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;font-family:'Barlow Condensed','DM Sans',sans-serif;font-size:25px;font-weight:900;letter-spacing:1.1px}.brand img{width:46px;height:46px;object-fit:contain;border-radius:50%;background:#fff;border:2px solid #fff}.brand b{color:#ff3340}.top-actions{display:flex;gap:8px}.ghost{background:#ffffff12;color:#fff;border:1px solid #ffffff3b;border-radius:24px;padding:10px 15px;font-weight:800;transition:.2s}.ghost:hover{background:var(--red);border-color:var(--red)}.hero{max-width:1160px;margin:22px auto 0;padding:0 18px}.hero-copy{min-height:208px;overflow:hidden;position:relative;border-radius:23px;background:linear-gradient(100deg,#151213f5 0%,#241012e8 42%,#8d1019b8 100%),url('https://images.unsplash.com/photo-1579751626657-72bc17010498?auto=format&fit=crop&w=1600&q=85') center/cover;display:flex;align-items:center;padding:30px 38px;color:#fff;gap:23px;box-shadow:0 16px 34px #3a11131c}.hero-copy:after{content:'PIZZA TIME';position:absolute;right:24px;bottom:-24px;font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:clamp(60px,10vw,118px);line-height:1;color:#ffffff12;letter-spacing:2px;pointer-events:none}.hero-logo{width:112px;height:112px;object-fit:contain;border-radius:50%;background:#fff;border:4px solid #fff;box-shadow:0 8px 25px #0004;z-index:1}.hero-copy>div{z-index:1}.eyebrow{font-family:'Barlow Condensed',sans-serif;font-size:14px;letter-spacing:2.5px;font-weight:900;color:#ff5962;margin:0 0 6px;text-transform:uppercase}.hero h1{font-family:'Barlow Condensed','DM Sans',sans-serif;font-size:clamp(37px,5vw,58px);font-weight:900;text-transform:uppercase;letter-spacing:.3px;margin:0 0 3px;line-height:.98}.hero p:not(.eyebrow){margin:9px 0 0;color:#fff0e9;font-size:15px}.status{display:inline-block;margin-top:14px;background:#e8f7eb;color:#176b39;padding:7px 13px;border-radius:20px;font-size:12px;font-weight:800}.container{max-width:1160px;margin:24px auto;padding:0 18px 110px}.search input{width:100%;padding:15px 17px;border:1px solid var(--line);border-radius:14px;background:#fff;outline-color:var(--red);box-shadow:0 3px 12px #31100d08}.search input:focus{border-color:var(--red);box-shadow:0 0 0 3px #c8101e16}.categories{display:flex;gap:9px;overflow:auto;padding:14px 0;scrollbar-width:none}.cat{white-space:nowrap;background:#fff;border:1px solid var(--line);border-radius:30px;padding:10px 18px;color:#514a47;font-weight:800;transition:.2s}.cat:hover{border-color:var(--red);color:var(--red)}.cat.active{background:var(--red);border-color:var(--red);color:#fff;box-shadow:0 5px 14px #c8101e30}.section-title{display:flex;align-items:end;justify-content:space-between;margin:12px 0 16px;border-bottom:1px solid var(--line);padding-bottom:11px}.section-title h2{font-family:'Barlow Condensed',sans-serif;font-size:31px;text-transform:uppercase;letter-spacing:.5px;margin:0}.section-title span,.muted{color:var(--muted)}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.product{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:11px;display:flex;gap:13px;min-height:148px;box-shadow:0 4px 14px #25160d08;transition:transform .2s,box-shadow .2s,border-color .2s}.product:hover{transform:translateY(-3px);box-shadow:0 12px 26px #25160d12;border-color:#e5b9b4}.product-info{flex:1;min-width:0;display:flex;flex-direction:column}.product h3{font-family:'Barlow Condensed','DM Sans',sans-serif;text-transform:uppercase;letter-spacing:.2px;margin:2px 0 7px;font-size:21px;line-height:1.05}.product p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.price-row{margin-top:auto;padding-top:12px;display:flex;align-items:center;justify-content:space-between;font-weight:900}.price{color:var(--red);font-size:15px}.add{width:36px;height:36px;border-radius:50%;background:var(--red);color:white;font-size:24px;line-height:1;box-shadow:0 4px 10px #c8101e30;transition:.2s}.add:hover{background:var(--red-dark);transform:scale(1.07)}.food-img{width:112px;height:118px;object-fit:cover;border-radius:13px;background:#f1e8df}.cartbar{position:fixed;bottom:15px;left:50%;transform:translateX(-50%);width:min(650px,calc(100% - 28px));background:var(--ink);color:#fff;border:1px solid #ffffff20;border-radius:18px;padding:13px 17px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 14px 38px #0004;z-index:4}.count{background:#ffffff22;padding:5px 9px;border-radius:20px;margin-right:9px}.btn{background:var(--red);color:#fff;border-radius:11px;padding:12px 18px;font-weight:900;transition:.2s}.btn:hover{background:var(--red-dark);transform:translateY(-1px)}.secondary{background:#eee6df;color:#282020}.full{width:100%;margin-top:10px}.dialog{border:0;border-radius:20px;padding:22px;width:min(560px,calc(100% - 24px));max-height:90vh;box-shadow:0 20px 70px #0004;background:var(--paper)}.dialog::backdrop{background:#0009}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.dialog-head h2{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:28px;margin:0}.icon-btn{width:35px;height:35px;border-radius:50%;background:#f1ece8;font-size:23px}.cart-line{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.qty{display:flex;align-items:center;gap:8px}.qty button{background:#f1ece8;border-radius:8px;width:27px;height:27px}.checkout label,.login-panel label,.form-grid label{display:grid;gap:6px;margin:12px 0;font-size:13px;font-weight:800}.checkout input,.checkout select,.checkout textarea,.login-panel input,.form-grid input,.form-grid textarea,.form-grid select{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px;background:#fff}.total-row{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.admin-view{max-width:1160px;margin:30px auto;padding:0 18px 50px}.hidden{display:none!important}.admin-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.admin-top h1{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:38px;margin:0}.login-panel{max-width:430px;margin:35px auto}.panel{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:var(--shadow)}.admin-toolbar{display:flex;justify-content:space-between;align-items:center;margin:20px 0}.tabs{display:flex;gap:8px;overflow:auto;margin:18px 0}.tab{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 15px;font-weight:850;white-space:nowrap}.tab.active{background:var(--ink);border-color:var(--ink);color:#fff;box-shadow:inset 0 -3px var(--red)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:15px}.stat{background:#fff;border:1px solid var(--line);padding:17px;border-radius:14px}.stat small{color:var(--muted)}.stat strong{display:block;font-size:25px;margin-top:5px;color:var(--red)}.table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse;min-width:620px}.admin-table th,.admin-table td{text-align:left;padding:12px 8px;border-bottom:1px solid var(--line);font-size:13px}.admin-table th{color:var(--muted)}.mini{padding:7px 10px;border-radius:8px;background:#f1ece8;font-weight:750;margin:2px}.danger{background:#ffe8e8;color:#a71920}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-grid .wide{grid-column:1/-1}.notice{background:#fff5e5;border:1px solid #f0d9b6;border-radius:10px;padding:11px 13px;color:#705400;font-size:13px;margin:12px 0}.form-message{font-size:13px;color:var(--red)}.toast{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:11px 16px;border-radius:12px;opacity:0;pointer-events:none;transition:.2s;z-index:20}.toast.show{opacity:1}footer{text-align:center;color:#928b85;padding:28px 15px;font-size:12px}footer strong{color:var(--red);letter-spacing:1px}
@media(max-width:850px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.topbar{height:59px;padding:0 12px}.brand{font-size:21px;gap:8px}.brand img{width:38px;height:38px}.ghost{padding:8px 10px;font-size:11px}.hero{margin-top:13px;padding:0 12px}.hero-copy{padding:18px 15px;min-height:155px;gap:12px;border-radius:17px}.hero-logo{width:72px;height:72px}.hero h1{font-size:36px}.hero-copy p:not(.eyebrow){font-size:12px}.container{margin-top:17px;padding:0 13px 100px}.product-grid{grid-template-columns:1fr;gap:10px}.product{min-height:125px}.food-img{width:104px;height:104px}.stats{grid-template-columns:1fr 1fr}.stats .stat:last-child{grid-column:1/-1}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.cartbar{bottom:8px}.cartbar .btn{padding:11px 13px}}
.checkout-success{border:1px solid #b9dfc3;background:#f0fbf2;border-radius:14px;padding:18px;margin-top:14px}.checkout-success h3{margin:0 0 7px;color:#176b39;font-family:'Barlow Condensed',sans-serif;font-size:27px;text-transform:uppercase}.checkout-success p{color:#355c40;font-size:14px;line-height:1.5}.wa-button{background:#e5f7eb;color:#176b39}.orders-table{min-width:1040px}.orders-table td{vertical-align:top;line-height:1.5}.orders-table small{color:var(--muted)}

/* v2.1 · Monitor de pedidos */
.order-monitor{display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:13px 16px}.order-monitor strong{display:block;font-size:15px}.order-monitor strong span{color:var(--red);font-size:21px}.order-monitor small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.order-monitor .btn[aria-pressed=true]{background:#e5f7eb;color:#176b39}.order-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0;background:#ffede7;border:1px solid #edb2ac;border-left:5px solid var(--red);border-radius:12px;padding:14px;color:#96131b}.order-alert>div{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.order-actions{display:grid;gap:6px;min-width:146px}.order-actions .mini{margin:0}.order-actions select{width:100%;border:1px solid var(--line);padding:6px;border-radius:7px;background:white;font-size:12px}.order-status{display:inline-block;background:#eee9e4;border-radius:6px;padding:5px 8px;font-size:12px;font-weight:800}.order-status[data-state="Nuevo"]{color:#a90f17;background:#ffe3e4}.order-status[data-state="Entregado"],.order-status[data-state="Listo"]{background:#e5f7eb;color:#176b39}.advance-order{background:var(--red);color:white}.new-order-row{background:#fff3ed}.checkout-receipt{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px;line-height:1.5;background:#fff;border:1px solid #d3e5d6;border-radius:10px;padding:12px;color:var(--ink);max-height:260px;overflow:auto}.btn:disabled,.mini:disabled{opacity:.6;cursor:not-allowed}.orders-table{min-width:1120px}
@media(max-width:560px){.order-monitor{padding:10px}.order-monitor .btn{font-size:12px;padding:10px}.order-alert .btn{font-size:12px}.admin-toolbar{gap:10px;flex-wrap:wrap}.checkout-receipt{max-height:200px}.cartbar{bottom:calc(8px + env(safe-area-inset-bottom))}}

.checkout-breakdown{display:grid;gap:6px;color:var(--muted);font-size:13px;margin-top:15px}.checkout-breakdown>div{display:flex;justify-content:space-between}.checkout-breakdown strong{color:var(--ink)}

/* v3 · ajustes de seguridad y configuración */
.schedule-panel{border:1px solid var(--line);padding:16px;border-radius:14px;background:#fffaf4}.schedule-panel h3{margin:0 0 8px}.schedule-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;align-items:center;border-top:1px solid var(--line)}.form-grid label.check-inline{display:flex;gap:8px;align-items:center;font-size:14px}.form-grid .check-inline input{width:18px;height:18px;accent-color:var(--red)}#captchaBox{margin:14px 0;min-height:0;max-width:100%}#captchaHint,#paymentHint{font-size:12px;line-height:1.4}.btn:disabled{opacity:.55;cursor:not-allowed}@media(max-width:560px){.schedule-row{grid-template-columns:1fr 1fr;gap:6px}.schedule-row>.check-inline{grid-column:1/-1;margin-bottom:0}.schedule-row label{margin-top:4px}.dialog{padding:16px}}

.delivery-location{padding:14px;border:1px solid var(--line,#e9e3dc);border-radius:14px;margin:12px 0;background:#fff9ef}.delivery-location h3{margin:0 0 6px}.delivery-location small{color:#776b66;font-size:11px}.delivery-location #deliveryMap{width:100%;height:245px;border-radius:12px;margin:12px 0}.tariff-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 12px}@media(max-width:650px){.tariff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.demo-banner{background:#fff0d2;color:#61410a;text-align:center;padding:9px 14px;font-size:12px;line-height:1.4;border-bottom:1px solid #e8d5b0}.demo-banner strong{letter-spacing:.5px}.demo-map#deliveryMap{height:auto;min-height:0;background:#fff;padding:12px;border:1px solid var(--line);border-radius:14px}.route-illustration svg{width:100%;display:block;border-radius:9px}.route-illustration small{display:block;margin-top:4px;color:#777}.demo-map input[type=range]{accent-color:#c8101e;width:100%}.demo-map .check-inline{display:flex;align-items:center;gap:7px}.demo-map .check-inline input{width:auto}.checkout-receipt{white-space:pre-wrap;overflow-wrap:anywhere}.topbar{position:sticky;top:0}.dialog{max-height:90dvh}.product-grid{padding-bottom:10px}@media(max-width:560px){.brand span{font-size:14px}.ghost{font-size:11px;padding:7px 9px}.topbar{padding:0 12px}.demo-banner{font-size:11px}.admin-table{min-width:620px}.hero-copy{min-height:160px}}
/* v3.2 · checkout mobile-first */
.wizard-dialog{width:min(470px,calc(100% - 28px));height:min(880px,94dvh);max-height:94dvh;padding:0;border-radius:26px;overflow:hidden;background:var(--paper)}.wizard-dialog[open]{display:flex;flex-direction:column}.wizard-head{display:flex;align-items:center;gap:10px;padding:16px 18px 12px;flex-shrink:0}.wizard-head img{width:40px;height:40px;object-fit:contain;border-radius:50%}.wizard-heading{flex:1;min-width:0}.wizard-heading small{font-size:11px;color:var(--muted);font-weight:700}.wizard-heading h2{font-size:21px;margin:2px 0 0;font-weight:900}.wizard-back,.wizard-head .icon-btn{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:50%;background:#f2ebe4;color:var(--ink);font-size:22px}.wizard-back{background:transparent;border:1px solid var(--line)}
.wizard-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:0 18px 16px;border-bottom:1px solid var(--line);flex-shrink:0}.wizard-progress>div{display:grid;gap:7px;font-size:11px;color:#827976;font-weight:700}.wizard-progress>div:nth-child(n+2){text-align:center}.wizard-progress>div:last-child{text-align:right}.wizard-progress i{height:5px;border-radius:9px;background:#e8e2dc}.wizard-progress .current{color:var(--red)}.wizard-progress .current i{background:var(--red)}.wizard-progress .done i{background:#cf9c9d}.wizard-progress .done{color:#61524f}
.wizard-form{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}.wizard-scroll{flex:1;overflow:auto;overscroll-behavior:contain;padding:18px;min-height:0}.wizard-scroll label{font-size:13px;margin:12px 0 6px;color:var(--ink)}.wizard-scroll input:not([type=checkbox]):not([type=range]),.wizard-scroll select,.wizard-scroll textarea{background:#f9f6f1;border:1px solid #e4dbd1;border-radius:12px;padding:13px 12px;min-height:46px;font-size:15px;color:var(--ink);outline-color:var(--red)}.wizard-scroll textarea{resize:vertical;min-height:90px}.phone-grid{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px;margin:0 0 5px}.wizard-scroll .muted{font-size:12px;line-height:1.5}.demo-note{font-size:12px;line-height:1.5;color:#6c5143;background:#fff2de;border:1px solid #eedbc2;border-radius:11px;padding:10px 12px;margin:0 0 15px}.billing-box{border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-top:20px;background:#fff}.billing-box h3{font-size:14px;margin:0;padding:14px;background:#f5eee6;color:var(--red)}.billing-box .wizard-choice{gap:0}.billing-box .wizard-choice button{border:0;border-radius:0;font-size:12px;padding:12px 7px;border-bottom:3px solid transparent;min-height:46px}.billing-box .wizard-choice button.chosen{background:#fff;border-bottom-color:var(--red);color:var(--ink)}.billing-box #billingDetails{padding:0 13px 14px}.wizard-kicker{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin:0 0 13px}.wizard-choice{display:grid;gap:10px}.wizard-choice.two{grid-template-columns:repeat(2,minmax(0,1fr))}.wizard-choice button{border:2px solid #e7dfd8;border-radius:14px;background:#fffdf9;color:#6d6561;font-weight:800;padding:13px;min-height:48px}.wizard-choice button.chosen,.payment-card.chosen{border-color:var(--red);background:#fff0ee;color:#a80c19}.order-choice button{display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;min-height:108px}.order-choice svg{width:29px;height:29px}.wizard-scroll #addressField{margin-top:24px}.address-tile,.other-address{width:100%;display:flex;align-items:center;text-align:left;gap:12px;padding:13px 12px;border:1px solid #e6cb9f;border-radius:12px;background:#fff7e6;color:var(--ink);margin-top:10px}.address-tile>div{flex:1;min-width:0;overflow-wrap:anywhere}.address-tile small{display:block;color:#99590a;font-size:11px;margin-top:4px}.address-tile>span:first-child{font-size:23px;color:var(--red);width:25px}.other-address{background:#fff;border:1px dashed #d7c9be;color:#4b403b;font-weight:700;justify-content:space-between}.wizard-scroll .delivery-location{padding:12px}.wizard-scroll #pickupHint{margin-top:18px}.wizard-scroll .delivery-location h3{font-size:15px}.wizard-scroll .delivery-location .btn{margin-top:8px}.wizard-scroll #deliveryMap .check-inline{font-size:12px}
.payment-cards{display:grid;gap:10px;margin-bottom:15px}.payment-card{background:#fffdf9;border:2px solid #e7dfd8;border-radius:12px;display:flex;gap:12px;align-items:center;padding:15px 13px;font-weight:700;text-align:left;min-height:52px;color:var(--ink);font-size:14px}.radio-dot{width:17px;height:17px;border:2px solid #c8beb7;border-radius:50%;flex-shrink:0}.chosen .radio-dot{border:5px solid var(--red)}.simulation-box{padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff}.simulation-box h3{font-size:15px;margin:0 0 12px}.simulation-box p{font-size:12px;color:var(--muted);line-height:1.5}.sample-card{border-radius:14px;background:linear-gradient(135deg,#171516,#752027);color:#fff;padding:20px;display:grid;gap:17px}.sample-card small,.sample-card span{font-size:10px;letter-spacing:1px}.sample-card b{font-size:20px;letter-spacing:1px}.confirm-items{border:1px solid var(--line);border-radius:13px;background:white;overflow:hidden}.confirm-items>div{display:flex;justify-content:space-between;gap:12px;padding:14px;font-size:14px;border-bottom:1px solid var(--line)}.confirm-items>div:last-child{border:0}.confirm-details{background:#f7f0e8;padding:13px;border-radius:12px;color:#574c46;line-height:1.6;font-size:13px;margin:12px 0}.wizard-footer{flex-shrink:0;padding:12px 18px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}.wizard-footer .checkout-breakdown{margin:0 0 10px;padding:12px;background:#f6f1eb;border-radius:12px;gap:8px}.wizard-total{border-top:1px solid var(--line);padding-top:8px;color:var(--ink);font-size:16px}.wizard-footer .btn.full{margin:0;min-height:52px;border-radius:14px;font-size:15px}.wizard-footer .form-message{margin:0 0 8px;line-height:1.4;font-weight:600}.wizard-footer .form-message:empty{display:none}.wizard-dialog .checkout-success{margin:18px;overflow:auto}.fee-dialog{text-align:center;width:min(360px,calc(100% - 40px));padding:25px;background:var(--paper)}.fee-dialog h2{font-size:22px;margin:10px 0}.fee-dialog p{color:var(--muted);font-size:14px;line-height:1.5}.fee-symbol{margin:auto;width:60px;height:60px;border-radius:50%;display:grid;place-items:center;color:var(--red);background:#fff0ee;font-size:30px;font-weight:bold}.wizard-dialog .cart-line{align-items:center}.wizard-dialog .cart-line .qty button{width:32px;height:32px}.wizard-dialog .cart-line>div:first-child{flex:1;min-width:0}.wizard-dialog .cart-line>b{font-size:13px;white-space:nowrap}.wizard-dialog button:focus-visible{outline:2px solid var(--red);outline-offset:2px}
@media(max-width:520px){.wizard-dialog{width:100%;height:100dvh;max-height:100dvh;max-width:none;border-radius:0;margin:0}.wizard-scroll{padding:16px}.wizard-head{padding:13px 16px 10px}.wizard-footer{padding:12px 16px max(18px,env(safe-area-inset-bottom))}.wizard-progress{padding:0 16px 12px}.wizard-heading h2{font-size:20px}.wizard-choice button{padding:11px 6px}.wizard-dialog .checkout-success{margin:14px}}

/* v3.3 — sistema visual propio: cartel de pizzería, tarjetas fotográficas y compra compacta */
:root{--red:#bd1422;--red-dark:#960d18;--cream:#f7f1e4;--paper:#fffdf7;--ink:#221c1b;--muted:#74635d;--line:#e5d9c8;--shadow:0 10px 30px #452a1910}
body{background:var(--cream)}.topbar{background:var(--paper);color:var(--ink);border:0;border-bottom:1px solid var(--line);box-shadow:none;height:74px}.brand{color:var(--ink);letter-spacing:.6px}.brand b{color:var(--red)}.brand img{border:0}.ghost{background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:9px}.ghost:hover{color:white}.demo-banner{background:var(--ink);color:#f7e9d6;border:0;font-size:11px;letter-spacing:.2px}.hero{margin-top:22px}.hero-copy{min-height:285px;display:grid;grid-template-columns:110px 1fr;gap:24px;border-radius:8px 8px 36px 8px;background:linear-gradient(95deg,#a40f1eef 0%,#b91b28ed 46%,#32161442 100%),url('https://images.unsplash.com/photo-1579751626657-72bc17010498?auto=format&fit=crop&w=1400&q=85') center/cover;box-shadow:none;padding:30px 38px}.hero-copy:after{content:'¡DISFRUTA!';color:#fff2;right:10px;bottom:-20px;font-size:clamp(80px,16vw,180px)}.hero h1{font-size:clamp(54px,8vw,100px);line-height:.81;letter-spacing:-1px;transform:rotate(-2deg);transform-origin:left center;margin:12px 0 20px}.hero .eyebrow{color:#ffe8ba;font-family:'DM Sans',sans-serif;font-size:10px;letter-spacing:2px}.hero-logo{align-self:start;margin-top:12px;width:95px;height:95px;box-shadow:none}.hero .status{background:var(--paper);color:#27613d;border-radius:4px}.container{margin-top:26px}.menu-intro{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.menu-intro .eyebrow{color:var(--red);margin:0;font-size:16px}.menu-intro p{margin:0;color:var(--muted);font-size:13px}.search input{border-radius:8px;box-shadow:none}.categories{gap:6px}.cat{border-radius:7px;padding:10px 17px;background:transparent;border-color:transparent}.cat.active{background:var(--ink);border-color:var(--ink);box-shadow:none}.section-title{border-bottom:2px solid var(--ink);align-items:center}.section-title h2{font-size:34px}.section-title span{font-size:12px}.product-grid{gap:18px}.product{display:flex;flex-direction:column-reverse;justify-content:flex-end;padding:0;gap:0;border-radius:12px;overflow:hidden;box-shadow:none;min-height:0;background:var(--paper)}.product:hover{transform:translateY(-2px)}.food-img{width:100%;height:auto;aspect-ratio:1.65;object-fit:cover;border-radius:0;display:block}.product-info{padding:14px 15px 15px;min-height:150px}.product h3{font-size:25px;line-height:1}.product p{font-size:13px}.price-row{padding-top:14px}.price{font-size:18px}.add{border-radius:9px;box-shadow:none;width:42px;height:40px}.cartbar{border:0;border-radius:12px;background:var(--ink);bottom:14px;max-width:600px}.cartbar .btn{border-radius:7px}.panel{border-radius:12px;box-shadow:none}.admin-top h1{letter-spacing:.5px}.tabs{border-bottom:1px solid var(--line);padding-bottom:8px}.tab{border-radius:7px}.tab.active{box-shadow:none}.btn{border-radius:8px}.btn:hover{transform:none}.secondary:hover{background:#e5d8cb;color:var(--ink)}
/* checkout: circular step markers, not segmented progress lines */
.wizard-dialog{width:min(610px,calc(100% - 30px));height:auto;max-height:90dvh;border-radius:18px;background:var(--paper)}.wizard-head{padding:20px 22px;background:var(--ink);color:#fff;gap:12px}.wizard-heading small{color:#e6cbb7}.wizard-heading h2{font-family:'Barlow Condensed',system-ui,sans-serif;font-size:30px;line-height:1;text-transform:uppercase;letter-spacing:.3px}.wizard-back,.wizard-head .icon-btn{color:#fff;background:#ffffff18;border:1px solid #ffffff30;border-radius:9px}.wizard-progress{padding:14px 20px;background:#f2e9dc;gap:8px;border-bottom:0}.wizard-progress>div{display:flex;gap:6px;align-items:center;justify-content:center;flex-wrap:wrap;font-size:11px;text-align:center!important}.wizard-progress i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-style:normal;background:#e2d6c7;color:#61524a;font-size:12px}.wizard-progress .current i{background:var(--red);color:#fff}.wizard-progress .done i{background:var(--ink);color:#fff}.wizard-progress .current{color:var(--red)}.wizard-scroll{padding:22px;flex:0 1 auto}.wizard-form{flex:0 1 auto}.wizard-footer{padding:14px 22px 18px;background:#fffdf7}.wizard-footer .btn.full{border-radius:8px}.wizard-footer .checkout-breakdown{background:#f4ebde;border-radius:8px}.wizard-scroll input:not([type=checkbox]):not([type=range]),.wizard-scroll select,.wizard-scroll textarea{background:#fff;border-radius:8px}.billing-box{border-radius:8px;margin-top:18px}.billing-box h3{color:var(--ink);background:#f3e7d4}.billing-box .wizard-choice{padding:8px;gap:8px}.billing-box .wizard-choice button{border:1px solid var(--line);border-radius:7px}.billing-box .wizard-choice button.chosen{background:var(--ink);color:white;border-color:var(--ink)}.order-choice button{min-height:82px;flex-direction:row;justify-content:flex-start;text-align:left;border-radius:8px;background:#fff}.wizard-choice button.chosen,.payment-card.chosen{background:#fff4e4;border-color:var(--red);color:var(--ink)}.address-tile,.other-address{border-radius:8px}.payment-card{border-radius:8px;border-width:1px;min-height:58px}.payment-card.chosen{box-shadow:inset 4px 0 var(--red)}.confirm-items,.confirm-details{border-radius:8px}.cart-handle{display:none}
/* compact cart: only title, editable items and total */
.wizard-dialog.compact-cart{width:min(480px,calc(100% - 30px));height:auto;max-height:83dvh;border-radius:18px}.compact-cart .wizard-head{background:var(--paper);color:var(--ink);padding:23px 20px 10px;position:relative}.compact-cart .wizard-heading h2{font-family:'DM Sans',system-ui,sans-serif;text-transform:none;font-size:23px;letter-spacing:-.5px}.compact-cart .wizard-head img,.compact-cart .wizard-heading small,.compact-cart .wizard-back{display:none}.compact-cart .wizard-head .icon-btn{background:#f2e9dc;border:0;color:var(--ink)}.compact-cart .cart-handle{display:block;position:absolute;top:7px;left:calc(50% - 18px);height:4px;width:36px;border-radius:8px;background:#e8ded0}.compact-cart .wizard-scroll{padding:10px 20px 14px;max-height:52dvh}.compact-cart .wizard-footer{padding:10px 20px 20px}.compact-cart .checkout-breakdown{padding:0;background:none;border-radius:0;margin:0 0 12px}.compact-cart #wizardTotals>div:not(.wizard-total){display:none!important}.compact-cart .wizard-total{border:0;padding-top:3px;font-size:18px}.compact-cart .cart-item{display:flex;align-items:flex-start;gap:12px;background:#f4ece0;border:0;border-radius:10px;padding:12px;margin-bottom:8px}.compact-cart .cart-thumb{width:58px;height:58px;object-fit:cover;border-radius:7px}.cart-item-info{flex:1;min-width:0;display:grid;gap:5px}.cart-item-info>b{font-size:15px;overflow-wrap:anywhere}.cart-item-info small{color:var(--muted);font-size:12px}.cart-item-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px}.cart-item-bottom strong{color:var(--red)}.cart-item .qty{background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:2px;gap:6px}.cart-item .qty button{background:#f6e9db;border-radius:6px;width:29px;height:29px;font-size:18px}.remove-item{background:transparent;color:#8a6e62;font-size:21px;padding:0 4px;line-height:1;min-height:24px}.remove-item:hover{color:var(--red)}.empty-cart{text-align:center;padding:18px 8px;color:var(--muted)}.empty-cart>span{font-size:30px}.empty-cart h3{margin:8px 0;color:var(--ink);font-size:17px}.empty-cart p{margin:0;font-size:13px}
/* destination map */
.delivery-location{border-radius:10px!important;background:#f7efe0!important}.delivery-heading{display:flex;gap:11px;align-items:center}.map-icon{display:grid;place-items:center;width:38px;height:38px;background:var(--red);color:white;border-radius:8px;font-size:23px}.delivery-heading h3{margin:0!important}.delivery-heading p{font-size:12px;margin:3px 0;color:var(--muted)}.map-frame{position:relative;isolation:isolate;height:250px;border-radius:8px;overflow:hidden;background:#eee8d9}.map-frame #fallbackMap{position:absolute;inset:0}.map-frame #fallbackMap svg{width:100%;height:100%;display:block;cursor:crosshair;background:#eee8d9;touch-action:manipulation}.map-fallback-label{position:absolute;bottom:5px;left:5px;background:#fffdf7dd;color:#63584e;border-radius:3px;padding:3px 5px;font-size:10px!important;pointer-events:none}.map-instruction{font-size:11px;color:var(--muted);line-height:1.5;margin:8px 0}.map-readout{display:grid;grid-template-columns:1fr 1.3fr;gap:6px;border-top:1px solid var(--line);padding-top:10px}.map-readout>div{display:grid;gap:3px;min-width:0}.map-readout strong{font-size:14px;overflow-wrap:anywhere}
@media(max-width:650px){.topbar{height:62px}.hero{margin-top:13px;padding:0 12px}.hero-copy{min-height:212px;grid-template-columns:62px 1fr;gap:12px;padding:22px 16px}.hero-logo{width:62px;height:62px}.hero h1{font-size:61px}.hero-copy:after{font-size:100px;bottom:-10px}.hero p:not(.eyebrow){font-size:12px}.hero .eyebrow{font-size:9px}.menu-intro p{font-size:11px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-info{padding:10px;min-height:145px}.product h3{font-size:20px}.product p{font-size:11px;line-height:1.35}.price{font-size:15px}.add{width:34px;height:34px}.food-img{aspect-ratio:1.23}.section-title h2{font-size:28px}.cat{padding:9px 11px;font-size:13px}.wizard-dialog:not(.compact-cart){width:100%;height:auto;max-height:96dvh;margin:auto 0 0;border-radius:16px 16px 0 0}.wizard-head{padding:13px 16px}.wizard-heading h2{font-size:25px}.wizard-scroll{padding:16px}.wizard-progress{padding:12px 10px}.wizard-progress>div{flex-direction:column;gap:3px}.wizard-footer{padding:12px 16px max(15px,env(safe-area-inset-bottom))}.wizard-dialog.compact-cart{width:100%;max-width:480px;height:auto;max-height:84dvh;margin:auto auto 0;border-radius:18px 18px 0 0}.compact-cart .wizard-scroll{padding:8px 14px 10px}.compact-cart .wizard-footer{padding:12px 14px max(16px,env(safe-area-inset-bottom))}.map-frame{height:220px}.order-choice button{flex-direction:column;justify-content:center;gap:5px;min-height:82px}.cartbar{bottom:calc(8px + env(safe-area-inset-bottom))}}
@media(max-width:350px){.hero h1{font-size:48px}.hero-copy{grid-template-columns:1fr}.hero-logo{display:none}.product-grid{grid-template-columns:1fr}.product-info{min-height:110px}.cart-item .qty{gap:3px}.compact-cart .cart-thumb{width:44px;height:44px}}
/* Native dialog with auto margins must have intrinsic height, not stretch between both edges. */
.wizard-dialog,.wizard-dialog.compact-cart{height:fit-content}.wizard-dialog.compact-cart .wizard-form{flex:0 1 auto}.wizard-dialog.compact-cart .wizard-scroll{flex:0 1 auto}.wizard-dialog.compact-cart .wizard-footer{flex:0 0 auto}
@media(max-width:650px){.wizard-dialog:not(.compact-cart),.wizard-dialog.compact-cart{height:fit-content;inset-block-start:auto;inset-block-end:0}}

/* v3.4: identidad editable */
.brand{min-width:0}.brand img{flex-shrink:0}.brand span{overflow-wrap:anywhere;min-width:0}.sample-card span{overflow-wrap:anywhere}.brand-settings .brand-editor{display:flex;align-items:flex-start;gap:18px;margin-top:14px}.brand-editor>img{width:100px;height:100px;flex-shrink:0;object-fit:contain;border-radius:14px;border:1px solid #ddd;background:white;padding:5px}.brand-editor-fields{min-width:0;flex:1}.brand-editor-fields input[type=file]{max-width:100%;font-size:13px}.brand-editor-fields .mini{margin-top:10px}.brand-editor-fields p{margin:8px 0 0}.wizard-heading small{overflow-wrap:anywhere}@media(max-width:480px){.brand-editor>img{width:76px;height:76px}.brand-settings .brand-editor{gap:10px}.brand span{font-size:13px}}

/* v3.5: configurable storefront and operations */
:root{--accent-ink:#fff;--accent-on-dark:#ff5962}
.brand b,.eyebrow{color:var(--accent-on-dark)}
.btn:not(.secondary),.add,.cat.active{color:var(--accent-ink)}
.hero-copy{background-color:var(--red-dark)}
.custom-product{display:grid;gap:12px}.custom-product fieldset{border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-width:0;margin:0}.custom-product legend{font-weight:800;font-size:14px;padding:0 5px}.custom-product .option-row{display:flex;align-items:center;flex-direction:row;gap:10px;padding:8px 0;margin:0;cursor:pointer}.option-row input{width:18px;height:18px;margin:0;accent-color:var(--red);flex-shrink:0}.option-row span{flex:1;overflow-wrap:anywhere}.option-row b{white-space:nowrap}.custom-product .btn{width:100%;position:sticky;bottom:0}.cart-item-info small{overflow-wrap:anywhere}.sound-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:12px;margin:0 0 15px}.sound-controls label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700}.sound-controls select{max-width:140px;padding:6px}.sound-controls input[type=range]{width:105px;accent-color:var(--red)}.sound-controls small{flex:1;min-width:220px}.theme-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}.theme-fields input[type=color]{width:100%;height:43px;padding:5px;cursor:pointer}.cover-preview{display:block;width:min(100%,400px);height:125px;object-fit:cover;border-radius:12px;margin:10px 0;background:var(--cream)}.sales-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.sales-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;align-items:end;margin-top:16px}.sales-col{display:grid;gap:6px;text-align:center;min-width:0}.sales-col small{font-size:clamp(8px,1.5vw,12px);overflow-wrap:anywhere}.sales-track{height:120px;background:var(--red-soft);border-radius:7px;display:flex;align-items:flex-end;overflow:hidden}.sales-track i{display:block;width:100%;background:var(--red);border-radius:5px 5px 0 0}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.report-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:10px 0}.report-row span{overflow-wrap:anywhere}.report-row b{white-space:nowrap}.print-ticket{font-family:monospace;color:#111;background:#fff;padding:18px;max-width:420px;margin:0 auto 16px;border:1px dashed #bbb;overflow-wrap:anywhere}.print-ticket h1,.print-ticket h2{margin:8px 0}.print-ticket p{line-height:1.4;margin:8px 0}.reset-actions{display:grid;gap:10px}.orders-table [data-print]{margin-top:8px;white-space:normal}.form-grid .schedule-panel textarea{width:100%;resize:vertical}
@media(max-width:650px){.sales-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grid{grid-template-columns:1fr}.sales-track{height:95px}.sound-controls small{min-width:100%}.sound-controls label{flex-wrap:wrap}.sound-controls{gap:8px}.sales-chart{gap:4px}.theme-fields{gap:8px}}
@media print{body>*:not(#printDialog){display:none!important}html,body{background:#fff!important;margin:0!important;padding:0!important}#printDialog[open]{display:block!important;position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;max-height:none!important;height:auto!important;overflow:visible!important;box-shadow:none!important;border:none!important;margin:0!important;padding:0!important;background:white!important}#printDialog::backdrop{display:none!important}#printDialog .dialog-head,#printNow{display:none!important}#printTicket{display:block!important;border:none!important;margin:0 auto!important;max-width:76mm!important;width:100%!important;padding:3mm!important;break-inside:avoid!important;font-size:11pt!important}@page{margin:5mm}}

/* Selector de categorías del administrador */
.category-field{min-width:0}.category-field select{width:100%;min-height:42px;cursor:pointer}.category-field #customCategoryWrap{margin-top:10px}.category-field #customCategoryWrap.hidden{display:none!important}

/* WhatsApp, vista previa local */
.demo-wa-send.btn{background:#16834a;color:#fff;border-color:#16834a}.demo-wa-send.btn:hover{background:#116a3b}.demo-wa-recipient{padding:10px 12px;background:#eaf7ee;border:1px solid #c5e5ce;border-radius:10px;color:#185b32;font-weight:600;overflow-wrap:anywhere}#demoWaText{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:14px}

/* v3.5.4: ticket térmico, vista previa e impresión */
.print-ticket{font-family:Arial,sans-serif;font-size:12px;line-height:1.35;color:#111;max-width:76mm;width:100%;padding:3mm;border:1px dashed #aaa;background:white;overflow-wrap:anywhere}.ticket-heading{text-align:center}.print-ticket .ticket-heading h2{font-size:17px;margin:0 0 4px}.print-ticket .ticket-heading h1{font-size:21px;margin:9px 0 3px}.print-ticket p{margin:4px 0}.print-ticket h3{font-size:12px;text-transform:uppercase;letter-spacing:.35px;margin:0 0 5px}.ticket-type{font-weight:bold}.ticket-section{border-top:1px dashed #999;padding:8px 0}.ticket-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start;margin:4px 0}.ticket-row b{white-space:nowrap}.ticket-total{font-size:17px;font-weight:bold;border-top:1px solid #111;padding-top:7px;margin-top:7px}.ticket-notes{border:1px solid #ccc;padding:6px}.ticket-qr{text-align:center;margin:8px 0 0}.ticket-qr svg{display:block;width:39mm;height:39mm;margin:0 auto;max-width:100%}.ticket-qr p{font-size:11px}.ticket-qr a{font-size:11px;color:#111}.ticket-footer{border-top:1px dashed #999;padding-top:8px}.ticket-footer h3{font-size:15px}.ticket-disclaimer{font-size:10px;font-weight:bold}.ticket-row,.ticket-qr,.ticket-footer{break-inside:avoid}@media print{#printTicket{padding:2mm!important;max-width:76mm!important;color:#000!important;font-size:11px!important}.ticket-qr a{display:none!important}.ticket-qr svg{width:39mm!important;height:39mm!important}.ticket-section{border-color:#000}#printDialog{overflow:visible!important}}

/* v3.5.5: adaptable ticket, actual roll selected in printer preferences */
.ticket-controls{display:grid;gap:6px;margin:0 0 14px}.ticket-controls select{max-width:240px}.print-ticket{box-sizing:border-box;margin:0 auto}.print-ticket[data-paper="58"]{max-width:54mm;font-size:11px;padding:2mm}.print-ticket[data-paper="58"] .ticket-heading h1{font-size:17px}.print-ticket[data-paper="58"] .ticket-heading h2,.print-ticket[data-paper="58"] .ticket-total{font-size:15px}.print-ticket[data-paper="58"] .ticket-row{gap:4px}.print-ticket[data-paper="58"] .ticket-qr svg{width:34mm;height:34mm}.print-ticket[data-paper="a4"]{max-width:190mm;font-size:14px;padding:5mm}.print-ticket[data-paper="a4"] .ticket-heading h1{font-size:24px}
@media print{#printDialog .ticket-controls{display:none!important}#printTicket{box-sizing:border-box;break-inside:auto!important}#printTicket[data-paper="58"]{max-width:54mm!important;padding:1mm!important;font-size:10px!important}#printTicket[data-paper="58"] .ticket-qr svg{width:34mm!important;height:34mm!important}#printTicket[data-paper="80"]{max-width:76mm!important;padding:2mm!important}#printTicket[data-paper="a4"]{max-width:190mm!important;padding:4mm!important;font-size:13px!important}}

.billing-note{margin:0 13px 12px;font-size:12px;line-height:1.45}.ticket-section p{overflow-wrap:anywhere}

/* v3.6.2 · Roles informativos, sin inicio de sesión */
.roles-dialog{width:min(620px,calc(100% - 28px));max-height:90dvh;overflow:auto}.role-heading{background:var(--ink);color:white;border-radius:12px;text-align:center;padding:20px 12px}.role-heading img{height:42px;width:42px;object-fit:contain;margin:auto}.role-heading h2{font-size:20px;margin:8px 0}.role-heading p{font-size:13px;color:#eadbd0;margin:0}.demo-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.demo-role-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);padding:18px 12px;min-width:0}.demo-role-card svg{width:27px;height:27px;color:var(--red)}.demo-role-card h3{font-size:15px;margin:0}.demo-role-card p{font-size:13px;line-height:1.45;margin:0;color:var(--muted)}.role-note{text-align:center;font-size:13px;line-height:1.5;margin:12px 0 16px}.admin-roles-row .roles-trigger{min-height:36px;padding:8px 18px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);font-weight:700}.admin-roles-row .roles-trigger:hover{color:var(--red);border-color:var(--red)}@media(max-width:420px){.demo-role-grid{grid-template-columns:1fr}.demo-role-card{padding:14px}}

/* v3.6.3: acceso informativo debajo de los controles de sonido */
.admin-roles-row{display:flex;justify-content:flex-end;align-items:center;margin:12px 0 14px;}

/* v3.6.5 · Ventana de producto, foto, opciones y cantidad */
#productDialog{width:min(470px,calc(100% - 28px));max-height:min(92vh,850px);max-height:min(92dvh,850px);padding:0;border:0;border-radius:24px;background:var(--paper);color:var(--ink);overflow:hidden;box-shadow:0 24px 70px #211c1940;font-family:'DM Sans',system-ui,sans-serif;box-sizing:border-box}
#productDialog[open]{display:flex;flex-direction:column;animation:product-sheet-in .22s ease-out}
#productDialog::backdrop{background:#201d1966;backdrop-filter:blur(3px)}
#productDialog .product-sheet-head{position:relative;flex:none;padding:17px 16px 12px;background:var(--paper)}
#productDialog .product-sheet-handle{display:block;position:absolute;top:6px;left:50%;transform:translateX(-50%);width:36px;height:4px;background:var(--line);border-radius:10px}
#productDialog .product-sheet-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
#productDialog .product-sheet-title h2{margin:0;font-family:inherit;font-size:23px;font-weight:750;letter-spacing:-.55px;line-height:1.25;text-transform:none;overflow-wrap:anywhere;min-width:0}
#productDialog .product-sheet-close{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:50%;background:#f4efea;border:1px solid var(--line);color:var(--muted);font-size:23px;font-weight:400;line-height:1;padding:0}
#productDialog .product-sheet-description{margin:3px 40px 0 0;font-size:13px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
#productDialogBody{display:flex;flex:1 1 auto;min-height:0;overflow:hidden}
#productDialog .custom-product{display:flex;flex-direction:column;gap:0;width:100%;min-height:0;margin:0}
#productDialog .product-sheet-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1 1 auto;scrollbar-width:thin}
#productDialog .product-sheet-photo{display:block;width:100%;height:clamp(145px,27vh,230px);object-fit:cover;background:var(--cream);margin:0}
#productDialog .product-sheet-groups{display:grid;gap:24px;padding:18px 15px 23px}
#productDialog .product-options{border:0;padding:0;margin:0;min-width:0;border-radius:0}
#productDialog .product-options legend{padding:0 0 10px;margin:0;width:100%;font-size:14px;font-weight:750;line-height:1.4}
#productDialog .product-required{color:var(--red)}
#productDialog .product-option-card{display:grid;gap:7px;background:none;padding:0;border:0}
#productDialog .option-row{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 13px;margin:0;border-radius:13px;font-size:14px;font-weight:500;border:1px solid var(--line);background:var(--paper);transition:background .15s,border-color .15s;cursor:pointer}
#productDialog .option-row:has(input:checked){background:var(--red-soft);border-color:var(--red)}
#productDialog .option-row:has(input:focus-visible){outline:2px solid var(--red);outline-offset:2px}
#productDialog .option-row input{width:17px;height:17px;accent-color:var(--red);margin:0;flex:none;cursor:pointer}
#productDialog .option-row span{flex:1;min-width:0;overflow-wrap:anywhere}
#productDialog .option-row b{font-size:14px;white-space:nowrap;font-weight:650;color:var(--ink)}
#productDialog .option-row:has(input:checked) b{color:var(--red-dark)}
#productDialog .product-fold summary{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:750;cursor:pointer;list-style:none;min-height:28px}
#productDialog .product-fold summary::-webkit-details-marker{display:none}
#productDialog .product-fold summary small{margin-left:auto;font-size:12px;font-weight:500;color:var(--muted);text-align:right}
#productDialog .product-fold i{width:7px;height:7px;flex:none;border-right:1.6px solid var(--muted);border-bottom:1.6px solid var(--muted);transform:rotate(45deg);margin:0 4px 4px 3px;transition:transform .18s}
#productDialog .product-fold[open] summary i{transform:rotate(225deg);margin-top:6px}
#productDialog .product-fold-body{padding-top:9px}
#productDialog .product-fold-preview{display:none;justify-content:space-between;align-items:center;margin-top:10px;padding:13px 14px;background:#f4efea;border:1px dashed var(--line);border-radius:14px;font-size:13px;color:var(--muted)}
#productDialog .product-fold:not([open]) summary{flex-wrap:wrap}
#productDialog .product-fold:not([open]) .product-fold-preview{display:flex;flex:0 0 100%;font-weight:500}
#productDialog .product-fold:not([open]) summary .product-fold-preview i{transform:rotate(45deg)}
#productDialog .product-sheet-footer{flex:none;padding:12px 15px 15px;background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -4px 16px #211c1908}
#productDialog .product-sheet-quantity{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:550;margin-bottom:12px}
#productDialog .product-qty-control{display:flex;align-items:center;gap:14px}
#productDialog .product-qty-control button{width:34px;height:34px;border-radius:50%;background:var(--paper);border:1px solid var(--line);font-size:21px;line-height:1;color:var(--ink);padding:0}
#productDialog .product-qty-control button:disabled{opacity:.38;cursor:default}
#productDialog .product-qty-control output{min-width:20px;text-align:center;font-weight:750;font-variant-numeric:tabular-nums}
#productDialog .product-sheet-footer .btn{position:static;width:100%;border-radius:17px;min-height:50px;padding:13px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--red);color:var(--accent-ink,#fff);font-size:15px;font-weight:750;box-shadow:none;transition:background .16s,transform .16s}
#productDialog .product-sheet-footer .btn strong{white-space:nowrap;font-size:16px}
#productDialog .product-sheet-footer .btn:hover:not(:disabled){background:var(--red-dark);color:#fff}
#productDialog .product-sheet-footer .btn:active:not(:disabled){transform:scale(.985)}
#productDialog button:focus-visible,#productDialog summary:focus-visible{outline:2px solid var(--red);outline-offset:3px}
@keyframes product-sheet-in{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:560px){#productDialog{width:100%;max-width:100%;margin:auto 0 0;max-height:94vh;max-height:94dvh;border-radius:24px 24px 0 0}#productDialog .product-sheet-footer{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}#productDialog .product-sheet-title h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){#productDialog[open]{animation:none}#productDialog .option-row,#productDialog .product-sheet-footer .btn,#productDialog .product-fold i{transition:none}}
