/* Compact Product Cards - More products visible at once */

.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-card .card-body {
    padding: 0.75rem !important;
}

.product-card .card-title {
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2;
    min-height: 2.4rem; /* Two lines of text */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .price {
    font-size: 1rem !important;
    color: #28a745;
    font-weight: bold;
}

.product-card .brand-badge {
    margin-bottom: 0.25rem !important;
}

.product-card .brand-badge small {
    font-size: 0.65rem !important;
}

/* Compact quantity selector */
.product-card .input-group {
    margin-bottom: 0.5rem !important;
}

.product-card .qty-input {
    max-width: 50px !important;
    font-size: 0.85rem;
    padding: 0.25rem 0.15rem !important;
}

.product-card .qty-minus,
.product-card .qty-plus {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem;
}

.product-card .add-to-cart-btn {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 600;
}

.product-card .view-product-btn {
    font-size: 0.7rem !important;
    padding: 0.2rem !important;
}

/* Make image container more compact */
.card-img-top-container {
    height: 140px !important;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

/* Reduce card margins on mobile */
@media (max-width: 768px) {
    .product-card .card-body {
        padding: 0.5rem !important;
    }
    
    .card-img-top-container {
        height: 120px !important;
    }
    
    .product-card .card-title {
        font-size: 0.8rem !important;
    }
}

/* Show more products on extra large screens */
@media (min-width: 1400px) {
    .col-xl-2 {
        flex: 0 0 auto;
        width: 16.66667%; /* 6 products per row */
    }
}

/* Compact grid spacing */
.row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}








