.ecommerce-section {
    background-color: #fdfdff;
    padding: 80px 0;
}

.ecommerce-section h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
}

.ecommerce-section .section-subtitle {
    text-align: center;
    font-size: 1.1em;
    margin-top: -20px;
    margin-bottom: 50px;
    color: #666;
}

.product-list {
    display: grid;
    /* Default to a responsive grid for smaller screens */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* For larger screens, display 5 products per row as requested */
@media (min-width: 1400px) {
    .product-list {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px; /* Adjust gap to better fit 5 items */
    }
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.product-card .product-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-card .product-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-card .product-content {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.3;
}

.product-card .product-description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-card .product-price {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.product-card .btn.buy-product-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: auto; /* Push to the bottom */
    background: var(--secondary-color);
    color: #fff;
}

.product-card .btn.buy-product-btn:hover {
    background: var(--primary-color);
}