/* ===== HPM HTR kompakte Kaufansicht — START (2026-10-19) ===== */
/* Preserve readable controls; reduce vertical whitespace only on short desktops.
   The native shop-panel remains scrollable before section paging takes over. */
@media (min-width:700px) and (max-height:950px){
 body.single-product .htr-x .entrance .shop-panel{top:clamp(58px,8%,76px);bottom:20px;padding-bottom:16px;scroll-padding-block:16px;}
 body.single-product .htr-x .shop-panel .elementor-widget-woocommerce-product-title{margin-top:0!important;}
 body.single-product .htr-x .shop-panel .product_title{font-size:28px!important;margin-bottom:8px!important;}
 body.single-product .htr-x .shop-panel .elementor-widget-woocommerce-product-price{margin-top:4px!important;margin-bottom:6px!important;}
 body.single-product.hpm-variante-gewaehlt .htr-x .shop-panel .elementor-widget-woocommerce-product-price{margin-top:0!important;margin-bottom:0!important;}
 body.single-product .htr-x .shop-panel .elementor-widget-woocommerce-product-meta{margin-top:0!important;}
 body.single-product .htr-x .shop-panel .elementor-widget-woocommerce-product-meta:has(.hpm-sku-leer){display:none;}
 body.single-product .htr-x .shop-panel .product_meta{border-top:0;padding-top:0;margin-bottom:0;}
 body.single-product .htr-x .shop-panel .product_meta .sku_wrapper{font-size:12px!important;}
 body.single-product .htr-x .shop-panel .elementor-widget-woocommerce-product-short-description{margin-top:12px!important;margin-bottom:12px!important;}
 body.single-product .htr-x .shop-panel .woocommerce-product-details__short-description ul{line-height:1.4!important;margin-bottom:0!important;}
 body.single-product .htr-x .shop-panel .woocommerce-product-details__short-description li{font-size:15px!important;line-height:1.4!important;margin-bottom:4px!important;}
 body.single-product .htr-x .shop-panel .variations th.label{line-height:1.4!important;margin-bottom:6px;}
 body.single-product .htr-x .shop-panel .variations th.label label{line-height:1.4!important;}
 body.single-product .htr-x .shop-panel .hpm-vbtn-bild .hpm-vbtn-img{height:30px;}
 body.single-product .htr-x .shop-panel .hpm-vbtn-bild .hpm-vbtn-label{font-size:13px;padding-bottom:5px;}
 body.single-product .htr-x .shop-panel .hpm-vcb{margin:12px 0;}
 body.single-product .htr-x .shop-panel .hpm-vcb-item{font-size:14px;line-height:1.4;min-height:24px;margin-bottom:4px;gap:8px;}
 body.single-product .htr-x .shop-panel .hpm-vcb-item:last-child{margin-bottom:0;}
 body.single-product .htr-x .shop-panel form.hpm-vcb-active .woocommerce-variation-add-to-cart{margin-top:16px!important;}
 body.single-product .htr-x .shop-panel form.cart{margin-bottom:0;}
}
/* ===== HPM HTR kompakte Kaufansicht — END ===== */

/* Align the desktop purchase view with the page edges; keep detail-copy spacing. */
body.single-product .htr-x[data-render-mode="3d"] .entrance{--gutter:24px;}
body.single-product .htr-x[data-render-mode="3d"] .hpm-product-tabs-ready>ul.tabs{right:14px;}

/* HTR configuration: distinguish the supplied loose set from mounted parts. */
.htr-x .configuration-caption {position:absolute;bottom:6%;left:8%;right:8%;margin:0;text-align:center;font-size:13px;line-height:1.5;color:#73767b;pointer-events:none;z-index:4;}
.htr-x .configuration-caption[hidden] {display:none!important;}
.htr-x #product-canvas {touch-action:pan-y;}

@media(max-width:699px){
 .htr-x .entrance-stage[data-phase=shop] .length-labels .is-selected{top:30%!important;}
 .htr-x .entrance-stage[data-phase=shop] .length-labels .is-selected small{display:none;}
}

.htr-x .entrance-stage[data-phase=shop]:not([data-selected="null"]) #product-canvas{pointer-events:auto;cursor:grab;touch-action:pan-y;}
.htr-x .entrance-stage[data-phase=shop]:not([data-selected="null"]) #product-canvas:active{cursor:grabbing;}

/* Mobile configuration uses the actual variation image, without a WebGL scene.
   Keep the complete form in document flow, so the cart button is never clipped. */
.htr-x .variation-picture{display:none;}
body.single-product .htr-x[data-render-mode=images] .entrance{height:auto;min-height:var(--htr-h);}
body.single-product .htr-x[data-render-mode=images] .entrance-stage{position:relative;inset:auto;height:auto;min-height:var(--htr-h);overflow:visible;padding:42px 0 36px;}
body.single-product .htr-x[data-render-mode=images] .entrance .model-stage{position:relative;inset:auto;width:100%;height:clamp(210px,65vw,330px);will-change:auto;margin:0 0 14px;}
body.single-product .htr-x[data-render-mode=images] .variation-picture{display:block;width:100%;height:100%;object-fit:contain;padding:0 4%;}
body.single-product .htr-x[data-render-mode=images] .entrance .shop-panel{position:relative;inset:auto;width:90%;margin:0 auto;opacity:1;transform:none;overflow:visible;padding:0;will-change:auto;}
body.single-product .htr-x[data-render-mode=images] .intro-copy,
body.single-product .htr-x[data-render-mode=images] #product-canvas,
body.single-product .htr-x[data-render-mode=images] .length-labels,
body.single-product .htr-x[data-render-mode=images] .shop-divider,
body.single-product .htr-x[data-render-mode=images] .poster,
body.single-product .htr-x[data-render-mode=images] .load-status,
body.single-product .htr-x[data-render-mode=images] .shop-stop{display:none!important;}
body.single-product .htr-x[data-render-mode=images] .configuration-caption{bottom:0;font-size:11px;}
body.single-product .htr-x[data-render-mode=images] .shop-panel .product_title{font-size:28px!important;margin-bottom:12px!important;}
body.single-product .htr-x[data-render-mode=images] .shop-panel .hpm-vcb-item{font-size:14px;line-height:1.5;}

/* Keep section controls clear of the viewport scrollbar and phone safe area. */
body.single-product .htr-x[data-render-mode=images] .section-nav{right:max(16px,env(safe-area-inset-right));}
