/* Kategorienansicht / Kategorienavigation – generisch */

.category-nav-wrap {
    border-top: 1px solid rgba(0,0,0,.06);
    border-bottom: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.92);
}

.category-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 42px;
    overflow-x: auto;
    scrollbar-width: thin;
    white-space: nowrap;
}

.category-nav a {
    color: inherit;
    text-decoration: none;
    font-size: var(--site-font-nav);
    font-weight: 600;
    opacity: .82;
}

.category-nav a:hover {
    opacity: 1;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(0,0,0,.045);
    transition: transform .16s ease, box-shadow .16s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 26px rgba(0,0,0,.08);
}

.category-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(0,0,0,.035);
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-card-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.category-card-body {
    padding: 18px;
}

.category-card-body h2 {
    margin: 0 0 5px;
    font-size: var(--site-font-h3);
}

.category-card-body span {
    opacity: .65;
}

.category-view-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}

.category-page-head .eyebrow a,
.product-card .category a,
.product-info .category a {
    color: inherit;
    text-decoration: none;
}

.category-page-head .eyebrow a:hover,
.product-card .category a:hover,
.product-info .category a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .category-nav {
        gap: 16px;
    }

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

    .category-view-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
