/* General Page Styling for Dark Theme */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

/* Section Styles */
.product-list-section.dark-theme {
    padding: 4rem 0;
}

.product-list-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.product-list-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #ffffff;
}

/* Product Grid */
.product-list-section .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-list-section .product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-list-section .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.product-list-section .product-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3; /* For consistent image sizes */
    overflow: hidden;
}

.product-list-section .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-list-section .product-card:hover img {
    transform: scale(1.1);
}

.product-list-section .product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-list-section .product-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.product-list-section .product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #81c784; /* A contrasting color for the price */
}

.loading, .error {
    text-align: center;
    font-size: 1.5rem;
    color: #e0e0e0;
    padding: 5rem;
}