.nd-related-products{margin:28px 0;min-width:0;color:var(--shop-text)}
.nd-related-products>h2{margin:0 0 18px;font-size:24px}
.nd-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.nd-related-card{min-width:0;display:flex;flex-direction:column;border:1px solid var(--shop-line);border-radius:14px;background:var(--shop-card);overflow:hidden}
.nd-related-image{display:block;aspect-ratio:1;overflow:hidden;background:var(--shop-field)}
.nd-related-image img{display:block;width:100%;height:100%;object-fit:contain}
.nd-related-content{display:flex;flex-direction:column;flex:1;gap:12px;padding:14px}
.nd-related-content h3{margin:0;font-size:16px;line-height:1.5}
.nd-related-content h3 a{color:inherit;text-decoration:none}
.nd-related-price{margin:auto 0 0;font-weight:700;color:var(--shop-accent,#ff2435)}
.nd-related-content .shop-btn{width:100%;min-width:0;padding:10px 8px;font-size:13px;text-align:center}
.product-page-shell .product-actions .shop-btn{white-space:normal;min-height:48px;line-height:1.4}
@media(max-width:900px){.nd-related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.nd-related-content{padding:12px}.product-page-shell .product-actions{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}}
.product-page-shell .product-actions.nd-purchase-actions{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px}
.product-page-shell .nd-purchase-actions .nd-add-cart-icon{display:flex;align-items:center;justify-content:center;width:52px;min-width:52px;height:52px;padding:0;font-size:22px}
.product-page-shell .nd-purchase-actions #buyNowButton{min-height:52px}
.product-video{margin:16px 0;min-width:0}
.product-video video{display:block;width:100%;max-height:440px;border-radius:12px;background:#111}
.product-media-stage{width:100%;min-width:0;max-width:100%;aspect-ratio:1;order:0;overflow:hidden;border-radius:16px;background:var(--shop-card,#111)}
.product-media-stage>.product-main-image{width:100%;height:100%;margin:0}
.product-media-stage>video{display:block;width:100%;height:100%;object-fit:contain;background:#111}
.product-media-stage>[hidden]{display:none!important}
.product-page-shell .product-video-thumb{display:flex;flex-direction:column;align-items:center;justify-content:center;width:72px;height:72px;flex:0 0 72px;padding:4px;border:1px solid var(--shop-line,#434750);border-radius:9px;background:var(--shop-card,#171e29);color:var(--shop-text,#fff);cursor:pointer}
.product-page-shell .product-video-thumb[aria-pressed=true]{border:2px solid var(--shop-accent,#ff2435)}
.product-video-thumb>span{font-size:22px}.product-video-thumb>small{font-size:11px}

/* Product detail layout, 2026-10-30 */
body.product-detail-page main.product-page-shell{margin-top:var(--nd-product-header-space,90px)!important;scroll-margin-top:110px}
.product-detail-page :is(h1,h2,h3,[id]){scroll-margin-top:calc(var(--nd-product-header-space,90px) + 20px)}
.product-media-stage>iframe{display:block;width:100%;height:100%;border:0;background:#111}
.nd-related-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.nd-related-heading h2{margin:0;font-size:clamp(20px,2.2vw,26px);line-height:1.35}
.nd-related-all{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 16px;border:1px solid var(--shop-line,#697180);border-radius:999px;color:var(--shop-text,inherit);font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap;transition:background .2s,color .2s,transform .2s}
.nd-related-all:hover{background:var(--shop-accent,#ef3340);border-color:var(--shop-accent,#ef3340);color:#fff;transform:translateY(-2px)}
.nd-related-all:focus-visible,.nd-related-card a:focus-visible{outline:3px solid var(--shop-accent,#ef3340);outline-offset:3px}
.nd-related-articles .nd-related-image{aspect-ratio:8/5}
.nd-related-articles .nd-related-image img{object-fit:cover}
.nd-related-excerpt{margin:0;font-size:14px;line-height:1.65;opacity:.82}
.nd-related-articles .nd-related-content>.shop-btn{margin-top:auto}
.nd-related-content h3{overflow-wrap:anywhere}
@media(max-width:600px){.nd-related-heading{gap:10px}.nd-related-all{padding:8px 12px;font-size:13px}.nd-related-content{padding:11px;gap:10px}.nd-related-content h3{font-size:14px}.nd-related-excerpt{font-size:13px}.nd-related-grid{gap:12px}}
@media(max-width:359px){.nd-related-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.nd-related-all{transition:none}.nd-related-all:hover{transform:none}}

/* Stable horizontal bounds and decoded image swipe, 2026-10-30 */
html:has(body.product-detail-page){overflow-x:clip;overscroll-behavior-x:none}
body.product-detail-page{box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow-x:clip;overscroll-behavior-x:none}
.product-detail-page .product-page-shell,.product-page-shell *{box-sizing:border-box}
.product-page-shell :is(.product-detail,.product-summary,.product-overview,.product-full-description,.product-media-stage,.product-main-image,.product-breadcrumb){min-width:0;max-width:100%}
.product-page-shell .product-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;line-height:1.6;width:100%;white-space:normal;overflow-wrap:anywhere}
.product-page-shell .product-breadcrumb>:last-child{min-width:0;overflow-wrap:anywhere}
.product-page-shell .product-main-image{position:relative;touch-action:pan-y pinch-zoom;isolation:isolate;contain:layout paint}
.product-main-image.nd-image-dragging{user-select:none;-webkit-user-select:none}
.product-main-image.nd-image-dragging>:not(.nd-swipe-preview),.product-main-image>.nd-swipe-preview{backface-visibility:hidden;-webkit-backface-visibility:hidden}
.product-main-image.nd-image-settling>*{transition:transform 200ms cubic-bezier(.22,.61,.36,1)!important}
.nd-gallery-viewer>img{touch-action:pan-y pinch-zoom;object-fit:contain;user-select:none;-webkit-user-select:none}
@media(max-width:900px){.product-detail-page header,.product-detail-page header nav{max-width:100%;box-sizing:border-box}.product-detail-page .nav-search-form{max-width:calc(100vw - 24px);left:auto;right:0;transform:none}.product-page-shell .product-description :is(a,p,li){overflow-wrap:anywhere}.product-page-shell .product-description :is(img,video,iframe){max-width:100%}.product-page-shell .product-description table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.product-page-shell .product-description pre{max-width:100%;overflow:auto}}
@media(prefers-reduced-motion:reduce){.product-main-image.nd-image-settling>*{transition:none!important}}
