.products {
    width: 100%;
    height: max-content;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    row-gap: 20px;
    column-gap: 20px;
    cursor: default;
}

@media (min-width: 1200px) and (max-width: 1700px) {
    .products {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (min-width: 976px) and (max-width: 1200px) {
    .products {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 0) and (max-width: 976px) {
    .products {
        grid-template-columns: 1fr 1fr;
    }

    .content-product .call-link span {
        font-size: 10px;
    }
}

.product {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 100;
}

.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.thumbnail-product {
    position: relative;
    overflow: hidden;
}

.thumbnail-product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.product:hover .thumbnail-product img {
    transform: scale(1.08);
}

.content-product {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-product h5 {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px;
    line-height: 1.3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.content-product h5:hover {
    color: rgb(255, 140, 140);
}

.content-product .short-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.content-product .call-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.content-product .call-link a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-product .call-link span {
    margin-left: 20px;
    display: block;
}

.content-product .call-link img {
    height: 20px;
    width: 20px;
    filter: brightness(0) invert(1);
    transition: opacity 0.5s;
    opacity: 0;
    visibility: hidden;
}


.content-product .call-link a:hover span {
    display: none;
}

.content-product .call-link a:hover img {
    opacity: 1;
    visibility: visible;
}


.content-product .btn {
    font-size: 14px;
    padding: 10px;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
}

.content-product .call-product {
    background: linear-gradient(135deg, #ff5722, #e53935);
    box-shadow: 0 3px 8px rgba(229, 57, 53, 0.4);
}

.content-product .call-product:hover {
    background: linear-gradient(135deg, #e53935, #c62828);
}

.content-product .zalo-product {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    box-shadow: 0 3px 8px rgba(25, 118, 210, 0.4);
}

.content-product .zalo-product:hover {
    background: linear-gradient(135deg, #1976d2, #0d47a1);
}

/* Badge khuyến mãi góc trên */
.badge {
    position: absolute;
    /* top: 12px;
    left: -25px;
    background: #ff1744;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 40px;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 100; */
}
