/* Amazon-style layout */
.filters-sidebar {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.filters-sidebar h6 {
    color: #232f3e;
    font-size: 0.95rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.form-check {
    margin-bottom: 5px;
}

.form-check-label {
    color: #007185;
    cursor: pointer;
}

.form-check-label:hover {
    color: #c7511f;
    text-decoration: underline;
}

/* Products grid - responsive like Amazon */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Make all cards same height */
}

.product-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

/* Make product info area flexible */
.product-info {
    display: flex;
    flex-direction: column;
    flex: 1; /* Take up remaining space */
}

.product-image {
    text-align: center;
    margin-bottom: 12px;
}

.product-image img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 4px;
}

.no-image {
    width: 150px;
    height: 150px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin: 0 auto;
    color: #999;
    font-size: 2rem;
}

.product-title a {
    color: #007185;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.3;
    display: block;
    margin-bottom: 8px;
}

.product-title a:hover {
    color: #c7511f;
    text-decoration: underline;
}

.product-description {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 3.2em; /* Accommodate ~2-3 lines */
}

/* Push these elements to the bottom */
.product-rating {
    margin-top: auto; /* This pushes everything below to the bottom */
    font-size: 0.85rem;
}

.stars {
    color: #ff9f00;
}

/* Set consistent spacing for bottom elements */
.product-price {
    margin: 8px 0 4px 0;
}

.price-current {
    font-size: 1.1rem;
    font-weight: bold;
    color: #b12704;
}

.product-actions {
    margin-top: 8px;
}

.product-actions .quantity-input {
    max-width: 60px;
}

.btn-add-to-cart {
    font-size: 0.85rem;
    padding: 4px 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .col-lg-2.col-md-3 {
        order: 2;
    }

    .col-lg-10.col-md-9 {
        order: 1;
    }
}

/* Search and sort bar */
.bg-light {
    background-color: #f8f9fa !important;
}
