/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://example.com
 Description:  Tema hijo de Hello Elementor
 Author:       Tu Nombre
 Author URI:   https://example.com
 Template:     hello-elementor
 Version:      1.0.0
*/

:root{
  --wc-form-color-background: #111;
  --wc-form-border-color: #333;
  --wc-form-color-text: #f2f2f2;
  --wc-form-placeholder-color: #aaa;
}

/* Logo encogido */
.header-shrink.shrunk .elementor-widget-theme-site-logo img {
  max-height: 45px;
  transform: translateY(0);
}

.bp-listado-categorias {
  text-align: center;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bp-listado-categorias .bp-cat-item a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bp-listado-categorias .bp-cat-item a:hover {
  color: #97BD11;
}

.bp-listado-categorias .bp-cat-item.is-current a {
  color: #97BD11;
}

.bp-listado-categorias .bp-cat-separator {
  margin: 0 12px;
  color: #ffffff;
}

.bp-listado-categorias .bp-cat-item:not(:last-child)::after {
  content: " - ";
  margin: 0 6px;
  color: #ffffff;
}

/* En móvil quitamos el separador y dejamos que se organicen en varias filas */
@media (max-width: 768px) {
  .bp-listado-categorias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    white-space: normal;
    font-size: 12px;
  }

  .bp-listado-categorias .bp-cat-item::after {
    content: "";
    margin: 0;
  }
}

body.bp-has-subcats #bp-archive-products { display: none; }
body.bp-has-subcats #bp-archive-subcats { display: block; }

body.bp-no-subcats #bp-archive-products { display: block; }
body.bp-no-subcats #bp-archive-subcats { display: none; }

.receta-productos-relacionados {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.receta-producto-item { text-align: center; }

.receta-producto-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.receta-producto-titulo {
  font-size: 16px;
  margin: 5px 0;
}

.receta-producto-precio { font-weight: 600; }

/* Forzar imágenes cuadradas en Elementor */
.elementor-widget-image-product img,
.elementor-widget-woocommerce-products .woocommerce ul.products li.product img,
.elementor-widget-woocommerce-products .product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  height: auto;
  max-width: 500px;
  max-height: 500px;
}

/* ================================
   Quantity (carrito / checkout)
   - Oculta spinners nativos
   - Flechas custom sin solape
   ================================ */

/* Ocultar flechas nativas */
.quantity input[type=number]::-webkit-inner-spin-button,
.quantity input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.quantity input[type=number] {
  -moz-appearance: textfield;
}

/* Contenedor */
.quantity {
  position: relative;
  display: inline-block;
}

/* Input */
.quantity .input-text.qty {
  width: 56px;
  padding: 10px 32px 10px 8px !important; /* hueco para flechas */
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  text-align: left;
  font-size: 18px;
  border-radius: 0;
  min-height: 44px;
  line-height: 1.2;
}

/* No usamos ::before/::after en el contenedor */
.quantity::before,
.quantity::after {
  content: none !important;
}

/* Áreas clicables + flechas visibles */
.quantity .qty-arrow-up,
.quantity .qty-arrow-down {
  position: absolute;
  right: 0;
  width: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  border-left: 1px solid rgba(255,255,255,.35);
}

.quantity .qty-arrow-up { top: 0; height: 50%; }
.quantity .qty-arrow-down { bottom: 0; height: 50%; }

/* Reemplazar glifos por triángulos CSS (iguales arriba/abajo) */
.quantity .qty-arrow-up::before,
.quantity .qty-arrow-down::before{
  content: "" !important;
  width: 0;
  height: 0;
  display: block;
}

/* Triángulo arriba */
.quantity .qty-arrow-up::before{
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid #fff;
}

/* Triángulo abajo */
.quantity .qty-arrow-down::before{
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #fff;
}


/* ================================ */

.my-receta-related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.my-receta-related-product-item { width: 100%; }

.elementor-widget-woocommerce-menu-cart .woocommerce-mini-cart__empty-message {
  font-size: 14px;
  padding: 20px;
}

.single_variation_wrap {
  padding-bottom: 20px;
}

/* Ocultar PayPal Pay Later (banners) */
/* Página de producto */
.single-product .ppcp-messages,
.single-product .paypal-messages,
.single-product .ppcp-message,
.single-product .paypal-message {
  display: none !important;
}

/* Checkout */
.woocommerce-checkout .ppcp-messages,
.woocommerce-checkout .paypal-messages,
.woocommerce-checkout .ppcp-message,
.woocommerce-checkout .paypal-message {
  display: none !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger{
  z-index: 98 !important;
}
.elementor-297 .elementor-element.elementor-element-4a968cd1 a {
    color: #20110E !important;
}

