﻿.sidebar {
    background: linear-gradient(180deg, #b7e4c7 0%, #95d5b2 100%);
    padding: 20px 15px;
    border-right: 1px solid #c3e6cb;
    position: sticky;
    top: 0;
    min-height: 100vh;
    overflow-y: auto;
}

    .sidebar h5 {
        font-weight: 600;
        text-align: center;
        color: #2e7d32;
        letter-spacing: 0.5px;
    }

.list-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-group-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #333;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
}

    .list-group-item:hover {
        background: #e8f5e9;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(76,175,80,0.15);
    }

    .list-group-item.active {
        background: linear-gradient(90deg, #56ab2f, #a8e063);
        color: #fff;
        box-shadow: 0 3px 8px rgba(86, 171, 47, 0.3);
    }

.category-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.list-group-item:hover .category-img {
    transform: scale(1.08);
    border-color: #56ab2f;
}

/* Product Card */
.product-card {
    transition: transform 0.2s;
}

    .product-card:hover {
        transform: translateY(-3px);
    }

.product-img {
    height: 120px; /* fixed height for uniformity */
    object-fit: cover;
}

.quantity-controls {
    min-width: 90px;
}

/* Limit product name to 2 lines with ellipsis */
.product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Optional: shadow and hover effect for quantity controls */
.quantity-controls button {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 14px;
}





/* Sidebar vertical scroll */
.sidebar {
    max-height: 80vh;
    overflow-y: auto;
}

.category-item img {
    object-fit: cover;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quantity-controls button {
    padding: 0.2rem 0.5rem;
}

.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    }
