﻿/* CSS for Home*/
.truncate-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    line-height: 1.3em;
    height: 2.6em;
}

.top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    font-size: 12px;
    padding: 3px 7px;
    border-radius: 4px;
    z-index: 10;
    font-weight: bold;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.nav-link-icon {
    width: 20px;
    height: 20px;
}

.product-list-name {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
}

.card-body {
    padding: 15px 15px 10px 15px;
}

.card {
    border-radius: 6px;
    padding: 0;
    border: 1px solid #ddd;
    transition-duration: 0.5s;
}

    .card:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.card-title a {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.item-price-text {
    font-size: 16px;
    color: black;
}

.item-discount-text {
    font-size: 14px;
}

.row .col-md-3, .row .col-md-4 {
    padding-left: 10px;
    padding-right: 10px;
}
