/* Styles for the product-catalog component */

.product-catalog-section {
    padding: 60px 0;
    background-color: var(--complementary-color-lighter);
}

.product-catalog-heading {
    margin-bottom: 10px;
    color: var(--text-color);
    text-align: center;
}

.product-catalog-subheading {
    margin-bottom: 30px;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Filter controls */
.product-catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-catalog-controls .filter-group {
    display: flex;
    flex-direction: column;
}

.product-catalog-controls .filter-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary-color-dark);
}

.product-catalog-filter,
.product-catalog-sort {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--body-font);
    color: var(--text-color);
    width: 100%;
}

.product-catalog-filter:focus,
.product-catalog-sort:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Product grid */
.product-catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Product card */
.product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Discount badge */
.product-card-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--complementary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

/* Product image */
.product-card-image {
    display: block;
    height: 200px;
    overflow: hidden;
}

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

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

/* Card body */
.product-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-model {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color-dark);
}

/* Specs */
.product-card-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.product-card-energy-class,
.product-card-spec {
    font-size: 0.9rem;
    color: #555;
}

/* Tags */
.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.product-card-tag {
    background-color: var(--primary-color-lighter, #e8f4fd);
    color: var(--primary-color-dark);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Pricing */
.product-card-pricing {
    margin-top: auto;
    margin-bottom: 20px;
    text-align: center;
}

.product-card-original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.product-card-discounted-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color-dark);
}

/* CTA button */
.product-card-cta {
    display: block;
    width: 100%;
    text-align: center;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .product-catalog-controls {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .product-catalog-controls .filter-group {
        width: calc(50% - 15px);
    }

    .product-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-catalog-controls .filter-group {
        width: calc(33.333% - 20px);
    }

    .product-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-card-image {
        height: 220px;
    }
}

@media (min-width: 1440px) {
    .product-card-image {
        height: 250px;
    }

    .product-catalog-grid {
        max-width: 1400px;
        margin: 0 auto;
    }
}
