.product-image {
  position: relative;
}

.product-image .product-emoji {
  font-size: 4.6rem;
}

.product-image img {
  --frame-x: 50%;
  --frame-y: 50%;
  --frame-zoom: 1;
  object-position: var(--frame-x) var(--frame-y);
  transform: scale(var(--frame-zoom));
  transform-origin: var(--frame-x) var(--frame-y);
  transition: transform .2s ease;
}

.frame-x-0 { --frame-x: 0%; }
.frame-x-10 { --frame-x: 10%; }
.frame-x-20 { --frame-x: 20%; }
.frame-x-30 { --frame-x: 30%; }
.frame-x-40 { --frame-x: 40%; }
.frame-x-50 { --frame-x: 50%; }
.frame-x-60 { --frame-x: 60%; }
.frame-x-70 { --frame-x: 70%; }
.frame-x-80 { --frame-x: 80%; }
.frame-x-90 { --frame-x: 90%; }
.frame-x-100 { --frame-x: 100%; }
.frame-y-0 { --frame-y: 0%; }
.frame-y-10 { --frame-y: 10%; }
.frame-y-20 { --frame-y: 20%; }
.frame-y-30 { --frame-y: 30%; }
.frame-y-40 { --frame-y: 40%; }
.frame-y-50 { --frame-y: 50%; }
.frame-y-60 { --frame-y: 60%; }
.frame-y-70 { --frame-y: 70%; }
.frame-y-80 { --frame-y: 80%; }
.frame-y-90 { --frame-y: 90%; }
.frame-y-100 { --frame-y: 100%; }
.frame-zoom-100 { --frame-zoom: 1; }
.frame-zoom-110 { --frame-zoom: 1.1; }
.frame-zoom-120 { --frame-zoom: 1.2; }
.frame-zoom-130 { --frame-zoom: 1.3; }
.frame-zoom-140 { --frame-zoom: 1.4; }
.frame-zoom-150 { --frame-zoom: 1.5; }
.frame-zoom-160 { --frame-zoom: 1.6; }
.frame-zoom-170 { --frame-zoom: 1.7; }
.frame-zoom-180 { --frame-zoom: 1.8; }
.frame-zoom-190 { --frame-zoom: 1.9; }
.frame-zoom-200 { --frame-zoom: 2; }

.product-image .sale-badge {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  display: grid;
  gap: 2px;
  min-width: 96px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  text-align: right;
  text-transform: uppercase;
}

.product-image .sale-badge b {
  font: 900 1.12rem/1 var(--display);
  letter-spacing: .035em;
}

.product-image .sale-badge small {
  color: var(--red);
  font: 900 .78rem/1.2 var(--sans);
}

.product-price {
  gap: 12px;
}

.price-stack {
  display: grid;
  gap: 1px;
}

.price-stack s {
  color: #85898a;
  font-size: .76rem;
}

.price-stack .sale-price {
  color: var(--red);
  font-size: 1.25rem;
}

.product-price > small {
  text-align: right;
}

.service-badges {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  justify-items: end;
  gap: 7px;
}

.service-card .service-badges .badge {
  position: static;
}

.service-sale-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  background: #ef5147;
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .05em;
}

.service-sale-badge small {
  color: inherit;
  font-size: .65rem;
}

.service-price-stack {
  display: grid;
  justify-items: start;
  line-height: 1.15;
}

.service-price-stack s {
  color: #9da29f;
  font-size: .78rem;
}

.service-meta .service-sale-price {
  margin-top: 3px;
  color: #ff7167;
}

/* El modal existente debe respetar el ancho real del viewport en móviles. */
.modal {
  grid-template-columns: minmax(0, 1fr);
}

.modal > article {
  width: 100%;
  max-width: 630px;
  min-width: 0;
  justify-self: center;
}

@media (max-width: 460px) {
  [data-step="payment-result"] h2 {
    font-size: 2rem;
  }

  .service-badges {
    position: static;
    justify-items: start;
    margin-bottom: 14px;
  }
}
