/* ============================================================
   Intereses & Precios — Frontend Styles
   ============================================================ */

/* ── Shared ──────────────────────────────────────────────────────────── */

.ip-prices {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.ip-prices .ip-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1.3;
}

/* Strip WC formatting from amount so inherits our styles */
.ip-prices .ip-amount .woocommerce-Price-amount,
.ip-prices .ip-amount bdi {
  font: inherit;
  color: inherit;
}

/* ── Product page ────────────────────────────────────────────────────── */

.ip-prices--product {
  margin: 4px 0 14px;
}

.ip-prices--product .ip-row--list {
  margin-bottom: 4px;
}

/* List price (muted, no strikethrough) */
.ip-prices--product .ip-row--list .ip-amount {
  font-size: 18px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
}

.ip-prices--product .ip-row--list .ip-label {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Transfer price (highlighted in green) */
.ip-prices--product .ip-row--transfer .ip-amount {
  font-size: 28px;
  font-weight: 700;
  color: #16a34a;
}

.ip-prices--product .ip-row--transfer .ip-label {
  font-size: 15px;
  color: #16a34a;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Product card (shop loop) ─────────────────────────────────────────── */

.ip-prices--card {
  margin: 4px 0 6px;
}

.ip-prices--card .ip-row--list {
  margin-bottom: 2px;
}

/* List price — card */
.ip-prices--card .ip-row--list .ip-amount {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #9ca3af !important;
  text-decoration: none !important;
}

.ip-prices--card .ip-row--list .ip-label {
  font-size: 11px !important;
  color: #9ca3af !important;
  font-weight: 400 !important;
  text-transform: none;
  letter-spacing: 0;
}

/* Transfer price — card */
.ip-prices--card .ip-row--transfer .ip-amount {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #16a34a !important;
}

.ip-prices--card .ip-row--transfer .ip-label {
  font-size: 13px !important;
  color: #16a34a !important;
  font-weight: 600 !important;
  text-transform: none;
  letter-spacing: 0;
}
.ip-prices .ip-amount .woocommerce-Price-amount,
.ip-prices .ip-amount bdi {
  display: flex;
  align-items: center;
  color: inherit;
}

/* ── Badge (solo página de producto) ─────────────────────────────────── */

@keyframes ip-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  50% {
    opacity: 0.85;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

.ip-prices--product .ip-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #fd5a00;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  animation: ip-pulse 2s ease-in-out infinite;
}

.ip-prices--product .ip-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: white;
  border-radius: 9999px;
  flex-shrink: 0;
}

/* ── Imágenes de cards uniformes ─────────────────────────────────────── */

/* Carrusel Elementor — contenedor cuadrado fijo */
.prod-img .elementor-widget-container a {
  display: block;
  width: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  background-color: white;
  border-radius: 8px;
  box-sizing: border-box;
}

.prod-img .elementor-widget-container a img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  padding: 12px;
  box-sizing: border-box;
}

/* Página de archivo/tienda WooCommerce — pisa object-fit: cover del tema */
ul.products li.product a img.attachment-woocommerce_thumbnail {
  object-fit: contain !important;
  object-position: center !important;
  background-color: white;
  padding: 12px !important;
  box-sizing: border-box !important;
}
.price-cards-carousel .price {
  display: none !important;
}
.ip-prices.ip-prices--card {
  text-align: center;
  justify-content: center;
  max-width: 250px;
  display: block;
  margin: 0 auto;
  text-align: center;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}
/* ── Gallery imagen página de producto ───────────────────────────────── */

/* Pisa el max-width:550px que viene como inline style */
.wcgs-woocommerce-product-gallery {
  max-width: 100% !important;
  width: 100% !important;
}

/* Slide fluido — ocupa el ancho disponible con proporción cuadrada */
.wcgs-carousel .spswiper-slide {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
}

/* Wrapper de imagen ocupa todo el slide */
.wcgs-slider-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9fafb;
  border-radius: 8px;
}

/* Imagen siempre completa, nunca recortada */
img.wcgs-slider-image-tag {
  width: 100% !important;
  height: 100% !important;
  background: white !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 16px;
  box-sizing: border-box;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .ip-prices--product .ip-row--transfer .ip-amount {
    font-size: 24px;
  }
  .ip-prices--product .ip-row--list .ip-amount {
    font-size: 16px;
  }
}
.ip-prices.ip-prices--card .ip-row.ip-row--transfer .ip-amount,
.ip-prices.ip-prices--card
  .ip-row.ip-row--transfer
  .ip-amount
  .woocommerce-Price-amount,
.ip-prices.ip-prices--card .ip-row.ip-row--transfer .ip-amount bdi {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #16a34a !important;
}
