/* Actual category ancestry above native product images. */
.adi-product-media{min-width:0;position:relative;background:#eceff1;padding:0 0 20px}
.adi-store #main .adi-product-path{padding:18px 24px;margin:0;font:400 13px/1.5 AdihausDIN,Arial,sans-serif;background:#eceff1;color:#000}
.adi-store #main .adi-product-path a{text-decoration:underline}
.adi-store #main .adi-product-media .images{width:100%;float:none;margin:0;padding:0;min-width:0}
.adi-store #main .adi-product-media .woocommerce-product-gallery__wrapper{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;margin:0;transform:none!important}
.adi-store #main .adi-product-media .woocommerce-product-gallery__wrapper>div{width:100%;min-width:0;float:none}
.adi-store #main .adi-product-media .woocommerce-product-gallery__image img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;max-height:none;background:#eceff1}
.adi-store #main .adi-product-media .woocommerce-product-gallery__wrapper>div:only-child{grid-column:1/-1}
.adi-store #main .adi-gallery-more{display:flex;align-items:center;gap:20px;margin:0 auto;padding:12px 20px;min-height:44px;background:#fff;color:#000;border:1px solid #000;border-radius:0;font:700 14px/20px AdihausDIN,Arial,sans-serif;position:relative}
.adi-store #main .adi-gallery-more[aria-expanded=true] span{transform:rotate(180deg)}
.adi-store #main .summary .adi-product-intro{font:400 16px/1.5 AdihausDIN,Arial,sans-serif;margin:0 0 18px;letter-spacing:.2px}
@media(max-width:700px){
 .adi-store #main .adi-product-path{padding:14px 16px;font-size:12px}
 .adi-product-media{padding-bottom:0}
 .adi-store #main .adi-product-media .woocommerce-product-gallery__wrapper{display:flex;gap:2px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin}
 .adi-store #main .adi-product-media .woocommerce-product-gallery__wrapper>div{flex:0 0 100%;scroll-snap-align:start}
}

/* Show more overlaps the gallery edge, keeping the native expansion handler. */
.adi-store #main .adi-gallery-more{margin:-24px auto 0;z-index:2;min-height:48px;gap:18px;padding:12px 16px;font-size:16px;line-height:22px;box-shadow:none}
.adi-gallery-more span{width:16px;height:16px;display:grid;place-items:center}.adi-gallery-more svg{width:16px;height:16px}

/* One desktop scroll area: gallery/details left, native purchase summary right. */
.adi-product-layout{--adi-summary-top:12px;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(350px,1fr);align-items:start;gap:0}
.adi-store #main .adi-product-layout>.form-product-overview{display:contents}
.adi-product-layout .adi-product-media{grid-column:1;grid-row:1}
.adi-store #main .adi-product-layout .summary{grid-column:2;grid-row:1 / span 2;position:sticky;top:var(--adi-summary-top);align-self:start;max-height:calc(100dvh - var(--adi-summary-top) - 12px);overflow-y:auto;overscroll-behavior:auto;scrollbar-width:thin;min-width:0;width:100%;box-sizing:border-box}
.admin-bar .adi-product-layout{--adi-summary-top:44px}
.adi-product-details{grid-column:1;grid-row:2;min-width:0}
.adi-store #main .adi-product-details .woocommerce-tabs{float:none;width:auto;clear:none}
.adi-store #main .adi-recommendations{margin:40px 24px;min-width:0;clear:both}
.adi-recommendations>h2{font:700 26px/1.2 adidasFG,AdihausDIN,sans-serif;text-transform:uppercase;letter-spacing:1px;margin:0 0 18px}
.adi-store #main .adi-recommendations ul.products{margin:0;padding:0;width:100%}
@media(min-width:1700px){.adi-product-layout{grid-template-columns:minmax(0,1.9fr) minmax(350px,1fr)}}
@media(min-width:701px) and (max-width:1100px){.adi-product-layout{grid-template-columns:minmax(0,1.25fr) minmax(320px,1fr)}}
@media(max-width:782px){.admin-bar .adi-product-layout{--adi-summary-top:58px}}
@media(max-width:700px){
 .adi-product-layout{display:block}
 .adi-store #main .adi-product-layout .summary{position:static;max-height:none;overflow:visible}
 .adi-store #main .adi-recommendations{margin:32px 16px}
 .adi-recommendations>h2{font-size:24px}
}
