/* ===========================
   BUSCADOR (SEARCH WIDGET)
   =========================== */


#header .header-top .menu {
    padding-left: 15px;
    padding-top: 10px;
}

#search_widget form input {
    width: 100%;
    padding: 10px 20px 10px 40px;
    outline: none;
    border-radius: 15px;
    background: #fff;
    border: 2px solid #ccc;              /* Borde sólido */
    border-radius: 15px;                 /* Bordes redondeados */
    transition: border-color .2s ease, box-shadow .2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* ✅ sombra ligera */
}


/* Resultados de autocompletado */
.ui-autocomplete.searchbar-autocomplete {
  width: 100%;
  min-height: 100%;
  border: none;
}

.ui-autocomplete.searchbar-autocomplete li a,
.ui-autocomplete.searchbar-autocomplete li a.ui-state-focus {
  padding: 8px 15px;
  overflow: hidden;
  border: none;
  background: none;
  margin: auto;
  border-radius: 0;
}

.ui-autocomplete.searchbar-autocomplete li a:hover {
  background-color: #f1f1f1;
  cursor: pointer;
}

.ui-autocomplete.searchbar-autocomplete li a .autocomplete-thumbnail {
  float: left;
  width: 50px;
  height: auto;
  margin-right: 8px;
}

/* Responsivo para buscador */
@media only screen and (min-width: 768px) {
  #search_widget {
    float: right;
    margin-bottom: 0;
  }
  .ui-autocomplete.searchbar-autocomplete {
    width: 400px;
    min-height: auto;
    left: auto;
  }
}

@media only screen and (min-width: 992px) {
  #search_widget {
    min-width: 16.5rem;
  }
}




/* Tarjetas ocupan toda la celda */
section.featured-products .product-miniature{
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

section.featured-products .thumbnail-container{
  display: flex;
  flex-direction: column;
  height: 100%;
}

section.featured-products .thumbnail-container img{
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* ===========================
   PREVENCIÓN DE OVERFLOW
   =========================== */
*,
*::before,
*::after{ box-sizing: border-box; }

html, body{ overflow-x: hidden; }

body.page-index .container{
  padding-left: clamp(8px, 3vw, 16px);
  padding-right: clamp(8px, 3vw, 16px);
}

/* ===========================
   HEADER MOBILE
   =========================== */
@media (max-width: 575.98px){
  #_desktop_cart .blockcart .header span.hidden-sm-down{ display: none; }
  #header .header-top .row{ align-items: center; }
}


/* =========================
   FIX: GRID PRODUCTOS (12px)
   ========================= */
 

 
section.featured-products .product-miniature{
  height: 100%;
  display: flex;
  flex-direction: column;
}

section.featured-products .thumbnail-container{
  display: flex;
  flex-direction: column;
  height: 100%;
}

section.featured-products .thumbnail-container img{
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* Forzar 2 columnas en móviles muy angostos */
@media (max-width: 360px){
  section.featured-products .products.row{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}



