/* assets/css/pages/product-list.css */

/* --- Globale Typografie & Basis-Layout für WOW-Effekt --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif; /* Sekundäre Schrift für Text */
    color: var(--shop-dark-text);
    background-color: var(--shop-secondary-color); /* Weicher, einladender Hintergrund */
    overflow-x: hidden; /* Verhindert ungewolltes horizontales Scrollen */
}

.shop-content.product-list-page {
    padding: 80px 20px; /* Grosszügigerer vertikaler Raum */
}

.container {
    max-width: 1400px; /* Breiter für die Gallery */
    margin: 0 auto;
    position: relative; /* Für überlagernde Elemente */
}

/* --- Hero Sektion (Titel & Untertitel) --- */
.hero-heading {
    font-family: 'Montserrat', sans-serif; /* Geändert zu Montserrat */
    font-size: 4.5em; /* Extrem gross für Impact */
    color: var(--shop-primary-color);
    text-align: center;
    margin-bottom: 15px; /* Weniger Abstand zum Subtitel */
    letter-spacing: 3px;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.1);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase; /* Grossbuchstaben für Eleganz */
}

.hero-subheading {
    font-family: 'Montserrat', sans-serif; /* Geändert zu Montserrat */
    font-size: 1.6em;
    color: var(--shop-medium-text);
    text-align: center;
    margin-bottom: 80px; /* Viel Abstand zur Produktgalerie */
    font-weight: 300;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Produktgalerie (statt Grid) --- */
.product-gallery {
    display: flex;
    flex-wrap: wrap; /* Erlaubt Umbruch auf mehrere Zeilen */
    justify-content: center; /* Zentriert die Produkte */
    gap: 50px; /* Grosszügiger Abstand zwischen den schwebenden Elementen */
    padding-bottom: 80px; /* Platz am unteren Ende */
}

.product-item-floating {
    position: relative;
    width: 320px; /* Feste Grösse für die schwebenden Elemente */
    height: 400px; /* Feste Höhe */
    background-color: var(--shop-light-text);
    border-radius: var(--shop-border-radius-soft);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Subtiler Anfangsschatten */
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, background-color 0.4s ease-out;
    text-decoration: none; /* Link-Unterstreichung entfernen */
    perspective: 1000px; /* Für 3D-Effekt */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Bild oben, Info unten */
}

.product-item-floating:hover {
    transform: translateY(-20px) rotateX(5deg) scale(1.05); /* Schwebender 3D-Effekt */
    box-shadow: 0 25px 60px rgba(var(--shop-primary-color-rgb), 0.25); /* Auffälliger, magischer Schatten */
    background-color: lighten(var(--shop-light-text), 2%); /* Leicht aufhellen beim Hover */
}

.product-image-container {
    width: 100%;
    height: 70%; /* Bild nimmt Grossteil der Höhe ein */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Innenabstand für das Bild */
    box-sizing: border-box;
}

.product-item-floating img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease-out, filter 0.4s ease-out;
    filter: grayscale(80%); /* Schwarz-Weiss Standard */
    border-radius: var(--shop-border-radius-soft);
}

.product-item-floating:hover img {
    transform: scale(1.1); /* Zoom beim Hover */
    filter: grayscale(0%); /* Farbe beim Hover */
}

.product-info-overlay {
    height: 30%; /* Info-Bereich */
    padding: 15px 25px; /* Inneres Padding */
    text-align: center;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */ /* Diese Zeile entfernen oder ändern */
    justify-content: flex-end; /* NEU: Inhalt an den unteren Rand des Overlays drücken */
    align-items: center;
    background-color: rgba(var(--shop-primary-color-rgb), 0.05); /* Dezenter Hintergrund */
    border-top: 1px solid rgba(var(--shop-border-color-rgb), 0.2); /* Dezente Trennlinie */
}

.product-title-dynamic {
    font-family: 'Montserrat', sans-serif; /* Geändert zu Montserrat */
    font-size: 1.7em; /* Deutlicher Titel */
    color: var(--shop-dark-text);
    margin-bottom: 5px;
    font-weight: 700;
    line-height: 1.2;
}

.product-price-dynamic {
    font-family: 'Montserrat', sans-serif; /* Geändert zu Montserrat */
    font-size: 1.3em;
    font-weight: 400;
    color: var(--shop-primary-color-dark); /* Betonter Preis */
    margin-top: 5px;
    margin-bottom: 10px; /* Reduziert, da justify-content: flex-end jetzt mehr Kontrolle gibt */
}

.no-products-message {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: var(--shop-medium-text);
    margin-top: 50px;
    font-style: italic;
}

/* --- Entfernung alter Stile, die nicht mehr passen --- */
.product-grid, .product-card, .product-card h2, .product-card .product-price, .product-card p, .product-card .button {
    /* Diese Selektoren wurden durch neue ersetzt oder sind in diesem Design nicht mehr primär */
    display: none; /* Temporär ausblenden, um Konflikte zu vermeiden */
}

/* Alte Informationssektion entfernen */
.information-section, .info-grid, .info-card {
    display: none;
}


/* --- Responsive Anpassungen --- */
@media (max-width: 1200px) {
    .product-item-floating {
        width: 280px;
        height: 350px;
    }
    .hero-heading {
        font-size: 3.5em;
    }
    .hero-subheading {
        font-size: 1.4em;
    }
    .product-price-dynamic { /* Auch hier den Margin anpassen */
        margin-bottom: 8px; /* Angepasster Margin für kleinere Bildschirme */
    }
}

@media (max-width: 768px) {
    .shop-content.product-list-page {
        padding: 50px 15px;
    }
    .hero-heading {
        font-size: 2.8em;
        margin-bottom: 10px;
    }
    .hero-subheading {
        font-size: 1.2em;
        margin-bottom: 50px;
    }
    .product-gallery {
        gap: 30px;
    }
    .product-item-floating {
        width: 100%; /* Volle Breite auf kleinen Bildschirmen */
        max-width: 320px; /* Aber nicht zu gross werden lassen */
        height: 380px;
        margin: 0 auto; /* Zentrieren */
    }
    .product-title-dynamic {
        font-size: 1.5em;
    }
    .product-price-dynamic { /* Auch hier den Margin anpassen */
        margin-bottom: 6px; /* Angepasster Margin für kleinere Bildschirme */
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 2.2em;
        letter-spacing: 2px;
    }
    .hero-subheading {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .product-item-floating {
        height: 320px;
        padding: 15px;
    }
    .product-image-container {
        padding: 15px;
    }
    .product-info-overlay {
        padding: 10px 20px;
    }
    .product-title-dynamic {
        font-size: 1.3em;
    }
    .product-price-dynamic { /* Auch hier den Margin anpassen */
        margin-bottom: 5px; /* Angepasster Margin für sehr kleine Bildschirme */
    }
}