/* Native fallback and enhanced gallery share one readable, horizontal layout. */
.io_product_picbox{min-width:0}
.bcem-io-native .io_product_container{width:100%;margin:0;padding:0}
.bcem-io-native .io_product_container>.simpleCart_ioShelfItem{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(24px,4vw,64px);align-items:start}
.bcem-io-native .io_product_container .io_product_picbox,.bcem-io-native .io_product_container .io_product_infobox{width:100%;min-width:0;margin:0;padding:0}
.io_product_picbox:not([data-bcem-gallery]) .io_image_thumbbox{display:flex!important;align-items:center;gap:12px;overflow-x:auto;padding:12px 0}
.io_product_picbox:not([data-bcem-gallery]) .io_image_thumb{display:block!important;flex:0 0 72px;width:72px!important;height:64px!important;object-fit:contain;background:#f0f5fb;border-radius:8px}
.io_product_picbox .bcem-gallery-native[hidden]{display:none!important}
.bcem-product-gallery{width:100%;margin:0 0 24px;color:#103b68}
.bcem-gallery-track{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;border:1px solid #d7e4f2;border-radius:16px;background:#eff4f9;isolation:isolate}
.bcem-gallery-track::-webkit-scrollbar{display:none}
.bcem-gallery-slide{display:flex;flex:0 0 100%;width:100%;min-width:0;height:500px;align-items:center;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden}
.bcem-gallery-open{display:flex!important;width:100%;height:100%;align-items:center;justify-content:center;cursor:zoom-in}
.bcem-product-gallery .bcem-gallery-slide img,.bcem-product-gallery .bcem-gallery-slide video{width:auto!important;height:auto!important;max-width:100%;max-height:100%;object-fit:contain!important;margin:0;border-radius:0;transform:none!important}
.bcem-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0 10px}
.bcem-gallery-hint{font-size:12px;line-height:1.4;color:#45617f}
.bcem-gallery-arrows{display:flex;align-items:center;gap:8px;flex-shrink:0}
.bcem-gallery-count{min-width:38px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums}
.bcem-gallery-control{display:inline-flex!important;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;min-height:44px;padding:0!important;background:#fff!important;color:#0756ad!important;border:1px solid #c5d8ec!important;border-radius:50%!important;box-shadow:none!important;cursor:pointer}
.bcem-gallery-control:disabled{opacity:.35;cursor:default}
.bcem-gallery-control[hidden]{display:none!important}
.bcem-gallery-thumbs{position:relative;display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px 3px 10px}
.bcem-product-gallery .bcem-gallery-thumb{position:relative;flex:0 0 78px;width:78px;height:72px;padding:4px!important;border:2px solid transparent!important;border-radius:10px!important;background:#edf3f9!important;cursor:pointer;overflow:hidden}
.bcem-product-gallery .bcem-gallery-thumb img{display:block;width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important;border-radius:4px}
.bcem-product-gallery .bcem-gallery-thumb[aria-pressed=true]{border-color:#0756ad!important;background:#fff!important}
.bcem-gallery-play{position:absolute;inset:auto 4px 4px;background:#103b68;color:#fff;font-size:10px;border-radius:4px}
.bcem-gallery-track:focus-visible,.bcem-gallery-thumb:focus-visible,.bcem-gallery-open:focus-visible,.bcem-gallery-control:focus-visible{outline:3px solid #e51b37!important;outline-offset:3px}
.bcem-gallery-unavailable{max-width:260px;padding:24px;text-align:center;color:#45617f}
.bcem-gallery-dialog{position:fixed;inset:0;width:min(1100px,calc(100vw - 32px));max-width:none;height:min(900px,calc(100dvh - 32px));max-height:none;margin:auto;padding:0;border:0;border-radius:16px;background:#f4f7fb;color:#103b68;box-shadow:0 24px 100px #00183370}
.bcem-gallery-dialog[open]{display:flex;flex-direction:column}
.bcem-gallery-dialog::backdrop{background:#061d35d9;backdrop-filter:blur(4px)}
.bcem-gallery-modal-header,.bcem-gallery-modal-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:12px 20px;background:#fff}
.bcem-gallery-modal-header strong{font-size:18px}
.bcem-gallery-modal-stage{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;padding:12px;overflow:hidden}
.bcem-gallery-modal-stage img,.bcem-gallery-modal-stage video{display:block;width:auto!important;height:auto!important;max-width:100%;max-height:100%;object-fit:contain;margin:0}
.bcem-gallery-modal-footer{justify-content:center;font-size:14px;font-variant-numeric:tabular-nums}
html.bcem-gallery-modal-open{overflow:hidden}
@media(hover:hover) and (pointer:fine){.bcem-gallery-control:not(:disabled):hover{background:#e9f2fb!important;border-color:#0756ad!important}.bcem-gallery-thumb:hover{box-shadow:0 0 0 1px #8fb4db}}
@media(max-width:767px){
 .bcem-io-native .io_product_container>.simpleCart_ioShelfItem{grid-template-columns:minmax(0,1fr);gap:0}
 .bcem-io-native .site-main:has(.io_product_container){padding-top:20px}
 .bcem-gallery-slide{height:clamp(280px,47svh,400px)}
 .bcem-gallery-track{border-radius:12px}
 .bcem-gallery-toolbar{gap:8px}
 .bcem-gallery-hint{max-width:140px;font-size:11px}
 .bcem-product-gallery .bcem-gallery-thumb{flex-basis:72px;width:72px;height:66px}
 .bcem-gallery-dialog{width:100%;height:100dvh;border-radius:0}
 .bcem-gallery-modal-header{padding-top:max(12px,env(safe-area-inset-top));padding-inline:16px}
 .bcem-gallery-modal-footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}
}
