/* =====================================================
   SOCP STORE - PRODUKTUEBERSICHT
   Layout durch SOCP CSS
   Farben und Theme durch Joomla / Astroid / Bootstrap
===================================================== */

.socp-catalog {
    max-width: 1360px;
    margin: 0 auto;
    padding: 28px 18px 60px;
    color: inherit;
}

.socp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 380px));
    justify-content: center;
    justify-items: center;
    gap: 16px 24px;
}

.socp-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color, currentColor);
    border-radius: var(--bs-border-radius-lg, 14px);
    background: var(--bs-body-bg, transparent);
    color: var(--bs-body-color, inherit);
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.socp-card-link {
    display: grid;
    grid-template-rows: 84px 50px auto 220px 34px 74px auto;
    height: 100%;
    padding: 10px 10px 18px;
    background: transparent;
    color: inherit;
    text-decoration: none;
}

.socp-card-link:hover,
.socp-card-link:focus {
    color: inherit;
    text-decoration: none;
}

.socp-card h2 {
    grid-row: 1;
    align-self: center;
    margin: 0;
    color: inherit !important;
    font-family: inherit;
    font-size: clamp(28px, 2.4vw, 38px);
    font-weight: 800;
    line-height: 1.1;
}

.socp-subline {
    grid-row: 2;
    align-self: center;
    margin: 0;
    color: var(--bs-secondary-color, inherit);
    font-family: inherit;
    font-size: 16px;
}

.socp-image-box {
    grid-row: 3;
    aspect-ratio: 4 / 2.65;
    overflow: hidden;
    margin: 0 -5px 20px;
    background: var(--bs-tertiary-bg, var(--bs-body-bg, transparent));
}

.socp-image-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.socp-card-description-wrapper {
    margin: 12px;
    color: inherit;
}

.socp-card-description {
    display: -webkit-box;
    min-height: 100px;
    margin: 12px 12px 20px;
    overflow: hidden;
    color: var(--bs-secondary-color, inherit);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.7;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.socp-more-link {
    display: block;
    margin-top: 8px;
    color: var(--bs-primary, inherit);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.3px;
    transition: opacity .3s ease;
}

.socp-normal {
    grid-row: 5;
    align-self: center;
    margin: 0;
    color: var(--bs-secondary-color, inherit);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
}

.socp-pill {
    grid-row: 6;
    align-self: start;
    justify-self: center;
    display: inline-block;
    margin: 0;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--bs-danger, #dc3545);
    color: var(--bs-white, #fff);
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
}

.socp-price {
    grid-row: 7;
    align-self: start;
    margin-top: 10px;
    color: var(--bs-primary, inherit);
    font-family: inherit;
    font-size: clamp(34px, 3vw, 44px);
    font-weight: 900;
    line-height: 1;
}

.socp-error,
.socp-empty {
    max-width: 980px;
    margin: 40px auto;
    padding: 18px 22px;
    border-radius: var(--bs-border-radius, 8px);
}

.socp-error {
    border: 1px solid var(--bs-danger, #dc3545);
    background: var(--bs-danger, #dc3545);
    color: var(--bs-white, #fff);
}

.socp-empty {
    border: 1px solid var(--bs-border-color, currentColor);
    background: var(--bs-body-bg, transparent);
    color: var(--bs-body-color, inherit);
}

@media (hover:hover) {

    .socp-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
    }

    .socp-card:hover .socp-image-box img {
        transform: scale(1.04);
    }

    .socp-card:hover .socp-more-link {
        opacity: .8;
    }
}

@media (max-width: 575.98px) {

    .socp-grid {
        grid-template-columns: 1fr;
    }

    .socp-card {
        max-width: 100%;
    }
}
