*{box-sizing:border-box}body{margin:0;background:#f4f7fb;color:#172033;font-family:Inter,Arial,sans-serif}.wrap{max-width:1180px;margin:auto;padding:18px}.top{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.brand{font-size:23px;font-weight:900;color:#17365d}.muted{color:#64748b;font-size:13px;line-height:1.5}.card{background:#fff;border:1px solid #dbe3ee;border-radius:14px;padding:16px;margin:12px 0;box-shadow:0 7px 22px rgba(15,23,42,.05)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.product{border:1px solid #e1e7ef;border-radius:12px;padding:13px}.product h3{margin:0 0 6px;font-size:16px}.price{font-weight:900;font-size:18px}.stock{font-size:12px;font-weight:800}.good{color:#067647}.bad{color:#b42318}.btn{border:0;border-radius:9px;padding:10px 13px;font-weight:800;cursor:pointer;background:#17365d;color:#fff}.btn.alt{background:#eef3f8;color:#17365d;border:1px solid #cad5e3}.btn:disabled{opacity:.5;cursor:not-allowed}select,input{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:9px;background:#fff}.modal{position:fixed;inset:0;background:rgba(15,23,42,.55);display:none;place-items:center;padding:18px;z-index:30;overflow-y:auto;overscroll-behavior:contain}.modal.open{display:grid}.panel{width:min(520px,100%);background:#fff;border-radius:16px;padding:18px;box-shadow:0 20px 60px rgba(15,23,42,.25);max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.badge{display:inline-block;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;background:#e9f2ff;color:#17365d}.notice{padding:10px 12px;background:#fff8e6;border:1px solid #f6d98b;border-radius:10px;font-size:13px}.branch-card{border:1px solid #d9e3ee;border-radius:12px;padding:12px;margin-top:10px}.auth{display:flex;align-items:center;gap:8px;flex-wrap:wrap}@media(max-width:650px){.wrap{padding:12px}.brand{font-size:20px}}
label{display:block;color:#526176;font-size:12px;font-weight:800;margin:8px 0 5px}.panel.wide{width:min(760px,100%)}.panel.xwide{width:min(1050px,100%)}.checkout-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin-top:12px}.totalbar{border-top:1px solid #e1e7ef;margin-top:14px;padding-top:14px}.line-item{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid #e6ebf2}.mini{border:1px solid #cbd5e1;background:#fff;color:#17365d;border-radius:7px;padding:6px 9px;font-weight:800;cursor:pointer}.order-list{display:grid;gap:8px;margin-top:12px}.order-card{border:1px solid #dbe3ee;border-radius:11px;padding:11px;background:#fff}.okbox{margin-top:12px;padding:10px 12px;border-radius:9px;background:#ecfdf3;border:1px solid #abefc6;color:#067647}.errbox{margin-top:12px;padding:10px 12px;border-radius:9px;background:#fff1f3;border:1px solid #fecdd6;color:#b42318}.bad-text{color:#b42318;font-size:12px;margin-top:7px}.scan-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:18px}.qty-state{text-align:right;font-size:12px}.btn.danger{background:#b42318}@media(max-width:760px){.scan-layout{grid-template-columns:1fr}.qty-state{text-align:left}.line-item{align-items:flex-start;flex-direction:column}}

.test-banner{margin:12px 0;padding:12px 14px;border-radius:12px;background:#fff4cc;border:1px solid #e2b93b;color:#684d00;font-size:13px;line-height:1.45}.test-badge{display:inline-block;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:900;background:#fff4cc;color:#684d00;border:1px solid #e2b93b}
.link-mini{text-decoration:none;display:inline-block}.slot-closed{opacity:.65}.schedule-meta{font-size:12px;color:#526176;margin-top:5px}

.pickup-map{margin-top:10px;border:1px solid #dbe3ee;border-radius:10px;overflow:hidden;background:#eef3f8}.pickup-map iframe{display:block;width:100%;height:220px;border:0}.pickup-map-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:9px}@media(max-width:650px){.pickup-map iframe{height:170px}.modal{padding:10px}.panel{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}}
/* Alpha12 foreground auth/profile modal stack. Cart may remain open underneath so checkout intent is preserved. */
#checkoutSignInModal{z-index:50}
#profileModal{z-index:60}
#profileModal .panel{position:relative;z-index:1}

/* Alpha14 Delivery current-location verification. */
.delivery-location{margin-top:12px}
.delivery-location .top{align-items:flex-start}
.delivery-quote{margin-top:9px;padding:9px 11px;border:1px solid #dbe3ee;border-radius:9px;background:#fff}
.delivery-quote-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.delivery-quote-grid>div{min-width:0}
.delivery-quote .value{font-weight:900;font-size:16px;color:#172033}
.location-ok{color:#067647;font-weight:800}
.location-bad{color:#b42318;font-weight:800}
@media(max-width:650px){.delivery-location .top{display:block}.delivery-location .top .btn{width:100%;margin-top:10px}.delivery-quote-grid{grid-template-columns:1fr}}

.rider-destination{margin-top:10px;padding-top:10px;border-top:1px solid #e2e8f0}.rider-map{margin-top:8px}.rider-map iframe{height:220px}

.pickup-policy{margin-top:8px}.pickup-deadline{margin-top:6px;font-weight:700}.bad-text{color:#a32218}

/* alpha21 client READY/payment emphasis */
.payment-unpaid{color:#b42318;font-weight:950;background:#fff2f0;border:2px solid #f04438;border-radius:8px;padding:6px 8px;margin-top:6px}.payment-paid{color:#067647;font-weight:900;background:#ecfdf3;border:1px solid #12b76a;border-radius:8px;padding:6px 8px;margin-top:6px}.ros-client-order-toast{position:fixed;right:18px;top:18px;z-index:99999;max-width:min(440px,calc(100vw - 36px));padding:14px 16px;border-radius:12px;box-shadow:0 14px 36px #0003;background:#fff;border:2px solid #1570ef;font-weight:700;line-height:1.4}.ros-client-order-toast.bad{border-color:#d92d20}.ros-client-order-toast.ok{border-color:#12b76a}

/* alpha22 customer Check Order modal */
.ros-order-status-panel{width:min(980px,100%)}
.ros-order-status-hero{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(120px,.6fr));gap:10px;margin:14px 0}.ros-order-status-hero>div{border:1px solid #dbe3ee;border-radius:12px;padding:12px;background:#f8fafc}.ros-order-status-hero .k{font-size:11px;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.04em}.ros-order-status-hero .v{font-size:16px;font-weight:900;margin-top:4px;overflow-wrap:anywhere}.ros-order-status-alert{padding:12px 14px;border-radius:12px;margin:10px 0;font-weight:900}.ros-order-status-alert.ready{background:#ecfdf3;border:2px solid #12b76a;color:#067647}.ros-order-status-alert.unpaid{background:#fff2f0;border:2px solid #f04438;color:#b42318}.ros-order-timeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0}.ros-order-step{padding:9px 8px;border:1px solid #dbe3ee;border-radius:10px;background:#f8fafc;font-size:11px;font-weight:900;text-align:center;color:#64748b}.ros-order-step.done{background:#ecfdf3;border-color:#12b76a;color:#067647}.ros-order-step.current{background:#eef4ff;border-color:#1570ef;color:#17365d}.ros-order-status-items{border:1px solid #dbe3ee;border-radius:12px;overflow:hidden}.ros-order-status-item{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #e6ebf2}.ros-order-status-item:last-child{border-bottom:0}.ros-client-order-toast .toast-actions{margin-top:10px}.ros-client-order-toast .toast-actions .mini{background:#17365d;color:#fff;border-color:#17365d}@media(max-width:760px){.ros-order-status-hero{grid-template-columns:1fr 1fr}.ros-order-timeline{grid-template-columns:1fr 1fr}.ros-order-status-item{flex-direction:column}}

/* alpha25 customer notification bell + list */
.ros-notification-bell{position:relative;width:42px;height:42px;border:1px solid #cad5e3;border-radius:11px;background:#fff;color:#17365d;font-size:20px;display:grid;place-items:center;cursor:pointer}.ros-notification-bell:hover{background:#eef4ff}.ros-notification-count{position:absolute;right:-5px;top:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#d92d20;color:#fff;border:2px solid #fff;font-size:10px;line-height:16px;font-weight:900;text-align:center}.ros-notification-panel{position:fixed;right:18px;top:78px;z-index:99998;width:min(410px,calc(100vw - 24px));max-height:min(70vh,620px);background:#fff;border:1px solid #dbe3ee;border-radius:14px;box-shadow:0 20px 60px rgba(15,23,42,.25);overflow:hidden}.ros-notification-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;border-bottom:1px solid #e6ebf2;background:#f8fafc}.ros-notification-list{max-height:min(58vh,520px);overflow-y:auto;overscroll-behavior:contain}.ros-notification-item{width:100%;border:0;border-bottom:1px solid #eef2f6;background:#fff;text-align:left;padding:12px 14px;cursor:pointer;color:#172033}.ros-notification-item:hover{background:#f8fafc}.ros-notification-item.unread{background:#eef4ff}.ros-notification-item .title{font-weight:900}.ros-notification-item .message{font-size:12px;line-height:1.45;color:#526176;margin-top:3px}.ros-notification-item .time{font-size:10px;color:#94a3b8;margin-top:5px}.ros-notification-empty{padding:22px 14px;text-align:center;color:#64748b}.ros-notification-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#1570ef;margin-right:6px}@media(max-width:650px){.ros-notification-panel{right:8px;top:70px;width:calc(100vw - 16px);max-height:72vh}}


/* alpha26 rider assignment notification bell + list */
.ros-rider-assignment-toast{position:fixed;right:18px;bottom:18px;z-index:99999;max-width:min(440px,calc(100vw - 36px));padding:14px 16px;border-radius:12px;box-shadow:0 14px 36px rgba(15,23,42,.24);background:#fff;border:2px solid #1570ef;color:#172033;font-weight:800;line-height:1.4}.ros-rider-assignment-toast .mini{margin-top:9px;background:#17365d;color:#fff;border-color:#17365d}.rider-job-notification-focus{outline:3px solid #1570ef;outline-offset:3px;box-shadow:0 0 0 6px rgba(21,112,239,.12)}@media(max-width:650px){.ros-rider-assignment-toast{right:8px;bottom:8px;max-width:calc(100vw - 16px)}}

/* alpha30 rider multi-stop route + stable accordion */
.rider-route-map{height:420px;border:1px solid #d7e1ee;border-radius:14px;overflow:hidden;background:#eef3f8}
.rider-route-pin-wrap{background:transparent;border:0}
.rider-route-pin{width:34px;height:34px;border-radius:50%;background:#173a63;color:#fff;border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.24);display:grid;place-items:center;font-weight:900;font-size:13px;box-sizing:border-box}
.rider-route-sequence{margin-top:7px;font-size:.86rem;line-height:1.45}
.rider-job-accordion{border:1px solid #d8e2ee;border-radius:12px;margin:10px 0;background:#fff;overflow:hidden}
.rider-job-accordion>summary{list-style:none;cursor:pointer;padding:13px 15px;display:flex;justify-content:space-between;gap:16px;align-items:center}
.rider-job-accordion>summary::-webkit-details-marker{display:none}
.rider-job-accordion>summary::after{content:'▾';font-weight:900;flex:0 0 auto}
.rider-job-accordion[open]>summary::after{content:'▴'}
.rider-job-summary-main{min-width:0;flex:1}.rider-job-address{font-size:.9rem;color:#52677f;margin-top:4px;white-space:normal}.rider-job-summary-side{font-weight:900;white-space:nowrap}.rider-job-body{padding:12px 15px 15px;border-top:1px solid #edf1f5}.rider-job-accordion.terminal{opacity:.72}.rider-cod-due,.rider-paid-banner,.rider-payment-warn{margin-top:10px;border-radius:12px;padding:12px 14px;font-weight:900}.rider-cod-due{border:2px solid #e5484d;background:#fff1f0;color:#b42318;font-size:1.12rem}.rider-paid-banner{border:2px solid #1f9d68;background:#effaf5;color:#157347}.rider-payment-warn{border:2px solid #f59e0b;background:#fff8e7;color:#92400e}.rider-banner-note{font-size:.82rem;font-weight:700;margin-top:4px}.rider-destination-compact{margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
@media(max-width:700px){.rider-route-map{height:330px}.rider-job-accordion>summary{align-items:flex-start}.rider-job-summary-side{font-size:.85rem}}

/* alpha32 storefront account menu, global branding, product search/scanner and modal-only orders */
.storefront-header{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}.storefront-brand-wrap{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.storefront-logo{width:58px;height:58px;object-fit:contain;border-radius:12px;border:1px solid #dbe3ee;background:#fff;padding:4px;flex:0 0 auto}.storefront-brand-copy{min-width:0}.storefront-tagline{max-width:720px}.storefront-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.ros-header-icon{width:52px;height:52px;border:1px solid #cad5e3;border-radius:13px;background:#fff;color:#17365d;display:grid;place-items:center;cursor:pointer;transition:.15s ease}.ros-header-icon:hover{background:#eef4ff;transform:translateY(-1px)}.ros-header-icon svg{width:30px;height:30px;fill:currentColor}.ros-cart-button{min-height:52px;padding-inline:16px}.ros-customer-menu-wrap{position:relative}.ros-customer-button{min-height:52px;border:1px solid #cad5e3;border-radius:13px;background:#eef4ff;color:#17365d;padding:0 14px;font-weight:900;cursor:pointer;white-space:nowrap}.ros-customer-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:99997;width:210px;background:#fff;border:1px solid #dbe3ee;border-radius:12px;box-shadow:0 16px 40px rgba(15,23,42,.2);padding:7px}.ros-customer-menu button{display:block;width:100%;border:0;background:#fff;color:#172033;text-align:left;padding:10px 11px;border-radius:8px;font-weight:800;cursor:pointer}.ros-customer-menu button:hover{background:#eef4ff}.ros-customer-menu button:last-child{color:#b42318}.ros-catalog-tools{display:flex;align-items:flex-end;gap:12px}.ros-product-search{flex:1;min-width:220px}.ros-barcode-button{min-height:42px}.ros-product-filter-empty{grid-column:1/-1}.product.ros-scan-match{outline:3px solid #1570ef;outline-offset:2px}.ros-scanner-frame{margin-top:14px;border:1px solid #dbe3ee;border-radius:12px;overflow:hidden;background:#0f172a;min-height:260px;display:grid;place-items:center}.ros-scanner-frame video{display:block;width:100%;max-height:440px;object-fit:cover}.storefront-footer{margin-top:24px;background:#17365d;color:#fff}.storefront-footer-inner{max-width:1180px;margin:auto;padding:24px 18px;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px;font-size:13px;line-height:1.55}.storefront-footer a{color:#fff}.storefront-footer-note{grid-column:1/-1;color:#dbeafe;border-top:1px solid rgba(255,255,255,.18);padding-top:12px}#refundRequestReason{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;resize:vertical;font:inherit}
@media(max-width:760px){.storefront-header{align-items:flex-start}.storefront-brand-wrap{width:100%}.storefront-actions{width:100%;justify-content:flex-end}.ros-catalog-tools{align-items:stretch;flex-direction:column}.ros-barcode-button{width:100%}.storefront-logo{width:48px;height:48px}.ros-header-icon,.ros-cart-button,.ros-customer-button{min-height:46px;height:46px}.ros-header-icon{width:46px}.ros-header-icon svg{width:27px;height:27px}}

/* alpha38 modal-first UX / foreground layering / sticky storefront header */
.storefront-header{position:sticky;top:10px;z-index:20}
#locationModal,#myOrdersModal{z-index:65}
#orderStatusModal{z-index:75}
.ros-client-panel{position:relative}
.ros-modal-top-right-close{position:absolute;top:14px;right:14px;z-index:3}
.ros-modal-title-pad{padding-right:92px}
.ros-modal-loading{padding:18px 4px;color:#64748b;font-weight:800}
@media(max-width:650px){.storefront-header{top:6px}.ros-modal-top-right-close{top:10px;right:10px}.ros-modal-title-pad{padding-right:82px}}
\n\n/* alpha39 My Orders fixed header + true Check Order foreground */
#myOrdersModal{z-index:9000}
#orderStatusModal{z-index:12000}
#myOrdersModal .ros-my-orders-panel{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);padding:0}
.ros-my-orders-header{flex:0 0 auto;display:flex;gap:14px;align-items:center;justify-content:space-between;padding:18px;border-bottom:1px solid #e6ebf2;background:#fff;border-radius:16px 16px 0 0;position:relative;z-index:2}
.ros-my-orders-title{min-width:0}
.ros-my-orders-actions{flex:0 0 auto;justify-content:flex-end}
.ros-my-orders-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;margin:0;padding:12px 18px 18px}
#orderStatusModal.open{display:grid!important;z-index:12000!important}
#orderStatusModal .panel{position:relative;z-index:12001}
@media(max-width:650px){#myOrdersModal .ros-my-orders-panel{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}.ros-my-orders-header{padding:14px;align-items:flex-start}.ros-my-orders-actions{gap:6px}.ros-my-orders-scroll{padding:10px 14px 14px}}

/* alpha40 step-by-step checkout flow */
#cartModal{z-index:70}
#cartModal .ros-checkout-panel{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);padding:0}
.ros-checkout-header{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px;border-bottom:1px solid #e6ebf2;background:#fff}
.ros-checkout-progress{flex:0 0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px 18px;background:#f8fafc;border-bottom:1px solid #e6ebf2}
.ros-checkout-step{border:1px solid #dbe3ee;background:#fff;color:#64748b;border-radius:11px;padding:9px 10px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:7px;cursor:default}
.ros-checkout-step span{width:24px;height:24px;border-radius:50%;background:#eef3f8;display:grid;place-items:center;font-size:12px}
.ros-checkout-step.current{border-color:#1570ef;background:#eef4ff;color:#17365d}
.ros-checkout-step.current span{background:#1570ef;color:#fff}
.ros-checkout-step.done{border-color:#12b76a;background:#ecfdf3;color:#067647;cursor:pointer}
.ros-checkout-step.done span{background:#12b76a;color:#fff}
.ros-checkout-step:disabled{opacity:.7}
.ros-checkout-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:18px}
.checkout-step-pane>h3{margin:0 0 4px;font-size:20px}
.ros-checkout-summary-row{display:flex;justify-content:flex-end;margin-top:14px}
.ros-payment-estimate{margin-top:14px}
.ros-checkout-review{display:grid;gap:12px;margin-top:14px}
.ros-review-block{border:1px solid #dbe3ee;border-radius:12px;padding:12px;background:#fff}
.ros-review-k{text-transform:uppercase;font-size:11px;letter-spacing:.05em;font-weight:900;color:#64748b;margin-bottom:8px}
.ros-review-line{display:flex;justify-content:space-between;gap:14px;padding:6px 0;font-size:13px;align-items:flex-start}
.ros-review-line span{color:#526176}.ros-review-line b{text-align:right;overflow-wrap:anywhere}
.ros-review-line.total{border-top:1px solid #e6ebf2;margin-top:6px;padding-top:10px;font-size:14px}.ros-review-line.total span,.ros-review-line.total b{color:#172033}
.ros-checkout-footer{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-top:1px solid #e6ebf2;background:#fff}
.ros-checkout-message{flex:1 1 auto;min-width:0}.ros-checkout-message .errbox,.ros-checkout-message .okbox{margin-top:0}
@media(max-width:650px){#cartModal .ros-checkout-panel{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}.ros-checkout-header,.ros-checkout-body,.ros-checkout-footer{padding:14px}.ros-checkout-progress{padding:10px 14px;gap:5px}.ros-checkout-step{padding:8px 5px;font-size:10px;gap:4px;flex-direction:column}.ros-checkout-step span{width:22px;height:22px}.ros-checkout-footer{align-items:stretch}.ros-checkout-footer>.row{margin-left:auto}.ros-checkout-message{display:none}.ros-review-line{flex-direction:column;gap:2px}.ros-review-line b{text-align:left}}

/* alpha41 item cover/gallery/description modal */
.ros-product-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,38%);gap:14px;align-items:stretch;cursor:pointer;overflow:hidden;min-height:220px}
.ros-product-card.image-left{grid-template-columns:minmax(120px,38%) minmax(0,1fr)}
.ros-product-card.text-only{display:block;min-height:0;cursor:default}
.ros-product-card-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.ros-product-card-copy h3{font-size:19px;margin:8px 0 7px}
.ros-product-card-image{border-radius:10px;overflow:hidden;background:#eef3f8;min-height:180px}
.ros-product-card-image img{width:100%;height:100%;min-height:180px;object-fit:cover;display:block}
.ros-product-card-actions{margin-top:12px}
#productDetailModal{z-index:13000}
.ros-product-detail-panel{position:relative}
.ros-product-gallery{margin-top:14px}
.ros-product-gallery-main{width:100%;height:min(48vh,520px);background:#eef3f8;border:1px solid #dbe3ee;border-radius:14px;overflow:hidden;display:grid;place-items:center}
.ros-product-gallery-main img{width:100%;height:100%;object-fit:contain;display:block;background:#fff}
.ros-product-gallery-thumbs{display:flex;gap:8px;overflow-x:auto;padding-top:10px}
.ros-product-gallery-thumbs button{width:78px;height:62px;border:2px solid transparent;border-radius:9px;padding:0;background:#fff;overflow:hidden;flex:0 0 auto;cursor:pointer}
.ros-product-gallery-thumbs button.active{border-color:#1570ef}
.ros-product-gallery-thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.ros-product-gallery-empty{padding:36px 16px;border:1px dashed #cbd5e1;border-radius:12px;text-align:center;color:#64748b;background:#f8fafc}
.ros-product-detail-info{padding:16px 0 4px}
.ros-product-detail-price{font-size:28px;font-weight:900;color:#172033}
.ros-product-description{margin-top:14px;padding-top:14px;border-top:1px solid #e6ebf2;line-height:1.65;white-space:normal;overflow-wrap:anywhere}
.ros-product-detail-actions{margin-top:16px;padding-top:14px;border-top:1px solid #e6ebf2;justify-content:flex-end}
@media(max-width:720px){.ros-product-card,.ros-product-card.image-left{grid-template-columns:1fr}.ros-product-card.image-right .ros-product-card-image{order:-1}.ros-product-card-image,.ros-product-card-image img{min-height:190px;max-height:250px}.ros-product-gallery-main{height:300px}.ros-product-detail-actions{justify-content:space-between}}


/* alpha46 PRODUCT-FIRST SHOWCASE / VISIBLE CARD-WIDE BACKGROUND + SPLIT GALLERY NAV */
.ros-product-card{position:relative;isolation:isolate}

/* alpha46: split layouts are genuinely image-backed. alpha45 technically rendered the
   cover, but its near-opaque white veil made the backdrop visually disappear. Keep the
   saved cover at full strength across the entire card and use a directional dark glass
   gradient only for text contrast. The side gallery remains independently navigable. */
.ros-product-card.has-card-bg{overflow:hidden;background:#172033;color:#fff}
.ros-product-card.has-card-bg .ros-product-card-bg{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.ros-product-card.has-card-bg .ros-product-card-bg img{width:100%;height:100%;object-fit:cover;display:block}
.ros-product-card.has-card-bg:not(.background-card) .ros-product-card-bg.split-bg img{opacity:1;filter:saturate(1.05) contrast(1.02)}
.ros-product-card.has-card-bg:not(.background-card)::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(8,15,28,.80) 0%,rgba(8,15,28,.62) 52%,rgba(8,15,28,.18) 100%)}
.ros-product-card.has-card-bg.image-left::after{background:linear-gradient(90deg,rgba(8,15,28,.18) 0%,rgba(8,15,28,.60) 48%,rgba(8,15,28,.82) 100%)}
.ros-product-card.has-card-bg.image-right::after{background:linear-gradient(90deg,rgba(8,15,28,.82) 0%,rgba(8,15,28,.60) 52%,rgba(8,15,28,.18) 100%)}
.ros-product-card.has-card-bg .ros-product-card-copy,.ros-product-card.has-card-bg .ros-product-card-image{position:relative;z-index:2}
.ros-product-card.has-card-bg:not(.background-card) .ros-product-card-copy h3,
.ros-product-card.has-card-bg:not(.background-card) .ros-product-card-copy .price{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.42)}
.ros-product-card.has-card-bg:not(.background-card) .ros-product-card-copy .muted{color:#e2e8f0;text-shadow:0 1px 2px rgba(0,0,0,.34)}
.ros-product-card.has-card-bg:not(.background-card) .ros-product-card-copy .badge{background:rgba(255,255,255,.92);text-shadow:none}
.ros-product-card.has-card-bg:not(.background-card) .ros-product-card-copy .test-badge{text-shadow:none}
.ros-product-card.has-card-bg:not(.background-card) .ros-product-card-copy .mini{background:rgba(255,255,255,.94);text-shadow:none}
.ros-product-card.background-card{display:flex;min-height:300px;padding:0;border:0;background:#172033;color:#fff;overflow:hidden}
.ros-product-card-bg{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.ros-product-card-bg img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.001)}
.ros-product-card.background-card::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(8,15,28,.88) 0%,rgba(8,15,28,.68) 48%,rgba(8,15,28,.24) 100%)}
.ros-product-card.background-card .ros-product-card-copy{width:100%;padding:22px;justify-content:flex-end;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.ros-product-card.background-card .ros-product-card-copy h3,.ros-product-card.background-card .price{color:#fff}
.ros-product-card.background-card .muted{color:#e2e8f0}
.ros-product-card.background-card .badge{background:rgba(255,255,255,.92);text-shadow:none}
.ros-product-card.background-card .mini{background:rgba(255,255,255,.92);text-shadow:none}
.ros-product-card-image{position:relative}
.ros-card-gallery-image{display:none!important}
.ros-card-gallery-image.active{display:block!important}
.ros-card-gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;border:1px solid rgba(255,255,255,.7);border-radius:999px;background:rgba(15,23,42,.66);color:#fff;font-size:24px;line-height:30px;padding:0;display:grid;place-items:center;cursor:pointer;z-index:3;box-shadow:0 3px 12px rgba(15,23,42,.28)}
.ros-card-gallery-nav:hover{background:rgba(15,23,42,.86)}
.ros-card-gallery-nav.prev{left:8px}.ros-card-gallery-nav.next{right:8px}
.ros-card-gallery-count{position:absolute;right:8px;bottom:8px;z-index:3;border-radius:999px;background:rgba(15,23,42,.72);color:#fff;padding:4px 8px;font-size:11px;font-weight:900}
#productDetailModal .ros-product-detail-panel{width:min(1220px,100%);display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);grid-template-rows:auto 1fr auto;gap:0 24px;padding:18px;overflow-y:auto}
#productDetailModal .ros-product-detail-panel>.top{grid-column:1/-1;margin-bottom:4px}
#productDetailModal .ros-product-gallery{grid-column:1;grid-row:2/4;margin-top:14px;min-width:0}
#productDetailModal .ros-product-detail-info{grid-column:2;grid-row:2;padding:22px 0 8px;align-self:start}
#productDetailModal .ros-product-detail-actions{grid-column:2;grid-row:3;align-self:end}
.ros-product-gallery-main{position:relative;width:100%;height:auto;min-height:430px;aspect-ratio:4/3;background:linear-gradient(135deg,#f8fafc,#eef3f8);overflow:hidden;padding:16px}
.ros-product-gallery-main img{max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;display:block;background:transparent;margin:auto}
.ros-product-gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:1px solid rgba(15,23,42,.12);border-radius:999px;background:rgba(255,255,255,.9);color:#17365d;font-size:30px;line-height:1;padding:0;display:grid;place-items:center;cursor:pointer;z-index:3;box-shadow:0 4px 16px rgba(15,23,42,.16)}
.ros-product-gallery-nav:hover{background:#fff}.ros-product-gallery-nav.prev{left:14px}.ros-product-gallery-nav.next{right:14px}
.ros-product-gallery-counter{position:absolute;right:14px;bottom:14px;z-index:3;border-radius:999px;background:rgba(15,23,42,.74);color:#fff;padding:5px 9px;font-size:11px;font-weight:900}
.ros-product-gallery-thumbs{padding:10px 2px 2px}.ros-product-gallery-thumbs button{width:86px;height:68px;background:#f8fafc}.ros-product-gallery-thumbs img{object-fit:contain;background:#fff}
.ros-product-description{font-size:14px}
@media(max-width:820px){#productDetailModal .ros-product-detail-panel{display:block;padding:14px}.ros-product-gallery-main{min-height:300px;aspect-ratio:1/1}.ros-product-gallery-nav{width:40px;height:40px}.ros-product-card.background-card{min-height:260px}.ros-product-card.background-card::after{background:linear-gradient(0deg,rgba(8,15,28,.9) 0%,rgba(8,15,28,.48) 62%,rgba(8,15,28,.18) 100%)}}


/* alpha48 SHARED QUANTITY STEPPER — product card + item detail + live cart state */
.ros-qty-stepper{display:inline-grid;grid-template-columns:40px minmax(44px,auto) 40px;align-items:center;overflow:hidden;border:1px solid rgba(23,54,93,.24);border-radius:11px;background:rgba(255,255,255,.94);box-shadow:0 2px 8px rgba(15,23,42,.08);min-height:44px}
.ros-qty-step{width:40px;height:42px;border:0;background:transparent;color:#17365d;font:900 24px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;display:grid;place-items:center;transition:.12s ease}
.ros-qty-step:hover:not(:disabled){background:#eaf2ff}.ros-qty-step:active:not(:disabled){transform:scale(.94)}
.ros-qty-step:disabled{opacity:.32;cursor:not-allowed}
.ros-qty-count{min-width:44px;text-align:center;color:#172033;font-weight:900;font-size:16px;line-height:42px;border-left:1px solid rgba(23,54,93,.12);border-right:1px solid rgba(23,54,93,.12);font-variant-numeric:tabular-nums}
.ros-qty-stepper.detail{grid-template-columns:52px minmax(66px,auto) 52px;min-height:52px;border-radius:13px}
.ros-qty-stepper.detail .ros-qty-step{width:52px;height:50px;font-size:28px}.ros-qty-stepper.detail .ros-qty-count{min-width:66px;line-height:50px;font-size:19px}
.ros-product-card-actions{align-items:center;flex-wrap:wrap}.ros-product-card.background-card .ros-qty-stepper{background:rgba(255,255,255,.94)}
.ros-product-detail-stepper-wrap{display:flex;justify-content:flex-end;width:100%}
@media(max-width:720px){.ros-product-detail-stepper-wrap{justify-content:flex-start}.ros-product-card-actions{gap:8px}}

/* alpha50 shared rewards channel visibility */
.ros-points-badge{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:1px;padding:7px 10px;border:1px solid rgba(15,23,42,.12);border-radius:12px;background:rgba(255,255,255,.82);backdrop-filter:blur(8px);line-height:1.05;white-space:nowrap}.ros-points-badge b{font-size:14px}.ros-points-badge span{font-size:10px;color:#64748b}@media(max-width:720px){.ros-points-badge{padding:6px 8px}.ros-points-badge span{display:none}}


/* alpha51 PRODUCT DETAIL STICKY HEADER — header stays fixed while modal body scrolls */
#productDetailModal .ros-product-detail-panel>.top{position:sticky;top:-18px;z-index:20;background:#fff;margin:-18px -18px 4px;padding:18px 18px 12px;border-bottom:1px solid #e6ebf2;border-radius:16px 16px 0 0;box-shadow:0 5px 12px rgba(15,23,42,.05)}
@media(max-width:820px){#productDetailModal .ros-product-detail-panel>.top{top:-14px;margin:-14px -14px 4px;padding:14px 14px 11px;border-radius:16px 16px 0 0}}


/* alpha52 rider profile + coin earnings modal */
.rider-profile-head{display:flex;align-items:center;gap:12px;min-width:0}.rider-avatar-button{border:0;background:transparent;padding:0;cursor:pointer;border-radius:50%}.rider-avatar{width:52px;height:52px;border-radius:50%;overflow:hidden;background:#17365d;color:#fff;display:grid;place-items:center;font-weight:900;font-size:20px;border:2px solid #e4ebf4;box-shadow:0 3px 10px rgba(15,23,42,.12)}.rider-avatar img{width:100%;height:100%;object-fit:cover;display:block}.rider-avatar-large{width:92px;height:92px;font-size:32px;flex:0 0 auto}.rider-icon-button{position:relative;width:46px;height:46px;border:1px solid #cad5e3;border-radius:12px;background:#fff;color:#17365d;display:grid;place-items:center;font-size:20px;cursor:pointer}.rider-icon-button:hover{background:#eef4fb}.rider-coin-button{font-size:22px}.rider-profile-modal-panel{width:min(560px,100%)}.rider-earnings-modal-panel{width:min(720px,100%)}.rider-profile-preview{display:flex;gap:14px;align-items:center;padding:14px 0 18px;margin-bottom:14px;border-bottom:1px solid #e6ebf2}.rider-profile-modal-panel label{display:block;font-size:12px;font-weight:900;color:#52677f;margin:4px 0 7px}.rider-earning-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.rider-earning-summary>div{border:1px solid #dce5ef;background:#f8fbff;border-radius:12px;padding:13px 14px;display:flex;flex-direction:column;gap:4px}.rider-earning-summary span{color:#64748b;font-size:12px;font-weight:800}.rider-earning-summary b{font-size:20px;color:#17365d}.rider-earnings-modal-panel .line-item{padding:12px 0;border-bottom:1px solid #edf1f5;display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.rider-earnings-modal-panel .line-item:last-child{border-bottom:0}@media(max-width:650px){.rider-avatar{width:46px;height:46px}.rider-avatar-large{width:84px;height:84px}.rider-icon-button{width:42px;height:42px}.rider-earning-summary{grid-template-columns:1fr 1fr}.rider-earnings-modal-panel .line-item{font-size:14px}}

/* alpha53: keep rider profile/earnings modals above Leaflet map panes/controls */
#riderProfileModal,#riderEarningsModal{z-index:200000!important}
#riderProfileModal .panel,#riderEarningsModal .panel{position:relative;z-index:200001!important}
#riderProfileModal.open,#riderEarningsModal.open{display:grid!important}

/* alpha58 · PayMongo QR Ph TEST transport */
#paymongoQrModal{z-index:1200}.ros-paymongo-qr-panel{max-width:560px}.ros-paymongo-qr-body{text-align:center}.ros-paymongo-qr-image{display:block;width:min(360px,90vw);height:auto;max-height:55vh;object-fit:contain;margin:18px auto;border-radius:18px;background:#fff;padding:12px;border:1px solid var(--line,#d7e0eb)}.ros-paymongo-qr-amount{font-size:1.8rem;font-weight:900;margin:10px 0}.ros-paymongo-qr-actions{justify-content:center;margin-top:16px}

/* alpha61 refund nested-modal layer lock */
#refundRequestModal{z-index:14000!important}
#refundRequestModal .panel{position:relative;z-index:14001!important}
.ros-catalog-more{display:flex;align-items:center;justify-content:center;gap:10px;margin:14px 0 4px}.ros-catalog-more[hidden]{display:none!important}.ros-catalog-more .btn{min-width:140px}

/* alpha76 CART CHECKBOX + THUMBNAIL + QUICK VIEW */
.ros-cart-selectbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 8px;border-bottom:1px solid #e6ebf2}.ros-cart-selectall{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;color:#17365d;cursor:pointer}.ros-cart-selectall input,.ros-cart-check input{width:18px;height:18px;accent-color:#17365d;cursor:pointer}.ros-cart-line{display:grid;grid-template-columns:auto 64px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 0}.ros-cart-line.unselected{opacity:.62}.ros-cart-check{margin:0;display:grid;place-items:center}.ros-cart-thumb{width:64px;height:64px;border:1px solid #dbe3ee;border-radius:11px;background:#f8fafc;padding:0;overflow:hidden;cursor:pointer;display:grid;place-items:center;color:#94a3b8;font-size:24px}.ros-cart-thumb img{width:100%;height:100%;object-fit:cover;display:block}.ros-cart-item-copy{min-width:0}.ros-cart-title{border:0;background:transparent;padding:0;color:#172033;font:inherit;font-weight:900;text-align:left;cursor:pointer}.ros-cart-title:hover{text-decoration:underline}.ros-cart-code{margin-top:2px;font-size:11px}.ros-cart-line-total{font-weight:900;color:#172033;white-space:nowrap}.ros-cart-qty{flex-wrap:nowrap}.ros-cart-qty .mini{min-width:38px;min-height:38px}.ros-cart-thumb:focus-visible,.ros-cart-title:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
@media(max-width:720px){.ros-cart-line{grid-template-columns:auto 56px minmax(0,1fr) auto}.ros-cart-thumb{width:56px;height:56px}.ros-cart-line-total{grid-column:3;justify-self:start}.ros-cart-qty{grid-column:4;grid-row:1/3}.ros-cart-selectbar{align-items:flex-start;flex-direction:column;gap:5px}}
