/* Shared card gallery — product-card (.image) + ems-prd (.ems-prd-image) */
.eh-card-gallery {
  position: relative;
  overflow: hidden;
  /* Keep badges/dots inside this stacking context so they cannot cover the mobile menu */
  z-index: 0;
  isolation: isolate;
}

.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 — match TR englishhome.com productList-Image-Owl (desktop 10px) */
.eh-card-gallery .eh-card-gallery__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  padding: 0 8px;
}

.eh-card-gallery .eh-card-gallery__dot {
  pointer-events: auto;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  /* TR: #d6d6d6 inactive / #869791 active */
  background: #d6d6d6;
  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: #869791;
}

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

.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: 2;
}

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

/* Mobile — TR productList-Image-Owl: 7px dots, ~2px margin */
@media (max-width: 767px) {
  .eh-card-gallery .eh-card-gallery__dots {
    bottom: 10px;
    gap: 6px;
    padding: 0 6px;
  }

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