﻿.productitem {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

    .productitem.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
.col-md-4:nth-child(3n+2) .productitem {
    transition-delay: 0.1s;
}

.col-md-4:nth-child(3n+3) .productitem {
    transition-delay: 0.2s;
}


.content-collapse {
    position: relative;
    max-height: 120px; /* ~5 dòng */
    overflow: hidden;
    transition: max-height 0.4s ease;
}

    .content-collapse.expanded {
        max-height: 9999px;
    }

    .content-collapse:not(.expanded)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: linear-gradient(transparent, #fff);
        pointer-events: none;
    }

.btn-readmore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 180px;
    margin: 12px auto 0;
    padding: 10px 24px;
    border: 1.5px solid #ccc;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    text-align: center;
}

    .btn-readmore:hover {
        border-color: #2a9d6e;
        color: #2a9d6e;
    }