/* Warenkorb-Symbol im Header: erscheint nur, wenn etwas im Warenkorb liegt */
.header-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin-left: 18px;
    border-radius: 50%;
    color: #111827;
    background: #ffffff;
    border: 1px solid #dfe4eb;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-cart[hidden] { display: none; }

.header-cart:hover {
    color: #1597ff;
    border-color: #1597ff;
    transform: translateY(-1px);
}

.header-cart svg {
    width: 20px;
    height: 20px;
    display: block;
}

.header-cart__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #1597ff;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
    letter-spacing: 0;
}

@media (max-width: 782px) {
    /* Reihenfolge: Logo | Warenkorb | Hamburger-Menü, beide eng zusammen am rechten Rand */
    .header-inner > .header-cart {
        order: 2;
        margin-left: auto;
        margin-right: -34px; /* gleicht den eigenen Abstand des Menü-Symbols aus; Wert anpassen, falls nötig */
        width: 38px;
        height: 38px;
    }

    .header-inner > .mobile-menu-toggle {
        order: 3;
        margin-left: 0;
    }
}
