/*
Theme Name: Storefront Child
Theme URI: https://allimantservicio.cl/
Description: Child theme de Storefront para WooCommerce
Author: Cristian Paper
Author URI: https://allimantservicio.cl/
Template: storefront
Version: 1.0.0
*/

/* Contenedor que agrupa A, B y C */

.encabezados{
    padding-bottom: 10px ;
 border-bottom: 3px solid #a01a26;
 width: 30%;
 max-width: 30%;
}

/* ============================================================
   TARJETAS DE PRODUCTO — DISEÑO PERSONALIZADO PRODUCTS
============================================================ */

ul.products li.product {
  background: #fff !important;
  padding: 15px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-align: center !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

ul.products li.product:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 15px rgba(0,0,0,0.15) !important;
}

/* Imagen */
ul.products li.product img {
  width: 100% !important;
  height: auto !important;
  margin-bottom: 10px !important;
  border-radius: 4px;
}

/* Título */
ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px !important;
  color: #222 !important;
  margin: 5px 0 !important;
}

/* Precios */
ul.products li.product .price {
  margin-top: auto !important;
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  align-items: center !important;
}

/* Precio normal (tachado) */
ul.products li.product .price del {
  color: #888 !important;
  text-decoration: line-through !important;
}

/* Precio oferta */
ul.products li.product .price ins {
  color: #a01a26 !important;
  font-weight: bold !important;
}

/* Botón añadir al carrito */
ul.products li.product a.button,
ul.products li.product a.add_to_cart_button {
  background-color: #a01a26 !important;
  color: #fff !important;
  border-radius: 4px !important;
  padding: 8px 10px !important;
  margin-top: 10px !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: background 0.2s !important;
}

ul.products li.product a.button:hover,
ul.products li.product a.add_to_cart_button:hover {
  background-color: #7f141f !important;
}

/* GRID RESPONSIVE (igual al tuyo) */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}

@media (max-width: 1024px){
  ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px){
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}

/* Badge OFERTA con colores personalizados pero tamaño por defecto */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
   
    color: red !important;
    border: 1px solid red !important;
}

/* Envolver el widget de categorías con un contenedor desplazable */
.widget_product_categories {
    max-height: 350px;        /* 👉 puedes ajustar la altura */
    overflow-y: auto;         /* 👉 activa scroll vertical */
    padding-right: 5px;       /* espacio para que no tape el scroll */
}

/* Estilos del scroll (opcional, para que se vea bonito) */
.widget_product_categories::-webkit-scrollbar {
    width: 8px;
}

.widget_product_categories::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.widget_product_categories::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 6px;
}

.widget_product_categories::-webkit-scrollbar-thumb:hover {
    background: #999;
}



/* ============================================================
   WIDGET CATEGORIA LATERAL DE TIENDA 
============================================================ */
/* 🔥 1. Ocultar icono de carpeta en todas las variantes */
.widget_product_categories .cat-item a::before,
.widget_product_categories li::before {
    display: none !important;
    content: none !important;
}

/* 🔥 2. Agregar checkbox vacío */
.widget_product_categories .cat-item a {
    position: relative;
    padding-left: 24px !important;
}

.widget_product_categories .cat-item a::after {
    content: "";
    width: 15px;
    height: 15px;
    border: 2px solid #a01a26;
    border-radius: 3px;
    position: absolute;
    left: 0;
    top: 3px;
    background: #fff;
}

/* 🔥 3. Checkbox marcado con ticket (✔) */
.widget_product_categories .current-cat > a::after,
.widget_product_categories .current-cat-parent > a::after {
    content: "✔";
    font-size: 14px;
    color: #fff;
    background: #a01a26;
    display: flex;
    justify-content: center;
    align-items: center;
    border-color: #a01a26;
}

.widget_price_filter .ui-slider .ui-slider-range{
   background-color: #a01a26; 
}

