/* =======================
   Buscador
======================= */
.buscador {
    width: 100%;
    max-width: 1200px;
    margin: 0 10px;
    position: relative;
    display: flex;
    align-items: center;
}

.buscador input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ccc;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s ease;
}

.buscador input:focus {
    border-color: #b76e79;
}

.boton-buscar {
    font-size: 18px;
    color: white;
    background-color: #b76e79;
    border: none;
    padding: 10px 15px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.boton-buscar:hover {
    background-color: #8a4b57;
}

/* =======================
   Resultados desplegables
======================= */
.resultados-busqueda {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 12px 12px;
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    margin-top: 5px;
    font-family: 'sans-serif';
    display: none;
    transition: all 0.3s ease;
}

.resultados-busqueda:not(.oculto) {
    display: block;
}

.item-busqueda {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.item-busqueda:hover {
    background-color: #fbe4ec;
}

.item-busqueda img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
}

.info-busqueda {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nombre-producto {
    font-weight: bold;
    font-size: 16px;
    flex: 1;
}

.precio-producto {
    font-size: 16px;
    color: #b76e79;
    font-weight: bold;
    white-space: nowrap;
    margin-left: 10px;
}

.mensaje-sin-resultados {
    padding: 10px 15px;
    color: #888;
    font-size: 14px;
}

/* Scroll estético */
.resultados-busqueda::-webkit-scrollbar {
    width: 6px;
}

.resultados-busqueda::-webkit-scrollbar-thumb {
    background-color: rgba(199,0,57,0.7);
    border-radius: 3px;
}

.resultados-busqueda::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}