/* Hover Overlay für Produktkarten (überschreibt PrestaShop Standard-Styles falls nötig) */
.product-card-v2 {
    position: relative;
}

.product-card-v2__image-container {
    position: relative;
    padding: 1.5rem;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-card-v2__image-container img {
    object-fit: contain !important;
    max-height: 100%;
    max-width: 100%;
    width: auto !important;
    height: auto !important;
}

.product-badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f7ca18;
    /* gelb fallback */
    color: #000;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card-v2__hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 10;
    border-radius: inherit;
}

.product-card-v2__image-container:hover .product-card-v2__hover-overlay {
    opacity: 1;
    visibility: visible;
}

.product-card-v2__hover-overlay .overlay-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 4px;
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    width: 80%;
    justify-content: center;
    font-family: inherit;
    cursor: pointer;
}

.product-card-v2__hover-overlay .overlay-btn-cart {
    background-color: #f7ca18;
    /* gelb fallback */
    color: #000;
    border: none;
}

.product-card-v2__hover-overlay .overlay-btn-cart:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.product-card-v2__hover-overlay .overlay-btn-details {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.product-card-v2__hover-overlay .overlay-btn-details:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.product-card-v2__hover-overlay form.add-to-cart-or-refresh {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    /* Bootstrap Abstände zurücksetzen */
}

/* Entfernt unschönen nativen Border bei PrestaShop Thumbnails */
.product-miniature .thumbnail-container {
    border: none;
    box-shadow: none;
}

/* Kategorie Farben */
:root {
    --mutig: #F6EDD7;
    --gut: #D1E5E2;
    --schoen: #E2E1EB;
}

/* Alle Produktkarten: einheitlich weißer Hintergrund */
.mutig .product-card-v2__image-container,
.gut .product-card-v2__image-container,
.schoen .product-card-v2__image-container,
.no-cat .product-card-v2__image-container {
    background-color: #ffffff;
}

/* Autornamen in Produktkarten (gleicher Stil wie auf den Custom-Seiten) */
.product-miniature .product-card-v2__category {
    text-align: center;
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    color: #f8ba2b;
}

/* Autornamen-Farbe: einheitlich für alle Kategorien */

/* Einheitliche Schrift in allen Produktkarten (unabhängig von Kategorie-Klasse) */
.product-card-v2 .product-description,
.product-card-v2 .product-description h2,
.product-card-v2 .product-description a,
.product-card-v2 .product-title,
.product-card-v2 .product-title a {
    font-family: inherit !important;
    font-size: inherit;
}

/* Produktdetail: Bild-Modal über Backdrop – #main beim geöffneten Modal über das Backdrop heben (Bootstrap: .modal-backdrop z-index 1040) */
body.modal-open #main {
    position: relative;
    z-index: 1051;
}