body { background: linear-gradient(135deg, #FFB6B9 0%, #FFDE7D 100%); }
.product-card { background: #fff; border-radius: 1rem; box-shadow: 0 4px 16px rgba(255,97,166,0.10); padding: 1rem; margin-bottom: 1.5rem; }
.not-found { background: #fff8f0; border: 1px solid #FFB6B9; border-radius: 1rem; padding: 2rem; text-align: center; }
#resultsContainer .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}
#resultsContainer .col-6, #resultsContainer .col-md-4 {
  padding-left: 8px;
  padding-right: 8px;
}
#resultsContainer .product-card-flip {
  width: 100%;
  min-width: 0;
  max-width: 340px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  #resultsContainer .col-6, #resultsContainer .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  #resultsContainer .product-card-flip {
    max-width: 98vw;
    min-width: 0;
    width: 100%;
  }
  #resultsContainer .marco-imagen {
    width: 100vw !important;
    max-width: 98vw !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: 60vw !important;
  }
  #resultsContainer img.img-producto {
    width: 100vw !important;
    max-width: 98vw !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: 60vw !important;
    object-fit: contain !important;
  }
}
/* --- ESTILO VISUAL UNIFICADO PARA MÓVILES EN RESULTADOS --- */
@media (max-width: 600px) {
  body {
    background: linear-gradient(135deg, #FFB6B9 0%, #FFDE7D 100%) !important;
    padding-top: 0 !important;
  }
  .container, .container-fluid {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  /* Menú hamburguesa igual que en index */
  .navbar {
    position: relative !important;
    min-height: 110px !important;
    background: linear-gradient(90deg, #FF61A6 0%, #FFB347 100%) !important;
  }
  .navbar-toggler {
    position: absolute;
    left: 0.2rem;
    top: 68px;
    z-index: 2100 !important;
    font-size: 2.1rem !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0.2rem !important;
    color: #1976d2 !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .navbar-toggler .navbar-toggler-icon { display: none !important; }
  .navbar-toggler::before {
    content: '\2630';
    font-size: 2.1rem;
    color: #1976d2 !important;
    display: block;
    line-height: 1;
  }
  /* Logo pequeño a la izquierda del input */
  #logo-buscador-mobile {
    display: block;
    width: 38px;
    height: 38px;
    margin-right: 0.5rem;
  }
  /* Buscador móvil igual que en index */
  #formBuscadorResultados {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 1.7rem !important;
    margin-bottom: 0.5rem;
    width: 100%;
    max-width: 95vw;
    gap: 0.5rem;
    position: relative;
  }
  #formBuscadorResultados input {
    font-size: 1rem;
    height: 2.3rem;
    max-width: 180px;
    min-width: 90px;
    margin: 0;
    display: block;
    border-radius: 2rem;
    border: 1.5px solid #FFB6B9;
  }
  #formBuscadorResultados button {
    height: 2.3rem;
    font-size: 1rem;
    min-width: 60px;
    padding: 0 1rem;
    background: #FF61A6;
    border: none;
    border-radius: 2rem;
    color: #fff;
    font-weight: 500;
  }
  #barraFiltroBusqueda {
    display: none !important;
  }
  .hero-section {
    margin-top: 0 !important;
    padding-top: 1.2rem !important;
  }
  nav.navbar {
    margin-bottom: 0 !important;
  }
  body {
    padding-top: 0 !important;
  }
  .container, .container-fluid {
    margin-top: 0 !important;
    padding-top: 0.5rem !important;
  }
  /* Sugerencias de búsqueda en resultados: que aparezcan justo debajo del input */
  #suggestionsListResultados {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1200 !important;
    max-height: 180px;
    overflow-y: auto;
    border-radius: 0.7rem;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
    background: #fff;
    margin-top: 2px;
  }
  #inputBusquedaResultados:focus + #suggestionsListResultados,
  #suggestionsListResultados:active,
  #suggestionsListResultados:hover {
    display: block !important;
  }
}
