/* Final cascade layer: machine close-ups and unified search palette. */
.hp-machine-search,
.hp-home-machine-search {
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(120deg,rgba(255,102,0,.055),transparent 36%),#242424;
    box-shadow: 0 25px 70px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.045);
}

.hp-machine-search input,
.hp-home-machine-search input { color: #f7f7f5; }
.hp-machine-search input::placeholder,
.hp-home-machine-search input::placeholder { color: #8e9093; }
.hp-machine-search:focus-within,
.hp-home-machine-search:focus-within { border-color: rgba(255,102,0,.72); box-shadow: 0 30px 80px rgba(0,0,0,.30),0 0 0 4px rgba(255,102,0,.11); }
.hp-machine-search button,
.hp-home-machine-search button { color: #fff; background: #ff6600; }
.hp-machine-search button:hover,
.hp-home-machine-search button:hover { background: #ea5d00; }

.hp-product-gallery__stage { padding-bottom: 108px; }
.hp-product-gallery__stage::after { bottom: 21%; }
.hp-product-gallery__stage > img { max-height: 440px; }
.hp-product-gallery__caption {
    position: absolute;
    z-index: 5;
    left: 22px;
    right: 22px;
    bottom: 20px;
    min-height: 78px;
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 5px 18px;
    align-content: center;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 15px;
    color: #fff;
    background: rgba(28,29,30,.90);
    box-shadow: 0 15px 45px rgba(0,0,0,.18);
    backdrop-filter: blur(16px);
}

.hp-product-gallery__caption small { grid-row: 1/3; align-self: center; color: #ff6600; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hp-product-gallery__caption strong { font-size: 13px; }
.hp-product-gallery__caption p { margin: 0; color: #aeb0b3; font-size: 9px; line-height: 1.45; }
.hp-product-gallery__thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 12px; }
.hp-product-gallery__thumbs button { position: relative; width: auto; height: 82px; overflow: hidden; border-radius: 13px; background: #f1f1f1; transition: border-color .3s ease,transform .3s ease; }
.hp-product-gallery__thumbs button:hover { transform: translateY(-2px); }
.hp-product-gallery__thumbs button.is-active { border-color: #ff6600; box-shadow: 0 0 0 2px rgba(255,102,0,.14); }
.hp-product-gallery__thumbs img { object-fit: contain; }
.hp-product-gallery__stage--detail > img,
.hp-product-gallery__stage--process > img,
.hp-product-gallery__stage--component > img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.hp-product-gallery__stage--chart > img { width: 100%; height: 100%; max-height: none; padding: 30px 30px 115px; object-fit: contain; }
.hp-product-gallery__stage--top > img { transform: scale(1.68) translateY(12%); transform-origin: 50% 22%; }
.hp-product-gallery__stage--bottom > img { transform: scale(1.62) translateY(-16%); transform-origin: 50% 78%; }
.hp-product-gallery__stage--top:hover > img,.hp-product-gallery__stage--bottom:hover > img { transform: scale(1.74); }

@media (max-width:620px) {
    .hp-product-gallery__stage { padding-bottom: 126px; }
    .hp-product-gallery__caption { grid-template-columns: 1fr; bottom: 14px; left: 14px; right: 14px; }
    .hp-product-gallery__caption small { grid-row: auto; }
    .hp-product-gallery__thumbs button { height: 64px; }
}
