/* One visual stage for catalog previews: the material stays the focus, not the source photo canvas. */
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  background: #edf1ea;
  border-bottom: 1px solid #e1e8df;
}

.product-media > a {
  position: absolute;
  inset: 12px;
  display: block;
  min-width: 0;
  min-height: 0;
}

.product-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.product-media .heart {
  z-index: 3;
}

.heart,
.quick-close {
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

@media (hover: hover) {
  .heart:hover,
  .quick-close:hover {
    border-color: #07551b;
    background: #07551b;
    color: #fff;
    transform: translateY(-1px);
  }
}

.heart:focus-visible,
.quick-close:focus-visible {
  outline: 3px solid #8ddd65;
  outline-offset: 2px;
}

.heart:active,
.quick-close:active {
  transform: translateY(0);
}

.product-media .compare-toggle {
  z-index: 3;
}

.quick-open {
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid #cfe0cb;
  border-radius: 10px;
  background: #f1f7ee;
  color: #07551b;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

@media (hover: hover) {
  .quick-open:hover {
    border-color: #07551b;
    background: #07551b;
    color: #fff;
    transform: translateY(-1px);
  }
}

.quick-open:focus-visible {
  outline: 3px solid #8ddd65;
  outline-offset: 2px;
}

.quick-open:active {
  transform: translateY(0);
}

@media (max-width: 520px) {
  .product-media > a {
    inset: 10px;
  }
}
