/*
 * BrikoScout – einheitliche Produktkarten
 * Bilder vollständig sichtbar, gleichmäßige Höhen und Abstände
 */

/* Gesamtes Produktgitter */
ul.products {
    align-items: stretch !important;
    gap: 24px !important;
}

/* Einzelne Produktkarte */
ul.products > li.product.sb8-product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    gap: 0 !important;

    background: #fff !important;
    border: 1px solid #e7ebef !important;
    border-radius: 14px !important;
    overflow: hidden !important;

    box-shadow: 0 6px 22px rgba(15, 36, 25, 0.07) !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease !important;
}

ul.products > li.product.sb8-product-card:hover {
    transform: translateY(-3px) !important;
    border-color: #d7ded9 !important;
    box-shadow: 0 12px 30px rgba(15, 36, 25, 0.11) !important;
}

/* Einheitliche Bildfläche */
.sb8-product-card .sb8-thumb {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 225px !important;
    width: 100% !important;
    height: 225px !important;
    min-height: 225px !important;
    aspect-ratio: auto !important;

    padding: 20px 16px 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #fff !important;
}

/* Bilder vollständig anzeigen – niemals abschneiden */
.sb8-product-card .sb8-thumb img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;

    margin: 0 auto !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center center !important;

    transform: none !important;
    border-radius: 0 !important;
}

/* Textbereich */
.sb8-product-card .sb8-card-content {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;

    min-height: 205px !important;
    padding: 14px 14px 15px !important;
    box-sizing: border-box !important;
}

/* Marke */
.sb8-product-card .sb8-brand {
    min-height: 1.4em !important;
    margin: 0 0 5px !important;

    color: #7a8280 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

/* Produkttitel: maximal drei Zeilen */
.sb8-product-card .sb8-title {
    display: -webkit-box !important;
    min-height: 4.05em !important;
    margin: 0 0 16px !important;
    overflow: hidden !important;

    color: #101515 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;

    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
}

.sb8-product-card .sb8-title a {
    color: inherit !important;
    text-decoration: none !important;
}

/* Schwarzer Detail-Button immer unten */
.sb8-product-card .sb8-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 44px !important;
    margin-top: auto !important;
    padding: 10px 12px !important;

    border: 0 !important;
    border-radius: 6px !important;
    background: #101313 !important;
    color: #fff !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.sb8-product-card .sb8-button:hover {
    background: #26302b !important;
    color: #fff !important;
}

/* Preisvergleich und Angebotsbuttons */
.sb8-product-card .brikoscout-card-buttons {
    gap: 8px !important;
    margin: 10px !important;
}

.sb8-product-card .brikoscout-card-buttons .button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 42px !important;
    padding: 9px 10px !important;
    margin: 0 !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.sb8-product-card .brikoscout-direct-offer {
    background: #2fa84f !important;
    border-color: #2fa84f !important;
    color: #fff !important;
}

.sb8-product-card .brikoscout-direct-offer:hover {
    background: #258d41 !important;
    border-color: #258d41 !important;
}

.sb8-product-card .brikoscout-product-details {
    background: transparent !important;
    color: #52625a !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Preis etwas kompakter */
.sb8-product-card .brikoscout-comparison-price {
    font-size: 20px !important;
    line-height: 1.2 !important;
}

/* Tablet */
@media (max-width: 1024px) {
    ul.products {
        gap: 20px !important;
    }

    .sb8-product-card .sb8-thumb {
        flex-basis: 205px !important;
        height: 205px !important;
        min-height: 205px !important;
        padding: 18px 14px 10px !important;
    }

    .sb8-product-card .sb8-card-content {
        min-height: 195px !important;
    }
}

/* Smartphone */
@media (max-width: 768px) {
    ul.products {
        gap: 14px !important;
    }

    .sb8-product-card .sb8-thumb {
        flex-basis: 180px !important;
        height: 180px !important;
        min-height: 180px !important;
        padding: 14px 10px 8px !important;
    }

    .sb8-product-card .sb8-card-content {
        min-height: 185px !important;
        padding: 12px !important;
    }

    .sb8-product-card .sb8-title {
        font-size: 15px !important;
    }
}

/* Kleine Smartphones mit zwei schmalen Spalten */
@media (max-width: 480px) {
    .sb8-product-card .sb8-thumb {
        flex-basis: 155px !important;
        height: 155px !important;
        min-height: 155px !important;
        padding: 12px 8px 6px !important;
    }

    .sb8-product-card .sb8-card-content {
        min-height: 180px !important;
        padding: 10px !important;
    }

    .sb8-product-card .sb8-title {
        font-size: 14px !important;
    }

    .sb8-product-card .sb8-button {
        min-height: 40px !important;
        font-size: 13px !important;
    }
}
