.product-image-gallery {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
}

.product-image-gallery .swiper-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    box-sizing: content-box;
}

.product-image-gallery .swiper-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.product-image-gallery .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.home-product-card__media.is-gallery-ready > .home-product-card__image,
.product-detail__stage.is-gallery-ready > .product-detail__image,
.shop-product-card__media > a.is-gallery-ready .shop-product-card__image {
    visibility: hidden;
}

.shop-product-card__media > a.is-gallery-ready .product-image-gallery .swiper-slide img {
    visibility: visible;
}

.shop-product-card__media > a.is-gallery-ready:hover .shop-product-card__image--secondary {
    opacity: 0;
}

.home-product-card__media,
.product-detail__stage,
.shop-product-card__media > a:first-child {
    position: relative;
}

/* Dots Container — Absolute overlay positioned inside bottom of the image container */
.product-gallery-dots {
    position: absolute !important;
    z-index: 10 !important;
    bottom: 10px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: auto !important;
    max-width: 85% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: rgba(0, 0, 0, 0.32) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    pointer-events: auto !important;
    user-select: none !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.product-gallery-dots[hidden],
.product-gallery-dots.is-hidden {
    display: none !important;
}

[dir="rtl"] .product-gallery-dots,
html[dir="rtl"] .product-gallery-dots,
body[dir="rtl"] .product-gallery-dots {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

.product-gallery-dot {
    position: relative !important;
    display: block !important;
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    min-height: 6px !important;
    max-width: 20px !important;
    max-height: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.65) !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
    color: transparent !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: width 0.24s cubic-bezier(0.2, 0, 0, 1), border-radius 0.24s ease, background-color 0.2s ease, transform 0.2s ease !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.product-gallery-dot::before {
    content: '';
    position: absolute;
    inset: -6px;
}

.product-gallery-dot:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    transform: scale(1.15) !important;
}

.product-gallery-dot.is-active {
    width: 18px !important;
    height: 6px !important;
    min-width: 18px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    transform: none !important;
    cursor: default !important;
}

@media (max-width: 575px) {
    .product-gallery-dots {
        bottom: 8px !important;
        padding: 3px 6px !important;
        gap: 5px !important;
    }
    .product-gallery-dot {
        width: 5px !important;
        height: 5px !important;
        min-width: 5px !important;
        min-height: 5px !important;
    }
    .product-gallery-dot.is-active {
        width: 14px !important;
        height: 5px !important;
        min-width: 14px !important;
    }
}

/* Universal bullet protection for product galleries and cards */
.product-card .swiper-pagination,
.shop-product-card .swiper-pagination,
.home-product-card .swiper-pagination {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.product-card .swiper-pagination-bullet,
.shop-product-card .swiper-pagination-bullet,
.home-product-card .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    min-height: 6px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.65) !important;
    padding: 0 !important;
    margin: 0 3px !important;
    opacity: 1 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

.product-card .swiper-pagination-bullet-active,
.shop-product-card .swiper-pagination-bullet-active,
.home-product-card .swiper-pagination-bullet-active {
    width: 18px !important;
    height: 6px !important;
    min-width: 18px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}
