/* Elementor: aplicar pv-product-card al contenedor raíz del Loop Item. */
.portavida .pv-product-card,
.portavida.woocommerce ul.products li.product,
.portavida .woocommerce ul.products li.product {
  background: var(--pv-surface); border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius); box-shadow: var(--pv-shadow);
  padding: 16px; min-width: 0;
}
.portavida .pv-product-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.portavida .pv-product-image img,
.portavida .woocommerce ul.products li.product a img,
.portavida.woocommerce ul.products li.product a img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 16px; margin-bottom: 0;
}
.portavida .pv-product-title .elementor-heading-title,
.portavida .woocommerce-loop-product__title { color: var(--pv-blue); font-size: clamp(1.35rem, 3vw, 1.8rem); }
.portavida .pv-product-description { color: var(--pv-muted); font-size: .95rem; }
.portavida .pv-product-description p { margin: 0; }
.portavida .pv-product-price .price,
.portavida .pv-product-price,
.portavida .woocommerce ul.products li.product .price,
.portavida.woocommerce ul.products li.product .price { color: var(--pv-ink); font-size: 1.2rem; font-weight: 700; }
.portavida .pv-product-cta { margin-top: auto; width: 100%; }
.portavida .pv-product-cta .elementor-button { display: flex; justify-content: center; width: 100%; }
/* No fijar anchos de slides: Elementor/Swiper calculan el desplazamiento. */
.portavida .pv-carousel { width: 100%; max-width: 620px; min-width: 0; margin-inline: auto; }
.portavida .pv-carousel .swiper-slide { height: auto; }
.portavida .pv-carousel .swiper-pagination-bullet { background: var(--pv-blue); width: 10px; height: 10px; }
.portavida .pv-carousel .swiper-pagination-bullet-active { background: var(--pv-cta); }
.portavida .pv-carousel .elementor-swiper-button {
  color: var(--pv-blue); background: var(--pv-surface); border-radius: 50%;
  min-height: 44px; min-width: 44px; align-items: center; justify-content: center;
  box-shadow: var(--pv-shadow);
}
/* Contrato visual futuro: el código comercial existente controla los estados. */
.portavida .pv-quantity-options { display: flex; flex-wrap: wrap; gap: 8px; }
.portavida .pv-quantity-option {
  flex: 1 1 80px; min-height: 48px; padding: 10px 12px;
  background: var(--pv-surface); border: 1px solid var(--pv-border);
  border-radius: var(--pv-control-radius); color: var(--pv-ink); font: inherit;
}
.portavida .pv-quantity-option[aria-pressed="true"],
.portavida .pv-quantity-option.is-selected {
  background: var(--pv-soft); border-color: var(--pv-cta);
  color: var(--pv-cta); box-shadow: inset 0 0 0 1px var(--pv-cta); font-weight: 700;
}
/* Selector 25 / 50 / 100 */

.pv-size-selector {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
}

.pv-size-selector > .elementor-element {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
}

.pv-size-option .elementor-button {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 4px !important;
    white-space: nowrap !important;
    text-align: center !important;
}