@charset "UTF-8";
#filtro-productos select#categoria {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f2f2f2;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  width: 100%;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='30,50 70,90 110,50' stroke='%23666' stroke-width='20' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  margin-top: 10px;
}

#filtro-productos select#categoria:focus {
  outline: none;
  box-shadow: none;
}

#filtros-atributos fieldset {
  border: none;
  padding: 0;
  margin: 20px 0 0 0;
}

#filtros-atributos legend {
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
  padding-left: 2px;
}

#filtros-atributos fieldset > div {
  background-color: #f2f2f2;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#filtros-atributos label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

#filtros-atributos input[type=checkbox] {
  accent-color: #666;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

#filtros-atributos fieldset > div {
  max-height: 500px;
  overflow-y: scroll;
}

/* Solo en móvil */
@media (max-width: 768px) {
  #filtro-responsive-wrapper {
    display: block;
    position: relative;
    z-index: 999;
  }
  .fila-filtrar-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #contador-productos-mobile {
    padding: 10px;
    font-size: 13px;
  }
  #abrir-filtros-mobile {
    display: block;
    width: 47%;
    background: #d7ff75;
    color: #658F00;
    padding: 14px;
    font-size: 16px;
    border: none;
  }
  #filtro-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 90%;
    max-width: 320px;
    background: #fff;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: scroll;
    overflow-x: hidden;
    z-index: 1000;
  }
  #filtro-offcanvas.abierto {
    transform: translateX(0);
  }
  #filtro-offcanvas .aplicar-filtros {
    margin-top: 20px;
    width: 100%;
    background-color: #658F00;
    color: white;
    padding: 14px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
  }
  #filtro-offcanvas .contenido-filtros {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  #filtro-offcanvas select#categoria,
  #filtro-offcanvas select[name=categoria] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #f2f2f2 !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 12px !important;
    width: 100% !important;
    font-size: 16px !important;
    color: #333 !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='30,50 70,90 110,50' stroke='%23666' stroke-width='20' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px !important;
    margin-top: 10px !important;
  }
  #filtro-offcanvas select#categoria:focus {
    outline: none;
    box-shadow: none;
  }
  /* Ocultar filtros originales en móvil si se usa offcanvas */
  #filtro-productos:not(#filtro-offcanvas *),
  #ordenador-productos:not(#filtro-offcanvas *) {
    display: none !important;
  }
  #filtros-atributos-mobile fieldset {
    border: none;
    margin: 0;
    padding: 0;
  }
  #filtros-atributos-mobile {
    margin-top: 10px;
  }
  #filtros-atributos-mobile legend {
    font-weight: 400;
    font-size: 14px;
    color: #333;
    padding: 14px 20px;
    background: #f2f2f2;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    margin-bottom: 10px;
  }
  #filtros-atributos-mobile legend::after {
    content: "⌄";
    font-size: 14px;
    transition: transform 0.3s ease;
  }
  #filtros-atributos-mobile fieldset.abierto legend::after {
    transform: rotate(180deg);
  }
  #filtros-atributos-mobile fieldset > div {
    display: none;
    background: #f9f9f9;
    padding: 14px 20px;
    border-radius: 0 0 12px 12px;
    margin-top: 4px;
  }
  #filtros-atributos-mobile fieldset.abierto > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  #filtros-atributos-mobile label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
  }
  #filtros-atributos-mobile input[type=checkbox] {
    accent-color: #666;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
  }
  #filtro-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none !important;
  }
  #filtro-offcanvas-overlay.visible {
    display: block;
  }
  /* Asegura que el overlay realmente se oculte al quitar la clase .visible */
  #filtro-offcanvas-overlay {
    display: none !important;
  }
  #filtro-offcanvas-overlay.visible {
    display: block;
  }
}
/* En desktop, ocultar el botón filtrar */
@media (min-width: 769px) {
  #abrir-filtros-mobile,
  #filtro-offcanvas {
    display: none !important;
  }
}
#ordenador-productos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

#ordenador-productos .ordenador-select {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 40%;
}

#ordenador-productos select {
  background-color: #f1f1f1;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

#ordenador-productos select:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ccc;
}

#ordenador-productos label {
  font-weight: 400;
  font-size: 14px;
  white-space: nowrap;
}

#ordenador-productos #contador-productos {
  font-size: 14px;
  color: #333;
}

ul.products.columns-4::before {
  content: unset !important;
}

ul.products.columns-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

ul.products.columns-4 li.product {
  width: 100% !important;
  margin: 0 !important;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  padding: 25px !important;
  border: solid 1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

ul.products.columns-4 .woocommerce-loop-product__title {
  color: black;
  font-size: 16px;
  font-weight: 400;
}

.woocommerce-Price-amount.amount {
  font-size: 18px;
  font-weight: 400;
  color: black;
  text-decoration: none !important;
}

.price {
  margin-top: 10px !important;
}

.woocommerce-price-suffix {
  display: none;
}

del .woocommerce-Price-amount.amount {
  color: black !important;
  font-size: 13px;
  margin-right: 3px;
}

ul.products.columns-4 .ajax_add_to_cart {
  width: 100%;
  text-align: center;
  padding: 18px;
  border-radius: 100px;
  background-color: #658F00 !important;
  color: white;
  font-weight: 400;
  margin-top: auto !important;
}

.ajax-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
}

.ajax-pagination a {
  background-color: #f2f2f2;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
}

.ajax-pagination a:hover {
  background-color: #ddd;
}

.ajax-pagination a.active {
  background-color: #333;
  color: #fff;
  font-weight: bold;
}

.ajax-pagination .dots {
  padding: 6px 8px;
  color: #999;
  user-select: none;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  ul.products.columns-4 {
    grid-template-columns: repeat(1, 1fr);
  }
}

/*# sourceMappingURL=styles.css.map */
