/* YOSHI customer kiosk product detail - Deliveroo-style product sheet */
.ypd-overlay{position:fixed;inset:0;z-index:95;background:rgba(15,23,42,.58);display:flex;align-items:flex-end;justify-content:center;padding:0;overscroll-behavior:contain}
.ypd-panel{position:relative;width:min(820px,100%);max-height:94vh;max-height:94dvh;background:#fff;border-radius:24px 24px 0 0;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 -18px 60px rgba(15,23,42,.28)}
.ypd-close{position:absolute;right:14px;top:14px;z-index:3;width:46px;height:46px;border:0;border-radius:999px;background:rgba(255,255,255,.96);color:#172033;font-size:30px;line-height:1;display:grid;place-items:center;box-shadow:0 4px 16px rgba(15,23,42,.18);cursor:pointer}
.ypd-scroll{overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:18px}
.ypd-media{width:100%;min-height:220px;max-height:350px;background:#eef2f5;display:grid;place-items:center;overflow:hidden;color:#94a3b8;font-size:3rem}
.ypd-media img{width:100%;height:100%;min-height:220px;max-height:350px;object-fit:cover;display:block}
.ypd-main{padding:20px 20px 4px}
.ypd-code{font-size:.78rem;color:#64748b;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.ypd-title{font-size:clamp(1.45rem,4vw,2rem);line-height:1.12;margin:5px 0 8px;color:#172033}
.ypd-description{margin:0 0 14px;color:#64748b;line-height:1.45;white-space:pre-line}
.ypd-price-line{display:flex;align-items:center;gap:10px;font-weight:950;font-size:1.15rem}
.ypd-old-price{text-decoration:line-through;color:#94a3b8;font-size:.9rem;font-weight:700}
.ypd-section{border-top:1px solid #e2e8f0;padding:18px 20px 4px;margin-top:14px}
.ypd-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:4px}
.ypd-section h3{margin:0;font-size:1.05rem;color:#172033}
.ypd-section-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:5px;color:#64748b;font-size:.82rem;font-weight:800}
.ypd-required,.ypd-optional{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:.72rem;font-weight:950}
.ypd-required{background:#172033;color:#fff}.ypd-optional{background:#eef2f5;color:#475569}
.ypd-progress{font-size:.83rem;font-weight:950;color:#475569;white-space:nowrap;padding-top:2px}
.ypd-option{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #f0f3f6;cursor:pointer}
.ypd-option:last-child{border-bottom:0}
.ypd-option-name{font-weight:850;line-height:1.3}.ypd-option-extra{font-size:.85rem;color:#b91c1c;font-weight:900;margin-top:3px}
.ypd-toggle{width:30px;height:30px;border:2px solid #cbd5e1;background:#fff;border-radius:999px;display:grid;place-items:center;font-size:0;cursor:pointer}
.ypd-toggle.selected{border-color:#172033;background:#172033;color:#fff;font-size:18px}.ypd-toggle.selected:after{content:'✓'}
.ypd-stepper{display:flex;align-items:center;gap:9px}.ypd-stepper button,.ypd-main-qty button{width:40px;height:40px;border:1px solid #dce3ea;background:#fff;border-radius:999px;color:#172033;font-size:1.3rem;font-weight:900;cursor:pointer}.ypd-stepper button:disabled,.ypd-main-qty button:disabled{opacity:.35}.ypd-stepper b,.ypd-main-qty b{min-width:28px;text-align:center;font-size:1rem}
.ypd-error{margin:12px 20px 0;padding:11px 12px;border-radius:10px;background:#fef2f2;color:#b91c1c;font-weight:850;line-height:1.35}.ypd-error:empty{display:none}
.ypd-footer{flex:0 0 auto;display:grid;grid-template-columns:auto minmax(180px,1fr);gap:12px;align-items:center;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #e2e8f0;background:#fff;box-shadow:0 -8px 24px rgba(15,23,42,.06)}
.ypd-footer.configure-only{grid-template-columns:1fr}.ypd-main-qty{display:flex;align-items:center;gap:7px}
.ypd-add{border:0;border-radius:14px;background:#172033;color:#fff;min-height:52px;padding:12px 16px;font-size:1rem;font-weight:950;display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer}.ypd-add:disabled{opacity:.48;cursor:not-allowed}.ypd-add-label{min-width:0;text-align:left}.ypd-add-total{white-space:nowrap;font-size:1.08rem}
.ypd-no-options{border-top:1px solid #e2e8f0;margin-top:14px;padding:18px 20px 4px;color:#64748b;font-weight:750}
.dish.ypd-clickable{cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}.dish.ypd-clickable:active{transform:scale(.985)}.dish.ypd-clickable:focus-visible{outline:3px solid rgba(23,32,51,.25);outline-offset:2px}
@media(min-width:700px){.ypd-overlay{align-items:center;padding:28px}.ypd-panel{border-radius:24px;max-height:min(900px,92vh)}.ypd-media{min-height:280px}.ypd-media img{min-height:280px}.ypd-footer{padding-bottom:16px}}
@media(max-width:520px){.ypd-main{padding:17px 16px 2px}.ypd-section{padding:16px 16px 2px}.ypd-error{margin-left:16px;margin-right:16px}.ypd-media,.ypd-media img{min-height:200px;max-height:270px}.ypd-footer{grid-template-columns:auto minmax(0,1fr);gap:9px}.ypd-main-qty button{width:38px;height:38px}}

/* Add-to-cart feedback: product thumbnail flies toward the basket. */
.cart-fly-item{position:fixed;z-index:180;pointer-events:none;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.28);display:grid;place-items:center;font-size:2rem;font-weight:950;color:#172033;transition:transform .52s cubic-bezier(.22,.8,.32,1),opacity .5s ease;will-change:transform,opacity}
.cart-fly-item img{width:100%;height:100%;object-fit:cover;display:block}
.cartBtn.cart-bump{animation:yoshiCartBump .42s ease}
@keyframes yoshiCartBump{0%{transform:scale(1)}40%{transform:scale(1.035)}70%{transform:scale(.99)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.cart-fly-item{display:none!important}.cartBtn.cart-bump{animation:none!important}}
