
.category-heading-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.category-back-button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #ead9a8;
    border-radius: 9px;
    background: #fff4bf;
    color: var(--text-dark, #111827);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.category-back-button:hover {
    background: #ffed9a;
    border-color: #dfc978;
    color: var(--text-dark, #111827);
}

.subheading-row {
    justify-content: space-between;
    width: 100%;
}

.subheading-row .filter-wrapper {
    margin-left: auto;
}

.subheading-row .filter-panel {
    left: auto;
    right: 0;
}

.device-overview-content {
    padding-left: 30px;
    padding-right: 30px;
}

.product-card {
    position: relative;
}

.product-card.is-filtered-out,
.product-card[hidden],
.filter-no-results[hidden] {
    display: none !important;
}

.filter-no-results {
    grid-column: 1 / -1;
}

.product-card.is-in-cart {
    border-color: #00A638;
    box-shadow: 0 0 0 2px rgba(0, 166, 56, 0.13), 0 5px 15px rgba(0, 0, 0, 0.08);
}

.product-card.is-in-cart::before {
    content: "Im Warenkorb";
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    padding: 4px 8px;
    border-radius: 999px;
    background: #00A638;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.product-card-main {
    height: auto;
    flex: 1 1 auto;
}

.product-card-main .product-image img {
    height: 175px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.product-card-main .product-info {
    padding: 14px 16px 9px;
}

.product-card-main .tech-meta {
    gap: 5px;
    margin-bottom: 8px;
}

.product-card-main .meta-item {
    padding: 2px 6px;
    font-size: 10px;
}

.product-card-main .product-info h3 {
    margin-bottom: 9px;
    font-size: 16px;
}

.product-card-main .text-link-details {
    margin-top: auto;
    align-self: flex-end;
    font-size: 12px;
}

.overview-cart {
    padding: 0 16px 14px;
}

.overview-cart .purchase-row,
.overview-cart-form {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
}

.overview-cart .quantity-picker {
    display: grid;
    grid-template-columns: 30px 38px 30px;
    flex: 0 0 auto;
}

.overview-cart .qty-btn,
.overview-cart .quantity-picker input {
    height: 36px;
}

.overview-cart .quantity-picker input {
    width: 38px;
    text-align: center;
    border: 1px solid #d7dce0;
    border-left: 0;
    border-right: 0;
    font-weight: 700;
    color: #111;
    background: #fff;
    appearance: textfield;
}

.overview-cart .quantity-picker input::-webkit-inner-spin-button,
.overview-cart .quantity-picker input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.overview-cart:not(.is-quantity-active) .overview-quantity-picker input {
    color: #a7adb3;
}

.overview-cart .qty-btn {
    border: 1px solid #d7dce0;
    background: #f7f8f9;
    cursor: pointer;
    font-size: 17px;
}

.overview-cart .qty-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.overview-cart .qty-btn:last-child {
    border-radius: 0 6px 6px 0;
}

.overview-cart .btn-order {
    min-height: 36px;
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    background: #004B6E;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.overview-cart .btn-in-cart {
    background: #00A638;
}

.overview-cart .cart-icon-with-count {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.overview-cart .cart-item-count {
    position: absolute;
    top: -8px;
    right: -9px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #ffffff;
    color: #008f30;
    font-size: 9px;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(0, 143, 48, 0.18);
    pointer-events: none;
}

.overview-cart .cart-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
}

.overview-cart .btn-remove-cart-item {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    border: 0;
    border-radius: 6px;
    background: #b42318;
    color: #fff;
    cursor: pointer;
}

.overview-cart .btn-remove-cart-item svg {
    display: block;
    width: 16px;
    height: 16px;
    margin: 0;
}

@media (max-width: 768px) {
    .subheading-row {
        align-items: center;
    }

    .device-overview-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .category-heading-group {
        gap: 8px;
        flex-wrap: wrap;
    }

    .category-back-button {
        min-height: 34px;
        padding: 0 11px;
        font-size: 0.8rem;
    }

    .subheading-row .filter-panel {
        left: 0;
        right: 0;
    }

    .product-card-main .product-image img {
        height: 165px;
    }

    .overview-cart {
        padding: 0 16px 14px;
    }
}


@media (max-width: 400px) {
    /*
     * style.css stellt .purchase-row auf sehr schmalen Displays global
     * untereinander. Für die kompakten Produktkarten ist das nicht nötig:
     * Zähler, Löschen und Warenkorb-Button passen auch hier nebeneinander.
     */
    .overview-cart .purchase-row {
        flex-direction: row;
        align-items: center;
    }

    .overview-cart .cart-item-actions {
        min-width: 0;
    }

    .overview-cart .btn-in-cart {
        min-width: 0;
    }
}
