.elementor-kit-8{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#61CE70;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-kit-8 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){margin-block-end:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}/* Start custom CSS *//* Tarjeta de categoría */
.woocommerce ul.products li.product-category {
  position: relative !important;
  overflow: hidden !important;
}

/* Link ocupa toda la tarjeta */
.woocommerce ul.products li.product-category a {
  position: relative !important;
  display: block !important;
}

/* TÍTULO COMO “PASTILLA” */
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;

  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  min-height: unset !important;
  max-height: unset !important;

  margin: 0 !important;
  padding: 8px 13px !important;

  background: #0e4d1f !important;
  color: #fff !important;
  border-radius: 10px !important;

  text-transform: uppercase !important;
  font-weight: 800 !important;
  text-align: center !important;
  line-height: 1.1 !important;

  z-index: 3 !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35) !important;
}

/* El contador NO dentro del título */
.woocommerce ul.products li.product-category .woocommerce-loop-category__title .count {
  display: none !important;
}

/* Difuminado inferior */
.woocommerce ul.products li.product-category::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(to top, rgba(14,77,31,0.85), rgba(14,77,31,0));
  z-index: 1;
  pointer-events: none;
}

/* Contador abajo en blanco */
.woocommerce ul.products li.product-category .count {
  position: absolute !important;
  bottom: 14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  background: transparent !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;

  z-index: 2 !important;
}

/* Si Astra usa <mark class="count"> */
.woocommerce ul.products li.product-category mark.count {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}
/* ===== Ajuste para móviles (evitar cortes de texto) ===== */
@media (max-width: 768px) {
  .woocommerce ul.products li.product-category .woocommerce-loop-category__title{
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: calc(100% - 16px) !important;   /* casi todo el ancho */
    max-width: calc(100% - 16px) !important;

    padding: 6px 10px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;

    white-space: normal !important;         /* permite 2 líneas */
    word-break: normal !important;          /* NO corta palabras */
    overflow-wrap: normal !important;       /* NO rompe letras */
    hyphens: none !important;               /* sin guiones */
    text-align: center !important;
  }
}

/* Extra para pantallas muy chicas */
@media (max-width: 480px) {
  .woocommerce ul.products li.product-category .woocommerce-loop-category__title{
    font-size: 12px !important;
    padding: 6px 8px !important;
  }
}/* End custom CSS */