.elementor-3758 .elementor-element.elementor-element-71076ed{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS *//****************************************
 * 1) Layout Principal (Flex)
 ****************************************/
.page-container-cuatro-anos {
  display: flex; 
  gap: 30px; 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 20px; 
  background-color: #fafafa;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/****************************************
 * 2) SIDEBAR
 ****************************************/
.sidebar-cuatro-anos {
  flex: 0 0 280px;           /* Ancho fijo para escritorio */
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  font-family: 'Roboto', sans-serif;
}

/* Header del Sidebar (buscador) */
.sidebar-header-cuatro-anos {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-search-cuatro-anos {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.sidebar-search-cuatro-anos:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 5px rgba(0, 86, 179, 0.3);
}

.search-button-cuatro-anos {
  padding: 10px 15px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.search-button-cuatro-anos:hover {
  background-color: #0056b3;
  transform: scale(1.02);
}

/****************************************
 * Resultados de Búsqueda
 ****************************************/
.search-results-cuatro-anos {
  list-style-type: none;
  margin-top: 10px;
  padding: 0;
  max-height: 180px;
  overflow-y: auto;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.search-results-cuatro-anos::-webkit-scrollbar {
  width: 6px;
}
.search-results-cuatro-anos::-webkit-scrollbar-thumb {
  background-color: #007bff;
  border-radius: 3px;
}
.search-results-cuatro-anos li {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  font-size: 0.95rem;
  color: #333;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, padding-left 0.3s ease;
  position: relative;
}
.search-results-cuatro-anos li::before {
  content: "🔎";
  margin-right: 8px;
  font-size: 1rem;
  opacity: 0.6;
}
.search-results-cuatro-anos li:hover {
  background-color: #f1f1f1;
  padding-left: 20px;
}
.search-results-cuatro-anos li:last-child {
  border-bottom: none;
}

/****************************************
 * 3) Categorías
 ****************************************/
.sidebar-category-cuatro-anos h2 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.4rem;
  text-align: center;
}
.category-list-cuatro-anos {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-item-cuatro-anos {
  position: relative;
  margin-bottom: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  transition: background-color 0.3s ease;
}
.category-item-cuatro-anos:hover {
  background-color: #f1f1f1;
}
.category-link-cuatro-anos {
  text-decoration: none;
  font-weight: bold;
  color: #333;
  transition: color 0.3s;
}
.category-link-cuatro-anos:hover {
  color: #007bff;
}
.toggle-button-cuatro-anos {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #007bff;
  transition: transform 0.3s ease;
}
.toggle-button-cuatro-anos.open {
  transform: rotate(90deg);
}
.subcategory-list-cuatro-anos {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  display: none; /* Oculto por defecto */
  border-left: 2px solid #007bff;
  margin-left: 10px;
  padding-left: 10px;
}
.subcategory-list-cuatro-anos a {
  text-decoration: none;
  color: #007bff;
  margin: 5px 0;
  display: block;
  transition: color 0.3s ease;
}
.subcategory-list-cuatro-anos a:hover {
  text-decoration: underline;
  color: #0056b3;
}

/****************************************
 * 4) Contenido de Productos
 ****************************************/
.product-content-cuatro-anos {
  flex: 1; /* Ocupará el resto del espacio */
}

.product-wrapper-cuatro-anos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
  margin: 0 auto;
  position: relative;
}

/* Título de la categoría */
.product-wrapper-cuatro-anos .category-title {
  grid-column: 1 / -1;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: #2a7ae4;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-in-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.product-wrapper-cuatro-anos .category-subtitle {
  grid-column: 1 / -1; 
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: #2a7ae4;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 0.8s ease-in-out forwards;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Card de producto */
.product-wrapper-cuatro-anos .product {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  position: relative;
}
.product-wrapper-cuatro-anos .product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.product-wrapper-cuatro-anos .product-link {
  text-decoration: none;
}
.product-wrapper-cuatro-anos .product-image {
  width: 100%;
  height: 200px; /* Fija la altura a 200px (ajusta si deseas) */
  object-fit: cover; /* Recorta la imagen para ajustarla al contenedor */
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  transition: transform 0.3s ease-in-out;
}
.product-wrapper-cuatro-anos .product:hover .product-image {
  transform: scale(1.05);
}

/* Título h4 */
.product-wrapper-cuatro-anos .product h4 {
  font-size: 1.2em;
  color: #007bff;
  margin: 15px 10px 5px 10px;
  font-weight: 600;
  line-height: 1.3;
}

/* Subtítulo h5 */
.product-wrapper-cuatro-anos .product h5 {
  font-size: 1em;
  color: rgba(102, 102, 102, 0.5);
  margin-bottom: 10px;
  font-weight: 400;
}

/* Precio */
.product-wrapper-cuatro-anos .product .price {
  font-size: 1.2em;
  color: #d9534f;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
}

/* Botón Añadir al carrito */
.product-wrapper-cuatro-anos .product .button.add_to_cart_button.ajax_add_to_cart {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: #ffffff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.3s ease;
  margin-top: auto;
  margin-bottom: 10px;
}
.product-wrapper-cuatro-anos .product .button.add_to_cart_button.ajax_add_to_cart:hover {
  background: linear-gradient(45deg, #0056b3, #003f8a);
  transform: translateY(-2px);
}

/****************************************
 * 5) Animaciones
 ****************************************/
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0);     }
}

/****************************************
 * 6) Responsivo
 ****************************************/
/* Tablet (~991px) */
@media (max-width: 991px) {
  .page-container-cuatro-anos {
    flex-direction: column;
  }
  .sidebar-cuatro-anos {
    width: 100%;
    margin-bottom: 20px;
  }
  .product-wrapper-cuatro-anos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Móvil (~576px) */
@media (max-width: 576px) {
  .sidebar-header-cuatro-anos {
    flex-direction: column;
    gap: 5px;
  }
  .search-button-cuatro-anos {
    width: 100%;
    margin-top: 5px;
  }
  .product-wrapper-cuatro-anos {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  .product-wrapper-cuatro-anos .product {
    padding: 10px;
  }
  .product-wrapper-cuatro-anos .product-image {
    /* Si quieres más pequeña */
    max-height: 180px;
  }
  .product-wrapper-cuatro-anos .product h4 {
    font-size: 1rem;
  }
  .product-wrapper-cuatro-anos .product h5 {
    font-size: 0.85rem;
  }
  .product-wrapper-cuatro-anos .product .price {
    font-size: 1rem;
  }
}/* End custom CSS */