/* PRODUCT ITEM CARD */
.product-item {
    background: #ffffff; /* card background */
    border-radius: 16px;
    overflow: hidden;
    padding: 15px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* subtle lift */
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* PRODUCT IMAGE */
.product-item figure {
    margin: 0 0 15px;
    overflow: hidden;
    border-radius: 12px;
    background: #f9f9f9; /* slight contrast with white card */
}

.product-item figure img.tab-image {
    width: 100%;
    height: 220px; /* fixed height for uniformity */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-item figure img.tab-image:hover {
    transform: scale(1.05);
}

/* PRODUCT TITLE AND INFO */
.product-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;

    line-height: 20px;            /* height of a single line */
    max-height: 60px;              /* 3 lines x 20px */
    min-height: 60px;              /* always reserve 3 lines */

    display: -webkit-box;
    -webkit-line-clamp: 3;         /* limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-item a{
    text-decoration: none;
}

.product-item .qty,
.product-item .rating,
.product-item .price {
    display: inline-block;
    font-size: 14px;
    margin-right: 8px;
    color: #555;
}

.product-item .price {
    font-weight: bold;
    color: #e60000;
}

/* ADD TO CART BUTTON */
.product-item .add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--bs-primary);
    color: #000;
    font-size: 14px;
    transition: background 0.3s ease;
}

.product-item .add-to-cart:hover {
    background: #cc0000;
    color: white;
}



/* OPTIONAL: subtle background for section */
section.py-5 {
    background: #f4f5f7; /* light grey background for contrast */
    padding-top: 60px;
    padding-bottom: 60px;
}
