.product-gallery [data-gallery-zoom-target] {
    position: relative;
    overflow: hidden;
    max-height: 575px;
}
.product-gallery [data-gallery-zoom-target] img{
    height: 575px;
    object-fit: contain;
}
.product-gallery [data-gallery-main-image] {
    display: block;
    width: 100%;
    height: auto;
}

.product-gallery [data-gallery-zoom-overlay] {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    transition: opacity 0.12s ease-out;
}

.product-gallery [data-gallery-main-image] {
    transition: opacity 0.12s ease-out;
}

@media (hover: hover) and (pointer: fine) {
    .product-gallery-item[data-gallery-media-type="image"] [data-gallery-zoom-target] {
        cursor: zoom-in;
    }

    .product-gallery-item[data-gallery-media-type="image"] [data-gallery-zoom-target].is-zoom-active [data-gallery-zoom-overlay] {
        opacity: 1;
    }

    .product-gallery-item[data-gallery-media-type="image"] [data-gallery-zoom-target].is-zoom-active [data-gallery-main-image] {
        opacity: 0;
    }
}

/* ── Thumbnail carousel ───────────────────────────────────────── */
.thumb-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    width: 100%;
}

.thumb-carousel-track-outer {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.product-gallery-navigation {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    transition: transform 0.3s ease;
}

.product-gallery-navigation .product-gallery-nav {
    flex-shrink: 0;
}

.thumb-carousel-btn {
    flex-shrink: 0;
    width: 28px;
    height: 60px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
    color: inherit;
    line-height: 1;
}

.thumb-carousel-btn:hover:not(:disabled) {
    background: #f8f9fa;
}

.thumb-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.thumb-carousel-btn.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 767px) {
    .thumb-carousel-btn {
        width: 24px;
        height: 56px;
    }
}

/* ── Shipping calculator ─────────────────────────────────────── */
.calculator-input #input-postal-code {
    flex: 1;
}


