.product-card-gallery {
    position: relative;
    padding-bottom: 1.75rem;
}

.product-card {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .product-card {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

.product-card-gallery__track {
    display: flex;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #e5e5e5;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.product-card-gallery__track::-webkit-scrollbar { display: none; }

.product-card-gallery__slide {
    display: block;
    flex: 0 0 100%;
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.product-card-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card-gallery__slide:focus-visible {
    outline: 2px solid #171717;
    outline-offset: -2px;
}

.product-card-gallery__empty {
    display: grid;
    place-items: center;
    padding: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: #525252;
}

.product-card-gallery__dots {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    height: 1.5rem;
}

.product-card-gallery.is-ready .product-card-gallery__dots { display: flex; }

.product-card-gallery__dots button {
    display: grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.product-card-gallery__dots button::after {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #a3a3a3;
    content: "";
}

.product-card-gallery__dots button[aria-pressed="true"]::after { background: #171717; }

.product-card-gallery__dots button:focus-visible {
    outline: 2px solid #171717;
    outline-offset: -2px;
    border-radius: 50%;
}

@media (max-width: 767px) {
    .product-card-gallery { padding-bottom: 1.5rem; }

    .product-card {
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }

    .product-card-gallery__empty {
        padding: 0.85rem;
        font-size: 0.64rem;
    }

    .product-card-gallery__dots {
        gap: 0.1rem;
        height: 1.275rem;
    }

    .product-card-gallery__dots button {
        width: 1.125rem;
        height: 1.125rem;
    }
}
