/* Product list layout */
.product-list-grid {
    row-gap: 1.5rem;
}

.product-list-grid .product-list-item {
    display: flex;
}

.product-list-grid .product-card {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-list-grid .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.product-list-grid .product-card-image-wrap {
    height: 220px;
    background: #f5f7fb;
    overflow: hidden;
}

.product-list-grid .product-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 18px;
}

.product-list-grid .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.25rem;
}

.product-list-grid .card-title {
    min-height: 2.8em;
    margin-bottom: 0.5rem;
}

.product-list-grid .product-card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.8em;
}

.product-list-grid .product-card-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-list-grid .product-price {
    color: #d40000;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

#product-filter-container .list-group-item {
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-weight: 500;
    transition: all 0.2s ease;
}

#product-filter-container .list-group-item.active,
#product-filter-container .list-group-item:hover {
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 15px rgba(110, 142, 251, 0.28);
}

@media (max-width: 767.98px) {
    .product-list-grid .product-card-image-wrap {
        height: 180px;
    }

    .product-list-grid .card-body {
        padding: 1rem;
    }

    .product-list-grid .product-card-actions {
        align-items: flex-start;
    }
}

/* Dark Mode Overrides */
.dark-mode .product-list-grid .product-card {
    background: var(--card-bg, #2d2d2d);
    border-color: var(--border-color, rgba(255, 255, 255, 0.1));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.dark-mode .product-list-grid .product-card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.dark-mode .product-list-grid .product-card-image-wrap {
    background: var(--bg-light, #252525);
}

.dark-mode .product-list-grid .product-price {
    color: #ff4d4d;
}

.dark-mode #product-filter-container .list-group-item {
    background: var(--card-bg, #2d2d2d);
    color: var(--text-body, #cccccc);
    border-color: var(--border-color, rgba(255, 255, 255, 0.1));
}

.dark-mode #product-filter-container .list-group-item:hover {
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: #fff;
    border-color: transparent;
}

.dark-mode #product-filter-container .list-group-item.active {
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: #fff;
    border-color: transparent;
}
