/* Saintngelic Quick View Card */

.elementor-widget-sng_quick_view_card {
  width: 100%;
  max-width: 100%;
}

.elementor-widget-sng_quick_view_card .elementor-widget-container {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.sng-quick-view-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  height: auto;
  min-height: 200px;
  background: #f5f5f0;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

@supports not (aspect-ratio: 2 / 3) {
  .sng-quick-view-card {
    height: 0;
    min-height: 0;
    padding-bottom: 150%;
  }
}

.sng-quick-view-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}

.sng-quick-view-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  transition: opacity 0.5s cubic-bezier(0.12, 0.06, 0.3, 1) 0.05s;
}

.sng-quick-view-card__image--primary {
  opacity: 1;
  z-index: 1;
}

.sng-quick-view-card__image--hover {
  opacity: 0;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .sng-quick-view-card:hover .sng-quick-view-card__image--primary {
    opacity: 0;
  }

  .sng-quick-view-card:hover .sng-quick-view-card__image--hover {
    opacity: 1;
  }
}

.sng-quick-view-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px 28px;
  pointer-events: none;
}

.sng-quick-view-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 28px;
  border: 1px solid #250903;
  background: #f2efe3;
  color: #250903;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease;
  pointer-events: auto;
}

.sng-quick-view-card:hover .sng-quick-view-card__btn,
.sng-quick-view-card__btn:focus {
  opacity: 1;
  transform: translateY(0);
}

.sng-quick-view-card__btn:hover,
.sng-quick-view-card__btn:focus,
.sng-quick-view-card__btn:active,
.sng-quick-view-card__btn:visited {
  background: #250903;
  color: #f2efe3;
  border-color: #250903;
  text-decoration: none;
}

/* Touch: tombol selalu terlihat */
@media (hover: none), (pointer: coarse) {
  .sng-quick-view-card__btn {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 1024px) {
  .sng-quick-view-card {
    min-height: 180px;
  }

  .sng-quick-view-card__overlay {
    padding-bottom: 24px;
  }

  .sng-quick-view-card__btn {
    min-width: 140px;
    padding: 11px 24px;
    font-size: 11px;
  }
}

@media screen and (max-width: 767px) {
  .sng-quick-view-card {
    min-height: 160px;
  }

  .sng-quick-view-card__overlay {
    padding: 0 12px 20px;
  }

  .sng-quick-view-card__btn {
    min-width: 130px;
    padding: 10px 20px;
  }
}
