#lista-productos {
    position: absolute;
    top: 100%; /* Justo debajo del input */
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-size: 14px;
}

#lista-productos li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #333;
}

#lista-productos li:last-child {
    border-bottom: none;
}

#lista-productos li:hover {
    background-color: #f8f9fa;
}

.font-responsive {
    font-size: 0.8rem; /* valor base */
}

.card-title-limit {
    /*height: 64.8px;*/
    height: calc(1.6em * 2);   
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* máximo 2 líneas */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    line-height: 1.2em;
}

@media (max-width: 576px) {
    .font-responsive {
        font-size: 0.7rem; /* más pequeño en pantallas pequeñas */
    }
    .font-responsive-cart {
        font-size: 1.2rem;
    }
    .card-fix {
        /*max-width: 80%;*/
        margin: 0 auto; /* centrado */
    }
    .card-fix .img-container {
        height: 180px !important; /* menor altura para móviles */
    }
    .card-fix .card-body p {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    .card-fix .card-header {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    .card-fix .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    .responsive-btn {
        font-size: 0.9rem !important;
    }
    .img-container-product-detail {
        height: 180px;
    }
    .img-shoppingCart img {
        height: 260px;
        margin-top: 16px;       
        border-top-right-radius: 0.375rem;
        border-bottom-right-radius: 0.375rem;
    }
}

#main-content {
    transition: margin-top 0.6s ease;
}

/*#companyName{
    background-image: url('../assets/mobil.png');
    background-clip: text;
    color:transparent;
    background-color: white;
}*/

#pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.5rem;
    column-gap: 0.25rem;
}

#floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transition: opacity 0.4s ease;
}

#floating-buttons.hidden {
    opacity: 0;
    pointer-events: none;
}
