/* Local LED-board detail layout. Other products retain their existing layout. */
body.retail-page.shop-detail-active #shop-detail-content .shop-product.board-detail-layout { align-items:start; }
body.retail-page.shop-detail-active #shop-detail-content .board-detail-layout > .shop-product-media { position:static; min-width:0; }
body.retail-page.shop-detail-active #shop-detail-content .board-detail-layout > .shop-buy-box {
  position:sticky; top:var(--board-sticky-top,100px); align-self:start;
  max-height:calc(100dvh - var(--board-sticky-top,100px) - 16px);
  overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin;
  scrollbar-color:#d8bec9 transparent;
}
.board-detail-layout .board-detail-images { display:block; width:100%; min-width:0; margin:28px 0 0; padding:0; overflow:hidden; background:#fff; }
.board-detail-images .board-detail-panel { display:block; width:100%; height:auto; min-width:0; margin:0; padding:0; border:0; border-radius:0; background:#fff; cursor:zoom-in; box-shadow:none; }
.board-detail-images .board-detail-panel:focus-visible { outline:2px solid #a34d6e; outline-offset:-3px; }
.board-detail-images .board-detail-panel img { display:block; width:100%; height:auto; max-height:none; margin:0; padding:0; border:0; border-radius:0; object-fit:contain; mask-image:linear-gradient(to bottom,transparent 0,#000 2.5%,#000 97.5%,transparent 100%); }
.board-detail-layout > details { display:none !important; }
body dialog.board-image-dialog { width:100vw!important; max-width:100vw!important; height:100dvh!important; max-height:100dvh!important; inset:0!important; margin:0!important; padding:0!important; border:0!important; border-radius:0!important; box-sizing:border-box!important; color:#49343f; background:#faf8f9; }
.board-image-dialog::backdrop { background:rgba(35,26,30,.65); }
.board-image-dialog[open] { display:flex; flex-direction:column; }
.board-image-toolbar { display:flex; align-items:center; gap:8px; padding:12px max(14px,env(safe-area-inset-right)); padding-top:max(12px,env(safe-area-inset-top)); background:#fff; border-bottom:1px solid #eee6e9; flex:none; z-index:1; }
.board-image-toolbar strong { font:500 15px/1.4 system-ui,sans-serif; margin-right:auto; }
.board-image-toolbar button { width:44px; height:44px; padding:0; border:1px solid #e6dce0; border-radius:50%; background:#fff; color:#654650; font:400 22px/1 system-ui,sans-serif; }
.board-image-toolbar button[data-action=fit] { width:auto; padding:0 14px; border-radius:22px; font-size:14px; }
.board-image-viewport { position:relative; flex:1; overflow:hidden; touch-action:none; user-select:none; cursor:grab; }
.board-image-viewport:active { cursor:grabbing; }
.board-image-viewport img { position:absolute; left:0; top:0; display:block; max-width:none; max-height:none; transform-origin:0 0; pointer-events:none; user-select:none; -webkit-user-drag:none; }
@media(max-width:760px) {
  body.retail-page.shop-detail-active #shop-detail-content .board-detail-layout > .shop-buy-box { position:static; max-height:none; overflow:visible; }
  .board-detail-layout .board-detail-images { margin-top:24px; }
  .board-image-toolbar { gap:6px; }
  .board-image-toolbar strong { font-size:14px; }
}

.board-detail-layout:not([data-details-source="led"]) .board-detail-panel img{mask-image:none}
