body {
    overflow-x: hidden;
}

.marquee6k {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    background: #7C3AED;
    color: #ffff;
    border-radius: 4px;
}

.marquee6k h2 {
    white-space: nowrap;
    display: inline-block;
}

#h5-products {
    font-size: 30px;
}

#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;
}

#lista-productos:empty {
    display: none;
}

.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;
}

.gallery-margin {
    margin-top: 250px;
}

.img-container-product-detail {
    display: flex;
    justify-content: center; /* centra horizontal */
    align-items: center;     /* centra vertical */
    overflow: hidden;        /* evita desbordes */
}

.img-container-product-detail img {
    max-width: 100%;   /* nunca más ancha que el contenedor */
    max-height: 300px; /* limita la altura */
    /*object-fit: contain; /* mantiene proporción sin deformar */
    object-fit: cover;  /*llene el espacio recortándose (tipo portada)*/
}

.img-shoppingCart {
    display: flex;
    justify-content: center; /* centra horizontal */
    align-items: center;     /* centra vertical */
    overflow: hidden;        /* evita desbordes */
}

.img-shoppingCart img {
    width: 300px;
    /*max-width: 200px;*/
    max-height: 160px;
    /*margin-top: 16px;*/
    object-fit: contain;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

@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;
    }
    #productSearch{
        margin-top: 0px !important;
        padding-top: 0px !important;
    }
    .gallery-margin {
        margin-top: 230px !important;
    }
}

#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;
}
