/* Grid Layout */
.mpk-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* Responsive Grid */
@media (max-width: 900px) { .mpk-products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mpk-products { grid-template-columns: 1fr; } }

/* Produkt-Kachel */
.mpk-product {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
    min-height: 450px;
}
.mpk-product:hover { transform: scale(1.03); }

/* Bild-Container */
.mpk-product a.mpk-lightbox {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 8px;
}
.mpk-product a.mpk-lightbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Bild-Höhen */
@media (max-width: 900px) { .mpk-product a.mpk-lightbox { height: 180px; } }
@media (max-width: 600px) { .mpk-product a.mpk-lightbox { height: 150px; } }

/* Inhalt flexibel verteilen */
.mpk-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Titel oben */
.mpk-product h2 {
    font-size: 1.2em;
    margin: 0 0 10px;
}

/* Textbereich */
.mpk-product-content div { flex: 1; }

/* Preis unten */
.mpk-product .mpk-price {
    margin-top: 10px;
    font-weight: bold;
}

/* Lightbox Overlay */
.mpk-lightbox-overlay {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.mpk-lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 15px #000;
    transition: transform 0.2s;
}
.mpk-lightbox-overlay img:hover { transform: scale(1.05); }
/* Filter Dropdown über dem Grid */
#mpk-filter {
    display: block;       /* block-level, damit eigene Zeile */
    margin-bottom: 20px;  /* Abstand zum Grid */
    text-align: left;     /* Text linksbündig */
    padding: 5px 10px;    /* optional, etwas Innenabstand */
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Optional: für kleine Bildschirme */
@media (max-width: 600px) {
    #mpk-filter {
        width: 100%;       /* Dropdown nimmt volle Breite */
    }
}
.mpk-product-categories {
    font-size: 0.9em;
    color: #555;
    margin: 5px 0 10px;
    font-style: italic;
}
.mpk-product-description {
    font-size: 0.95em;
    color: #555;
    margin: 5px 0 5px;
    font-style: italic;
}
