

#primerinputSP{
    margin-bottom: 0px!important;
}

.inpbus, .inpbus2 {
    border: none !important;
    /* border-left: 1px solid #000 !important;
    border-top: 1px solid #000 !important;
    border-bottom: 1px solid #000 !important;
    border-radius: 10px 0px 0px 10px !important; */
    padding: 10px;
    border-radius: 0 0 0 0 !important;
    height: 42px;
}

.btn_buscador {
    border: none !important;
    padding: 10px;
    border-radius: 0 0 0 0 !important;
    cursor: pointer;
    /* border: 1px solid #000 !important; */
}

/* Clases para Colocar/Quitar */
.no-border-bottom {
    border-bottom: none !important;
}

.border-radius-none-input {
    border: none !important;
    border-radius: 0px 0 0 0 !important;
}

.border-radius-none-btn {
    border-bottom: none !important;
    border-radius: 0 0px 0 0 !important;
}


/* Estilo del botón cuando se pasa el ratón por encima */
.btn_buscador:hover {
    background-color: #eee;
}

.inpbus:focus, .btn_buscador:focus {
    outline: none;
    box-shadow: none !important;
}

.inpbus2:focus, .btn_buscador:focus {
    outline: none;
    box-shadow: none !important;
}


.imgBus img {
    width: 75px;
    height: auto;
    box-shadow: none;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0 !important;
}

.imgleft{
    width: 125px;
    height: 125px;
}

.imgleft .imgBus {
    width: 100%;
    height: 100%;
}

.imgleft .imgBus img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resultbuscaSP{
    margin-bottom: 16px;
}

.producindv{
    display: flex;
    padding: 12px;
    border: 1px solid #383d49;
    border-radius: 0;
}

.inforight{
    margin-left: 16px;
    display: flex;
    flex-direction: column;
    width: calc(100% - 75px);
    gap: 1rem;
}

.inforight p{
    font-size: 16px !important;
    color: #1e1e1e !important;
    font-weight: 600;
    margin: 0;
}


/* Buscador parte flotante */
.oculto{
    visibility: hidden;
}

.contenido_total {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100% !important;
    min-height: 100vh !important;
    z-index: 1000;
    /* background: rgba(0, 0, 0, 0.50);  */
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0; /* Inicia con opacidad 0 para estar oculto inicialmente */
    transform: translateY(-20px);
    backdrop-filter: blur(3px);
}

.contenido_flotando {
    position: absolute;
    top: 90px;;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 700px;

}

.contenido_input {
    position: relative;
}

.result_busca {
    position: absolute;
    /* border: 1px solid; */
    border: none !important;
    display: none;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    z-index: 10;
    min-height: 20px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 0 !important;
    /* margin-top: 20px;  */
}

.ocult {
    display: block !important;
}


/* Cuando no tiene la clase oculto, cambia la opacidad y posición */
.contenido_total:not(.oculto) {
    opacity: 1;
    transform: translateY(0);
    backdrop-filter: blur(4px);
    background-color: rgba(0,0,0,.25) !important;
}

/* Puedes hacer algo similar para el primer input */
#primerinputSP.oculto {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

#verMasSP{
    font-size: 16px;
    background: black;
    color: white!important;
    padding: 12px 12px;
    box-shadow: 0 0 16px #0003;
    display: flex;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

#verMasSP:hover{
    background: white;
    color: black!important;
}

.result_busca .woocommerce-Price-amount{
    color: black!important;
}

.container_icon_search_ml svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #1e1e1e;
    cursor: pointer;
    transition: .25s;
}

.container_icon_search_ml svg:hover {
    fill: #f6d42f;
}

.remove_search_ml_sp_l {
    position: absolute;
    width: 2rem;
    height: 2rem;
    z-index: 100;
    right: 2rem;
    top: 2rem;
    cursor: pointer;
}

.remove_search_ml_sp_l::before,.remove_search_ml_sp_l::after {
    content: '';
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    top: 50%;
    transform: translate(-50%) rotate(45deg);
    left: 50%;
    transition: .25s;
}

.remove_search_ml_sp_l::after {
    transform: translate(-50%) rotate(-45deg);
}

@media (max-width: 1025px){
    .container_icon_search_ml svg {
        width: 32px;
        height: 32px;
    }
}
/*Alinear la lupa en medio*/
#btnBusca,#btnBusca2{
    display: flex;
    align-items: center;
}

.sp_buscador_col12 {
    display: flex;
    gap: .5rem;
}

.sp_buscador_col12 span {
    background: gainsboro;
    border-radius: 0;
    padding: 6px 8px;
    font-weight: 500;
    font-size: 13px;
}

@media (max-width: 767px){
    #primerinputSP {
        display: none;
    }

    .container_icon_search_ml svg {
        width: 22px;
        height: 22px;
    }

    .remove_search_ml_sp_l {
        width: 1.5rem;
        height: 1.5rem;
        right: 1rem;
        top: 1rem;
    }
}

.lista_estrellas svg{
    width: 20px;
}

.lista_estrellas{
    display: flex;
}

.sp_buscador_col1{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sp_buscador_col2{
    display:flex;
    align-items: flex-end;
    width: 100%;
    justify-content: flex-end;
}

.sp_buscador_col2 a{
    color: #fff !important;
    border-radius: 0 !important;
    padding: 8px 16px!important;
    font-size: 14px!important;
    line-height: 1.75rem;
    font-weight: 600;
    background: #ef3e29 !important;
    border: 2px solid #ef3e29 !important;
}
.sp_buscador_col2 a:hover{color: #ef3e29 !important;background: transparent !important;}

@media(max-width: 767px){
    .imgleft {
        width: 60px;
        height: 60px;
    }
    
    .imgBus img {
        width: 60px;
    }
    
    .inforight {
        margin-left: .5rem;
        gap: .5rem;
    }
    
    .inforight p {
        font-size: 13px !important;
    }
    
    .sp_buscador_col2 a {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }

    .sp_buscador_col12 {
        flex-wrap: wrap;
        gap: .35rem;
    }
    
    .sp_buscador_col12 span {
        font-size: 10px;
        padding: 3px 6px;
    }

    .producindv {
        padding: 8px;
    }

}

.result_busca::-webkit-scrollbar {
    width: 8px;
    background: #1e1e1e2e;
}

.result_busca::-webkit-scrollbar-thumb {
    width: 8px;
    background: #1e1e1e99;
}

.container_icon_search_ml {
    background: #ef3e29;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ef3e29;
    transition: .25s !important;
}

.container_icon_search_ml svg {
    fill: #fff;
    transition: .25s !important;
    width: 1.25rem;
    height: 1.25rem;
}

.container_icon_search_ml:hover {
    background: transparent;
}

.container_icon_search_ml:hover svg {
    fill: #ef3e29;
}

.contenido_flotando * {
    font-family: 'Gotham Book', sans-serif !important;
}

@media(max-width: 1024px){
    .container_icon_search_ml {
        background: #fff;
        width: 2.25rem;
        height: 2.25rem;
        border: 2px solid #fff;
    }
    
    .container_icon_search_ml svg {
        fill: #ef3e29;
        width: 1.15rem;
        height: 1.15rem;
    }
    
    .container_icon_search_ml:hover svg {
        fill: #fff;
    }
}