/* Product detail: prominent photo, structured options and a persistent action. */
#product-modal{box-sizing:border-box;width:min(720px,calc(100vw - 48px));max-width:720px;max-height:90dvh;margin:auto;padding:0;border:0;border-radius:18px;overflow:hidden;background:#fff;color:#294356;box-shadow:0 24px 80px #142b4540}
#product-modal::backdrop{background:rgba(23,36,48,.58);backdrop-filter:blur(3px)}
#product-modal>form[method=dialog]{display:none}
#product-modal #product-content{position:relative;max-height:90dvh;padding:0}
#product-modal #product-options{display:flex;flex-direction:column;max-height:90dvh;margin:0;gap:0}
#product-modal .close-product{position:absolute;z-index:5;top:16px;right:16px;display:grid;place-items:center;width:38px;height:38px;min-height:0;margin:0;padding:0;border:1px solid #e3eaf0;border-radius:50%;background:#fff;color:#294356;box-shadow:0 3px 12px #29435618;font-size:25px;font-weight:400;line-height:1;cursor:pointer}
#product-modal .close-product:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
#product-modal .product-dialog-scroll{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:0;scroll-behavior:smooth;scrollbar-width:thin}
#product-modal .product-dialog-scroll .modal-food{display:grid;place-items:center;box-sizing:border-box;width:100%;height:300px;min-height:0;margin:0;padding:0;border-radius:0;background:#f3f6f8;overflow:hidden;font-size:70px}
#product-modal .product-dialog-scroll .modal-food img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center;border-radius:0}
#product-modal .product-intro{padding:26px 30px 28px;margin:0;border-bottom:8px solid #f5f7f9}
#product-modal .product-category{display:block;margin:0 0 8px;color:var(--brand);font-size:10px;font-weight:600;letter-spacing:.07em;text-transform:uppercase}
#product-modal .product-intro h2{margin:0 0 12px;color:#294356;font-size:24px;line-height:1.3;letter-spacing:-.035em;font-weight:700}
#product-modal .product-intro p{margin:0 0 18px;color:#7c91a2;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
#product-modal .intro-price{display:block;margin:0;padding:0}
#product-modal .intro-price strong{color:#294356;font-size:21px;line-height:1.3;font-weight:650}
#product-modal .product-customization{padding:0 30px 24px}
#product-modal .choice-group{display:block;min-width:0;margin:0;padding:0 0 8px;border:0;border-radius:0;overflow:visible;scroll-margin-top:10px}
#product-modal .choice-group legend{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:14px;float:left;width:calc(100% + 60px);margin:0 -30px 8px;padding:20px 30px;background:#f5f7f9;border:0;border-radius:0;color:#294356;font-size:16px;line-height:1.4;font-weight:650}
#product-modal .choice-group legend+*{clear:both}
#product-modal .choice-group legend span{min-width:0;overflow-wrap:anywhere}
#product-modal .choice-group legend small{display:block;margin-top:5px;color:#7c91a2;font-size:11px;font-weight:400;line-height:1.5}
#product-modal .choice-tag{display:flex;align-items:center;gap:7px;flex:none;max-width:50%;margin:0;padding:5px 8px;background:#e9eef2;color:#60758a;border:0;border-radius:5px;font-size:9px;font-weight:600;white-space:normal}
#product-modal .choice-tag em{font-size:9px;font-style:normal}
#product-modal .choice-row{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:74px;padding:16px 0;margin:0;border-bottom:1px solid #edf1f5;background:#fff}
#product-modal .choice-row>div:first-child{min-width:0;flex:1}
#product-modal .choice-row b{display:block;font-size:13px;line-height:1.5;font-weight:500;overflow-wrap:anywhere;color:#406279}
#product-modal .choice-row small{display:block;margin-top:4px;color:#8296a7;font-size:11px}
#product-modal .choice-stepper{display:flex;align-items:center;gap:12px;flex:none}
#product-modal .choice-stepper button{display:grid;place-items:center;width:30px;height:30px;min-height:0;padding:0;border:1px solid #e1e9f0;border-radius:50%;background:#fff;color:var(--brand);font-size:19px;line-height:1;cursor:pointer}
#product-modal .choice-stepper output{min-width:12px;color:#406279;font-size:12px;text-align:center}
#product-modal .note-label{display:flex;flex-direction:column;gap:6px;margin:24px 0 0;color:#294356;font-size:15px;font-weight:600}
#product-modal .note-label small{margin:0;font-size:11px;line-height:1.5;font-weight:400;color:#8296a7}
#product-modal .note-label textarea{box-sizing:border-box;width:100%;min-height:88px;margin:8px 0 0;padding:13px 14px;border:1px solid #dfe8f0;border-radius:10px;background:#fff;color:#406279;font:inherit;font-size:12px;line-height:1.6;font-weight:400;resize:vertical}
#product-modal .product-dialog-footer{box-sizing:border-box;display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:0 20px;flex:none;margin:0;padding:18px 30px;background:#fff;border-top:1px solid #e3eaf0;box-shadow:0 -4px 16px #29435605}
#product-modal #option-error{grid-column:1/-1;margin:0 0 12px;padding:10px 12px;border-radius:8px;background:#fff4ee;color:#ad4f32;font-size:12px;line-height:1.5}
#product-modal #option-error:empty{display:none}
#product-modal .quantity-stepper{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:8px;height:48px;padding:0 9px;border:1px solid #dfe8f0;border-radius:10px}
#product-modal .quantity-stepper button{width:25px;height:30px;min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--brand);font-size:22px;line-height:1;cursor:pointer}
#product-modal .quantity-stepper button:disabled{color:#c5d0d9;cursor:default}
#product-modal .quantity-stepper output{min-width:14px;font-size:13px;text-align:center;color:#294356;font-weight:600}
#product-modal #add-to-cart{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:48px;margin:0;padding:14px 18px;border:0;border-radius:10px;background:var(--brand);color:white;font:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer}
#product-modal #add-to-cart b{font-size:14px;white-space:nowrap}
@media(max-width:600px){#product-modal{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border-radius:0}#product-modal #product-content,#product-modal #product-options{height:100dvh;max-height:100dvh}#product-modal .product-dialog-scroll .modal-food{height:270px;flex:none}#product-modal .close-product{top:max(14px,env(safe-area-inset-top));right:14px}#product-modal .product-intro{padding:23px 20px}#product-modal .product-intro h2{font-size:22px}#product-modal .product-intro p{font-size:12px;line-height:1.75}#product-modal .intro-price strong{font-size:20px}#product-modal .product-customization{padding:0 20px 24px}#product-modal .choice-group legend{width:calc(100% + 40px);margin-left:-20px;margin-right:-20px;padding:18px 20px;font-size:15px}#product-modal .choice-group legend small{font-size:10px}#product-modal .choice-tag{font-size:8px;padding:5px 7px;gap:5px}#product-modal .choice-row{gap:12px}#product-modal .choice-stepper{gap:10px}#product-modal .choice-row b{font-size:12px}#product-modal .product-dialog-footer{grid-template-columns:94px minmax(0,1fr);gap:0 12px;padding:14px 16px max(14px,env(safe-area-inset-bottom))}#product-modal .quantity-stepper{height:50px;padding:0 7px}#product-modal #add-to-cart{min-height:50px;padding:12px;font-size:12px}#product-modal #add-to-cart b{font-size:12px}}
@media(max-width:350px){#product-modal .product-dialog-footer{grid-template-columns:82px minmax(0,1fr);gap:0 9px;padding-left:12px;padding-right:12px}#product-modal #add-to-cart{font-size:11px;padding:12px 10px}#product-modal #add-to-cart b{font-size:11px}#product-modal .choice-tag{flex-direction:column;gap:2px}#product-modal .product-dialog-scroll .modal-food{height:230px}}
#product-modal .disposable-choice{position:relative;cursor:pointer}
#product-modal .disposable-choice>span:first-child{flex:1;min-width:0}
#product-modal .disposable-choice input{position:absolute;right:0;top:50%;transform:translateY(-50%);width:32px;height:32px;margin:0;opacity:0;cursor:pointer}
#product-modal .disposable-circle{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border:2px solid #cedbe5;border-radius:50%;background:#fff;pointer-events:none}
#product-modal .disposable-choice input:checked+.disposable-circle{border-color:var(--brand);background:var(--brand)}
#product-modal .disposable-choice input:checked+.disposable-circle:after{content:'✓';font-size:14px;font-weight:700;color:#fff}
#product-modal .disposable-choice input:focus-visible+.disposable-circle{outline:3px solid var(--brand);outline-offset:3px}
/* Keep the close control centered, independent of font metrics and scroll. */
#product-modal .close-product{display:flex;align-items:center;justify-content:center;box-sizing:border-box;line-height:0;padding:0;flex:none}
#product-modal .close-product svg{display:block;flex:0 0 18px;width:18px;height:18px;margin:0;transform:none}
#product-modal .product-dialog-scroll{scroll-padding-top:62px}
#product-modal .choice-group.has-choice-error legend{background:#fff4ee;box-shadow:inset 3px 0 #cd6844}
#product-modal .choice-group.has-choice-error .choice-tag{background:#fbe2d5;color:#ad4f32}
#product-modal .choice-validation{clear:both;margin:0;padding:9px 0 12px;color:#ad4f32;font-size:12px;font-weight:500;line-height:1.6}
#product-modal .options-per-unit{margin:0 -30px;padding:14px 30px;background:#f7fafc;color:#7c91a2;font-size:11px;line-height:1.6}
@media(max-width:600px){#product-modal .options-per-unit{margin:0 -20px;padding:13px 20px;font-size:10px}}
@media(max-width:600px){#product-modal .note-label textarea{font-size:16px}}
#product-modal .choice-row:has(input:checked){background:color-mix(in srgb,var(--brand) 3%,white)}
#product-modal .choice-row:has(input:checked)>span:first-child b{color:#294356;font-weight:600}
#product-modal .disposable-circle{transition:background-color .12s,border-color .12s}
