.cart {
    position: fixed;
    right: -350px;
    top: 0;
    width: 340px;
    height: 100%;
    background: #000;
    transition: 0.3s;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.cart-items {
    flex: 1;
    padding: 0 20px;
    overflow-y: auto;
}

.cart-item {
    background: #111;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-top {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-icon {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 1002;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(17, 17, 17, 0.92);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    transition: 0.2s ease;
    appearance: none;
}

.cart-icon:hover {
    background: #fff;
    color: #000;
}

.cart-icon.pulse {
    animation: pulse 1.8s infinite;
}

.cart-symbol {
    font-size: 18px;
    line-height: 1;
}

.cart-count-badge {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 700;
}

.cart-total-badge {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.cart-icon.empty .cart-total-badge {
    display: none;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #222;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-footer .btn-modern {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total::before {
    content: "Gesamt";
    color: #777;
}

.qty-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #222;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #fff;
    color: #000;
}

.delete-btn {
    font-size: 14px;
    color: #ff4d4d;
    cursor: pointer;
}

.delete-btn:hover {
    text-decoration: underline;
}

.empty-cart-message {
    color: #777;
}

@media (max-width: 767px) {
    .cart-icon {
        top: 12px;
        right: 12px;
        padding: 9px 12px;
        gap: 8px;
    }

    .cart-count-badge {
        min-width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .cart-total-badge {
        font-size: 13px;
    }
}
