﻿header {
    position: sticky;
    z-index: 4;
    background: #ffffff;
    top: 0px;
}

@media (max-width: 768px) {
    #divTopCarousel {
        z-index: 100;
    }
}

/* Navbar fica branca ao passar o mouse */
header:hover {
    top: 0px;
    position: sticky;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navbar fica branca quando rolar a página */
header.scrolled {
    position: sticky;
    top: 0px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-footer {
    flex-grow: 1;
    display: flex;
    align-items: end;
    padding: 1rem 1.25rem;
    justify-content: center;
    height: 80px;
}

.product-card {
    transition: box-shadow 0.23s, border 0.23s, transform 0.23s;
    min-height: 500px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em;
    white-space: normal;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.1em;
}

.card-img-top {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px 10px 0 0;
}

.card-img-top img,
.card-img-top picture img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
    margin: auto;
}

/*@media (max-width: 768px) {
    .product-card {
        min-height: 350px;
        max-height: 380px;
    }

    .product-title {
        -webkit-line-clamp: 4;
        height: 5.6em;
    }

    .card-img-top {
        height: 180px;
    }
}*/

@media (max-width: 576px) {
    .product-card {
        min-height: 350px;
        max-height: 390px;
        margin-left: 1px;
        margin-right: 1px;
    }

    .product-title {
        -webkit-line-clamp: 4;
        height: 5.6em;
    }

    .card-img-top {
        height: 200px;
    }

    .card-img-top img,
    .card-img-top picture img {
        max-width: 90%;
        max-height: 100%;
    }

    .tns-carousel-products {
        gap: 0.7rem !important; /* distância discreta entre cards no mobile */
        /* Se estiver usando grid, use também: */
        /* row-gap: 0.7rem; */
        /* column-gap: 0.7rem; */
    }

    /*.product-card {
        margin-bottom: 0.7rem;*/ /* se o gap não funcionar por causa do carrossel, use uma pequena margin */
    /*}*/
}

.product-card .product-footer {
    display: block;
    opacity: 0;
    transition: opacity 0.3s;
    height: 80px;
}

.card-img-top {
    position: relative;
}

.card-img-top .hover-img {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    width: 100%;
    /* transform: scale(1.03); */
}

.product-card:hover .main-img {
    display: block;
}

.product-card:hover .hover-img {
    display: block;
}

.product-card:hover .product-footer {
    display: block;
    opacity: 1;
}

.product-card .product-instalments {
    display: block;
    opacity: 0;
    transition: opacity 0.15s;
}

.product-card:hover .product-instalments {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .fullscreen-banner img {
        object-fit: contain;
    }
}

.playlist-area {
    position: absolute;
    display: block;
    z-index: 10;
}

.playlist-area {
    top: 15%;
    left: 6.73%;
    width: 45%;
    height: 56%;
}

@media (max-width: 768px) {
    Posição para Mobile
    .playlist-area {
        top: 42%;
        left: 25%;
        width: 55%;
        height: 36%;
    }
}