/* Produkt-Kacheln: Bild + Daten aus dem jeweiligen Hersteller-JSON.
   Aktuell von partner/wookids und partner/oliver-furniture eingebunden;
   bei weiteren Herstellern mit Produkt-Kacheln hier ergänzen. */

.products-section {
    padding: 40px 20px;
    background: white;
}

.products-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--brand-red);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media only screen and (min-width: 768px) {
    .product-card {
        grid-template-columns: 1fr 1fr;
    }

    .product-info {
        grid-column: 1 / -1;
    }
}

@media only screen and (min-width: 1024px) {
    .product-card {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-info {
        grid-column: auto;
    }
}

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

.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image:last-child img {
    object-fit: contain;
    background: white;
}

.product-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fafafa;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-red);
    margin-bottom: 15px;
}

.product-specs {
    margin-bottom: 15px;
}

.product-specs-row {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.product-specs-section {
    margin-bottom: 15px;
}

.product-specs-section-title {
    visibility: collapse;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1rem;
}

.product-specs-label {
    font-weight: 600;
    color: #444;
    text-align: left;
}

.product-material {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0 0 15px 0;
}

.product-material li {
    background-color: var(--brand-red-light, #f5e5e6);
    color: #555;
    border-radius: var(--radius-md);
    padding: 3px 10px;
    font-size: 0.8rem;
}

.product-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-cta {
    text-align: center;
}

.product-cta button {
    background: var(--brand-red);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.product-cta button:hover {
    background: var(--brand-red-hover);
}

@media screen and (max-width: 768px) {
    .product-info {
        padding: 25px;
    }
}
