/* QJ_COMPRAR_AHORA_V2 — Exclusivo de fichas individuales. */
body.single-product.qj-tienda .woocommerce div.product form.cart .qj-buy-now {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  min-height: 44px;
  margin: 4px 0 4px 10px !important;
  padding: 11px 18px !important;
  border: 1px solid #7f2b39 !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  color: #7f2b39 !important;
  font-family: 'Bodoni MT', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
body.single-product.qj-tienda .woocommerce div.product form.cart .qj-buy-now:hover:not(:disabled),
body.single-product.qj-tienda .woocommerce div.product form.cart .qj-buy-now:focus-visible:not(:disabled) {
  background: #7f2b39 !important;
  color: #ffffff !important;
}
body.single-product.qj-tienda .woocommerce div.product form.cart .qj-buy-now:disabled {
  opacity: .48 !important;
  cursor: not-allowed;
}
/* La imagen de la ficha pasa de 520px a aprox. 430px, sin deformarse. */
@media (min-width: 821px) {
  body.single-product .woocommerce div.product div.images .woocommerce-product-gallery__image img,
  body.single-product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
    height: 430px !important;
    max-height: 430px !important;
    width: 100% !important;
    object-fit: contain !important;
  }
  body.single-product .woocommerce-product-gallery .flex-viewport {
    max-height: 440px !important;
  }
}
@media (min-width: 521px) and (max-width: 820px) {
  body.single-product .woocommerce div.product div.images .woocommerce-product-gallery__image img,
  body.single-product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
    height: 360px !important;
    max-height: 360px !important;
    object-fit: contain !important;
  }
  body.single-product .woocommerce-product-gallery .flex-viewport { max-height: 370px !important; }
}
@media (max-width: 520px) {
  body.single-product .woocommerce div.product div.images .woocommerce-product-gallery__image img,
  body.single-product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
    height: 285px !important;
    max-height: 285px !important;
    object-fit: contain !important;
  }
  body.single-product .woocommerce-product-gallery .flex-viewport { max-height: 295px !important; }
  body.single-product.qj-tienda .woocommerce div.product form.cart .qj-buy-now {
    margin-left: 7px !important;
    padding: 10px 12px !important;
    font-size: 15px;
  }
}
