/* Full-width horizontal slider. Each slide fills the track; user scrolls
 * the track horizontally with scroll-snap so each image lands cleanly. */
.esther-product-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}

.esther-product-gallery__track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    background: var(--color-surface);
    /* Hide scrollbar — slider has its own dot pagination. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

/* Slide fills the track but is height-capped so dots stay above the fold
 * on typical desktop viewports. Width includes a small inset so the next
 * slide peeks in from the right — affordance that there's more to scroll. */
.esther-product-gallery__slide {
    flex: 0 0 calc(100% - var(--s-6));
    min-width: 0;
    margin: 0;
    height: clamp(420px, 70vh, 720px);
    scroll-snap-align: start;
    background: var(--color-surface);
    overflow: hidden;
}

.esther-product-gallery__slide:last-child {
    flex-basis: 100%;
}

.esther-product-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bar-dot pagination — matches the design mockup (vertical 4×14 bars,
 * active is taller and dark). Centered under the slider. */
.esther-product-gallery__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--s-2);
    padding-block: var(--s-2);
}

.esther-product-gallery__dot {
    width: 4px;
    height: 14px;
    padding: 0;
    background: var(--color-border);
    border: 0;
    cursor: pointer;
    transition: height var(--t-base), background var(--t-base);
}

.esther-product-gallery__dot:hover {
    background: var(--color-text-muted);
}

.esther-product-gallery__dot--active {
    height: 18px;
    background: var(--color-text);
}

.esther-product-gallery--empty img {
    width: 100%;
    height: auto;
    background: var(--color-surface);
}
