/* Shared card gallery — product-card (.image) + ems-prd (.ems-prd-image) */
.eh-card-gallery {
  position: relative;
  overflow: hidden;
}

.eh-card-gallery .eh-card-gallery__link {
  display: block;
  position: relative;
  width: 100%;
}

.eh-card-gallery .eh-card-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.eh-card-gallery .eh-card-gallery__img:not(.is-active) {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.eh-card-gallery .eh-card-gallery__img.is-active {
  position: relative;
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

/* Dots — TR-like size/spacing/colors */
.eh-card-gallery .eh-card-gallery__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 7;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  pointer-events: none;
  padding: 0 10px;
}

.eh-card-gallery .eh-card-gallery__dot {
  pointer-events: auto;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #d4d4d4;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.eh-card-gallery .eh-card-gallery__dot.is-active {
  background: #6b7874;
}

.eh-card-gallery .eh-card-gallery__dot:hover {
  transform: scale(1.1);
}

.eh-card-gallery .like,
.eh-card-gallery .discont,
.eh-card-gallery .new-product,
.eh-card-gallery .not-available,
.eh-card-gallery .universal-discount,
.eh-card-gallery [data-eh-freedeliv],
.eh-card-gallery .ems-prd-icons {
  z-index: 6;
}

@media (hover: hover) and (pointer: fine) {
  .eh-card-gallery {
    cursor: pointer;
  }
}

@media (max-width: 767px) {
  .eh-card-gallery .eh-card-gallery__dots {
    bottom: 12px;
    gap: 10px;
  }

  .eh-card-gallery .eh-card-gallery__dot {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
  }
}
